gazley
Forum Replies Created
-
Hi Jordy,
I decided to step through your code to see what is happening in my situation.
For the image in question, the function
wr2x_get_retina_from_urlis called. This calls:
$system_retina = wr2x_get_retina( $filepath );which returns:
/Applications/MAMP/htdocs/bhs/wordpress/wp-content/uploads/2016/02/[email protected]and this file cannot be found. As a result, the original img element is used instead of the retina version.
I don’t know why the retina version doesn’t exist. I uploaded an image with the minimum dimensions you specify on the Retina admin screen and all of the image boxes are blue, suggesting that all variants of the image have been generated.
Any thoughts?
Thanks! 🙂
Why are you using a fill-size image in your post?
I’m not specifically/intentionally using “http://localhost:8888/wp-content/uploads/2016/02/gina_hs.jpg” – that is what is being output in the markup.
Also, this isn’t in a post – it is part of a custom page (the intended home page) that I am trying to build using the theme’s page builder.
All I did was select the image from the Media Gallery using the theme component’s image selection option.
If your code uses a Regex to scan for img elements, maybe you are only looking at the text area of a post and possibly not at the full page markup at the point before it is rendered?
Hello Jordy,
I have loaded a copy of the original file that is 2170 x 2048 and everything that was red has turned blue! So, the original image was not large enough.
However, I’ve re-rendered the page and the image(s) still show only the standard img markup with a single src attribute, no src-set showing at all.
Dunno?
Gazley
Hello Jordy,
The Media/Retina panel says “Issues (1)” but the item is not clickable so, I don’t know where to find out the details of the issue.
Also, I’m not sure what the red blocks mean?
If I can get this working, I’ll be very happy and will definitely buy the Pro version. I just need to get a handle on what I am doing wrong.
Looking forward to hearing from you.
Thanks!
Gazley
Hello Jordy,
I found the settings in, well, the settings tab under retina! <blush>.
It is set to picturefill.
Any (more) thoughts?
Ta!
Gazley
Hello Jordy,
Many thanks for your reply.
I’d already checked the output HTML before I contacted you and there was no srcset applied. The image is just a standard img element with a single src attribute.
<img src="http://localhost:8888/wp-content/uploads/2016/02/gina_hs.jpg" alt="">you would have to pick the “PictureFill”
I’m not seeing any options like this. If it is the default, I assume it is already set but I don’t see the option.
Any further thoughts?
Many thanks!
Gazley