Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Suggestion: add a Pixel Aspect Ratio test #561

Open
sdsnatcher opened this issue Nov 19, 2019 · 0 comments
Open

Suggestion: add a Pixel Aspect Ratio test #561

sdsnatcher opened this issue Nov 19, 2019 · 0 comments

Comments

@sdsnatcher
Copy link

sdsnatcher commented Nov 19, 2019

Pixel Aspect Ratio metadata is a very useful feature of many image formats (JPG, PNG, GIF, etc) that surprisingly no browser has implemented yet.

There's a standalone test for this feature at this page, but it would be nice to have such test included in the score on the HTML5test.

Without native Pixel Aspect Ratio support, it's a nightmare to support images that have non-square pixels, like DVD/DV frames (both 4:3 and anamorphic), and images from any classic computer/video-game from the 80s/90s.

Both Photoshop and GIMP have Pixel Aspect Ratio support for years now, but the browsers refuse to display the images correctly.

"Artificial" stretching is normally used to compensate for the aspect ratio. This is when the image is manually scaled and saved again. But this leads to many problems:

  1. Even if saved as PNG, it's a lossy method, that ruins the image to the point that it's not possible to recover the exact original pixeling anymore
  2. Terrible compression ratios. The image file size becomes much larger than the original. To try to compensate for that, many users switch to JPG, that adds even more lossy artefacts to the mess.

References:

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

No branches or pull requests

1 participant