Feature Request: Flag images with resolution lower than 144ppi
-
Jordy,
Thanks so much for your support on Featured Images with Retina 2x. It was very helpful.
Today I’m writing with a feature request or maybe a bug report, hard to tell. I’ve tried to implement the feature myself but I’ve hit some roadblocks that I suspect are the result of how Retina.js works.
The “bug”
Sometimes images inserted into a page from the Add Media button end up at less than 144ppi.
This is because content editors will insert the 200px wide version of an image and then set it to a larger custom size, say, 300px wide thinking, wrongly, that Retina 2x will magically create the 2x version of the new size, and I see their point.
Retina 2x will correctly load the 2x version but the end result will be less than 144ppi.
Also, some responsive themes enlarge images as the window size increases, thus decreasing the resolution and, if the 2x images is not big enough, going below 144ppi.
The Feature Request
Images whose ppi is less than 144 (either because no 2x version exists or because the image has been stretched beyond 144ppi) are flagged in some way (a red border perhaps?).
I started writing the JavaScript myself but realized that images whose 2x variant return 404 seem to disappear from the DOM (both the default version and the 2x version – although they are still displayed in the browser). I don’t know enough about JavaScript prototypes nor how Retina.js works to be able to say for sure what the problem is, but maybe you could add this as a feature for a future version? It sure would save us a lot of time and I can provide you with the JS we’ve started with if that helps.
Thanks again and hope to hear from you soon.
Ted
- The topic ‘Feature Request: Flag images with resolution lower than 144ppi’ is closed to new replies.