Skip to content
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

Question: Content-DPR - this is gone? #14

Closed
hamishwillee opened this issue Jun 21, 2021 · 3 comments
Closed

Question: Content-DPR - this is gone? #14

hamishwillee opened this issue Jun 21, 2021 · 3 comments

Comments

@hamishwillee
Copy link

Content-DPR appears to be gone from the old spec and not present in the new one. It's gone for good?

@eeeps
Copy link
Collaborator

eeeps commented Jun 21, 2021

The removal was intentional; Content-DPR was shelved in favor of specifying intrinsic resolution/dimensions in EXIF metadata.

WebKit objected to Content-DPR, on the grounds that "image resolution is not a transport level feature."

WebKit were, however, amenable to the idea of reading/applying resolution metadata contained in EXIF, as long as it could be done in a web-compatible way. So, we figured out how to do that, in order to meet this and other use cases for giving servers (and image authoring tools!) control over intrinsic dimensions/density. EXIF-based intrinsic sizing is now shipping in Chrome and Safari, and should ship in Firefox 90.

Specifying this metadata in the response body (in different ways, for different image formats) makes things significantly more complex for servers who want to modify resolution metadata as part of their delivery flow, and reduces caching opportunities. OTOH, the embedded, portable, permanence of EXIF vs. Content-DPR is better for the EXIF-Resolution use cases that involve a static intrinsic resolution (like low-quality image placeholders, or sharing high-dpi screenshots) rather than a dynamic one (like Client Hints).

Ultimately, though, Content-DPR was shelved because it lacked consensus.

@eeeps eeeps closed this as completed Jun 21, 2021
@hamishwillee
Copy link
Author

Thanks very much! Makes sense.

  1. Re "EXIF-based intrinsic sizing is now shipping in Chrome and Safari, and should ship in Firefox 90.". Do you happen to know what issue? I ask because I'm part of the team documenting FF90 and this is not on the roadmap and I can't find the issue on bugzilla search.

@eeeps
Copy link
Collaborator

eeeps commented Jun 22, 2021

@hamishwillee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants