Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected EMF DPI #8485

Merged
merged 1 commit into from
Oct 26, 2024
Merged

Corrected EMF DPI #8485

merged 1 commit into from
Oct 26, 2024

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
47 checks passed
@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