<AWT Dev> [OpenJDK 2D-Dev] [9] Review request for 8073320 Windows HiDPI Graphics support

Hendrik Schreiber hs at tagtraum.com
Fri Oct 23 06:56:15 UTC 2015


> The reason for this is both to have an explicit token for the regular scale factor and also so that this matches with the default image suffix of "@2x" so that we can add more ways to provide alternate media such as "@120dpi" which are consistent with the values we use here.
> 
> BTW, we need to discuss ways to automate loading alternate media beyond @2x at some point…

I’m not sure it’s practical, but has anybody every thought about using existing EXIF tags to determine image resolution?

AFAIK, both JPEG and TIFF support EXIF tags (http://www.w3.org/2003/12/exif/) and thus embedding of resolution metadata (Labels: resolution, xResolution, yResolution, resolutionUnit).

There could be another special tag @exif (or @native, to avoid being tied down to one particular way of embedding info), which basically means: check the embedded resolution info.

-hendrik


More information about the awt-dev mailing list