
-
AuthorPosts
-
April 9, 2014 at 11:43 pm #249474
Hello,
my english is bad, please excuse. My german is better ;o)
The images in my Masonry Galerie looks out of focus on retina displays. I upload my photos with a resolution of 2048 x “x”. High enough
for a retina resolution. In the small preview without enlargement the resolution is good at images in a panel format. Once the image is enlarged, it is out of focus. Pictures in landscape format are basically out of focus. About the images a lower resolution is displayed as the image has (for example 705×470 by pictures in landscape format and 469×705 by pictures in a panel format). What can I do to fix the error?Thanks for your help
Best regards
ChristianApril 9, 2014 at 11:45 pm #249476Hey Pogona82!
Are you using a plugin such as this one http://wordpress.org/plugins/wp-retina-2x/ ?
Can you also post the link to your website so we can take a look?Cheers!
YigitApril 10, 2014 at 6:53 am #249594April 10, 2014 at 6:53 am #249595April 10, 2014 at 2:34 pm #249770Hi!
I just checked your website and it does look sharp on my end – http://i.imgur.com/LbW04py.jpg
Can you check and confirm that it is sharp on your end as well?Cheers!
YigitApril 10, 2014 at 6:49 pm #249888thanks for your answer. in this view the gallery is sharp. on my retina device too. but when the image was open in the lightbox view, the image is no longer sharp. if you expand the images in the lightbox, the image is totaly out of focus.
April 11, 2014 at 2:20 am #250025Hi!
Please try adding following code that Peter suggested in another post
add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4); function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta) { $link = wp_get_attachment_image_src($attachment->ID, "full"); return $link; }
Cheers!
YigitApril 12, 2014 at 2:01 am #250403Hi Yigit,
where do I insert the code?
Best regards
ChristianApril 13, 2014 at 9:28 am #250701Hi!
You can insert the code at the very bottom of functions.php. Go to Appearance > Editor, look for functions.php. I’m not sure if that is going to work in your case but please give it a try.
Best regards,
IsmaelApril 14, 2014 at 9:42 pm #251315Hi Ismael,
the code doesn´t work at Appearance-Editor-functions.php (at the very bottom).
I have created a site for demonstration.http://macro-photo.de/kontakt/impressum/datenschutzerklaerung/problem-2/
what can i do now?the probelm is terrible for a photo website!
April 14, 2014 at 10:41 pm #251338Hey!
Please find following line in Functions.php file
avia_nav_menus(); //call the function immediatly to activate }
and add the code i posted earlier to right below it
Regards,
YigitApril 15, 2014 at 1:05 am #251379I entered the code. now my internet site is no longer accessible.
I can not reach the login page. how can that be? can I have it so much done wrong? Panic!April 15, 2014 at 10:47 am #251507my website is accessible again. I can restore the old original via a FTP server.
I have pasted the code as follows:
avia_nav_menus(); //call the function immediatly to activate
add_filter(‘avf_avia_builder_gallery_image_link’, ‘avia_change_gallery_thumbnail_link’, 10, 4);
function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta)
{
$link = wp_get_attachment_image_src($attachment->ID, “full”);
return $link;
}that was definitely wrong. where exactly do I have to insert the code?
April 16, 2014 at 9:15 am #251985Hey!
I recommend to add this code to the child theme functions.php file (at the very bottom). If you don’t use a child theme insert it at the very bottom of enfold/functions.php.
Best regards,
PeterApril 16, 2014 at 2:10 pm #252101hello. Unfortunately, both options do not work. about the images in the lightbox following resolutions are displayed. landscape format 705×470. portrait format 469×705. is this really the resolution for the presentation? I have uploaded the image with 2048 pixels.
I’m sorry but the presentation is very important to me.beste regards
April 24, 2014 at 10:41 am #255404Hi!
Please create me an admin account and I’ll check why the code doesn’t work for you.
Best regards,
PeterApril 24, 2014 at 10:14 pm #255849This reply has been marked as private.April 26, 2014 at 11:42 am #256531Hey!
It works now. The code changed a bit with the last theme update and I had to insert:
add_filter('avf_avia_builder_masonry_lightbox_img_size', 'avia_change_gallery_thumbnail_link', 10, 1); function avia_change_gallery_thumbnail_link($size) { return "full"; }
into the functions.php file.
Best regards,
PeterApril 26, 2014 at 4:58 pm #256617Hi Peter,
yes, it works!!!! Thank you very much!!!!!!
Good work!!Best regards.
Christian -
AuthorPosts
- The topic ‘Images in Masonry Galerie looks out of focus (on retina display)’ is closed to new replies.