-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolution via EXIF erases the caching advantages of Width being defined in terms of device pixels #4
Comments
This issue extends further than EXIF. Automatic image optimisation services like Cloudinary and Akamai Image Manager can use DPR and Width hints to deliver the correct resolution image. When combined with IMO |
In general, a lot of trouble can be avoided by not trying to use
Where I'm at with this, after some thought:
All of this (plus inertia) is making me lean towards not changing anything. |
Width
used to be defined in terms of CSS pixels. This was changed in order to help cacheability; the idea being, that the same, cached, 1000-pixel-wide resource could be used to satisfy, e.g., both 500px@2x 1000px@1x requests.This made sense in a world where resolution was communicated from servers to user agents via the
Content-DPR
header. It doesn't make sense in a world where resolution is baked into the image resource itself, via EXIF information. Even though the image pixel data may the same for 500px@2x and 1000px@1x responses, the files are not, because their EXIF resolution metadata differs.In light of this erased benefit and the costs raised in #3, I'm wondering if we should deprecate
Width
and mint a newLayout-Width
hint?The text was updated successfully, but these errors were encountered: