-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
wmf file to bitmap was forced to 72 dpi #4223
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
image2.zip |
For now, I think you should be able to use this code to set the size that the image is rendered at, and so effectively, the DPI that is used to create the image - from PIL import Image
im = Image.open("test.wmf")
im._size = (300, 300)
im.load() |
I've created PR #4311 to resolve this, by adding a with Image.open("Tests/images/drawing.wmf") as im:
im.load(144) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What did you do?
I read in an wmf image and then save it as a png image. I found the resolution of the result image is rather low no matter how I set the quality parameters.
When I looking into the source code ( src/PIL/WmfImagePlugin.py), I found the resolution was fixed to 72dpi.
What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: