Skip to content

Conversation

@radarhere
Copy link
Member

@radarhere radarhere commented Oct 19, 2024

Resolves #8462

Corrects a typo when calculating the X DPI of an EMF image - x1 - y0 should be x1 - x0.

# calculate dots per inch from bbox and frame
xdpi = 2540.0 * (x1 - y0) / (frame[2] - frame[0])
ydpi = 2540.0 * (y1 - y0) / (frame[3] - frame[1])

@hugovk hugovk merged commit 23023de into python-pillow:main Oct 26, 2024
@radarhere radarhere deleted the emf branch October 26, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EMF aspect ratio issues

2 participants