d2phap / d2phap/ImageGlass

Support Physical Pixel Dimensions

Open
#1,288 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🎯 feature
Dominant language
C#
Stars
14.4k
Forks
752
Avg merge
10d 14h
Merged PRs (30d)
1

Description

Is your feature request related to a problem? Please describe.

Some images (particularly when extracted from old ass media) don't have square pixels.
Sample.
This should end up being displayed in 16:9, but if you don't parse the right metadata it's just 3:2.

Additional context

http://www.libpng.org/pub/png/book/chapter11.html#png.ch11.div.8
https://gitlab.gnome.org/GNOME/gimp/-/issues/5285
https://bugzilla.mozilla.org/show_bug.cgi?id=333377

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin by reviewing the image-loading and display-sizing path for PNG physical pixel metadata. Use the supplied sample and the linked PNG specification and issue reports as references. Done means the sample is displayed at its intended 16:9 aspect ratio rather than 3:2.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
computer-graphics, desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.