I was very very excited to see your plugin. One of my sites is just to highlight my photography and having retina optimized images was something I really want. I activated v0.4 of WP Retina 2x on my site using WordPress 3.4.2 and the AutoFocus Pro theme.
The problem is that on blog posts that have multiple images, and use a gallery slider, after WP Retina 2x is installed any image beyond the very first image with a retina optimized size gets an image of height and width 0.
Okay, here is an example of it working great on a post with a single image. This is awesome:
That does exactly what it should do.
Now, on this next one, you’ll notice 3 images in a slider. The first image has a retina optimized version and it loads right. The 2nd image does not have a retina optimized version, and it loads right. The 3rd image does have a retina optimized version and it is blank. Inspecting the HTML shows the problem.
The HTML for the 3rd image is
<img width="0" height="0" src="http://firstname.lastname@example.org" class="attachment-full-post-thumbnail" alt="20120904-143502-0001" title="20120904-143502-0001">
Since it doesn’t happen on the 2nd image, it seems like something is happening in retina.js when it successfully finds a @2x image for the 3rd one and swaps it out. I tried replacing the js/retina.js in WP Retina 2x with the most recent retina.js and had the same behavior.
Thanks for looking at this. I’m hopeful this is something minor and I can retina optimize all my images.
- The topic ‘[Plugin: WP Retina 2x] Bug when using Autofocus Pro theme’ is closed to new replies.