JDK-8151787 : Unify the HiDPI splash screen image naming convention
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-03-14
  • Updated: 2019-03-08
  • Resolved: 2016-10-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b143Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Unify the HiDPI splash screen image naming convention.
We are following different image name conventions on different platforms:
Windows : name.scale-dpiValue.ext
Linux : image.java-scale2x.ext
MAC image@2x.ext
Comments
Correction to the above The proposed name convention for splash screens *and* other multi-res images is @125pct @150pct @200pct @2x @250pct @300pct @3x ie @2x and @3x are supported as synonyms for @200pct and @300pct respectively and also because we already supported @2x on retina Mac.
25-08-2016

The proposed name convention for splash screens: @125pct @150pct @2x @250pct @3x
27-07-2016

As mentioned on the mailing list: IMHO, using different semantics for OS X and Windows that both follow the ".java-scaleXY.png" notation is a bug in the making. There should be *one unified way* that works the same on all platforms. Additional names, that allow enhanced functionality (like a decimal factor or a DPI value), should be special to the platform that supports them. But there should be a lowest common denominator. Why not accept "2x" on Windows as well? Just my 2c.
12-05-2016

In windows scale factor can be floating point value calculated by dividing screen dpi by 96. On windows 7 scale factor ranges from 1 - 2 so scaled image cannot be represented as @2x similar to mac. Also the naming convention used by windows for supporting hiDpi images is as below. Unscaled : name.ext Scaled : name.scale-140.ext Refer : https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh965325.aspx Below are the currently supported naming convention for an unscaled image image.png Windows : image.scale-dpiValue.png Linux : image.java-scale2x.png MAC : image@2x.png Proposed names Windows : image.java-scale<dpi-value>.png linux : image.java-scale2x.png Mac : image@2x.png and image.java-scale2x.png
09-05-2016

this is a bug, not enhancement
06-05-2016

Webrev submitted for review. Requires a ccc request once review is done.
04-05-2016