Skip to content

Ignore (0, 0) BMP DPI - #10187

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:bmp
Oct 13, 2026
Merged

radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:bmp

Conversation

@radarhere

Copy link
Copy Markdown
Member

Alternative to #10179

In Tests/images/hopper_rle8_grayscale.bmp, the X and Y DPI are both zero.

This PR ignores it, rather than setting im.info["dpi"] to (0, 0).

@radarhere radarhere added the BMP label Oct 12, 2026
@radarhere
radarhere merged commit 997b75f into python-pillow:main Oct 13, 2026
52 checks passed
@radarhere
radarhere deleted the bmp branch October 13, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant