You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried to open an emf file and convert it to a jpg file using Pillow, I found that Pillow did not handle the colors in the image correctly. Where it should be white (#FFFFFF), Pillow thought it was (#F8F8F8). I am sure that place is white because this emf image is made by me, and when I open this image with other image viewing software, there is white.
Environment
Windows 10
Python == 3.11.5
pillow == 10.4.0
How to reproduce this situation
Copy figure below into PowerPoint and then save the figure as fig.emf. Use code below and then you can find that the area that should be #FFFFFF has become #F8F8F8.
What's problem
When I tried to open an emf file and convert it to a jpg file using Pillow, I found that Pillow did not handle the colors in the image correctly. Where it should be white (#FFFFFF), Pillow thought it was (#F8F8F8). I am sure that place is white because this emf image is made by me, and when I open this image with other image viewing software, there is white.
Environment
Windows 10
Python == 3.11.5
pillow == 10.4.0
How to reproduce this situation
Copy figure below into PowerPoint and then save the figure as fig.emf. Use code below and then you can find that the area that should be #FFFFFF has become #F8F8F8.
The text was updated successfully, but these errors were encountered: