Test 1.eps size and data
- I moved all EPS images (and images converted from EPS images) to their own folder so that they're all together.
- I noticed that
1.epshas aBoundingBoxof (72, 48), but itsImageDatasays its size is (100, 67). Pillow currently believes the image size should be (100, 67), so I've added a BMP version of this image at that size to compare it to. However, this comparison does not currently work, because an error occurs when callingImage.tobytes()on the EPS image.
ValueError: No packer found from RGB to 1
I tried converting "1.eps" to PNG using ImageMagick, and it converted it to a 72x48 sized image. So perhaps Pillow isn't using the right size either. Not that there necessarily is a "right" size, since EPS isn't a raster image format.
Mode "1" and "L" images should now load as those modes instead of being converted to RGB. "LAB" and "CMYK" are still converted to RGB though.
I tried converting "1.eps" to PNG using ImageMagick, and it converted it to a 72x48 sized image. So perhaps Pillow isn't using the right size either. Not that there necessarily is a "right" size, since EPS isn't a raster image format.
This is reverting the change requested in https://github.com/python-pillow/Pillow/issues/6382#issuecomment-1213597912. I'm reluctant to change how Pillow behaves again just because a different third-party application was chosen to compare this against?
I used ImageMagick because I don't have Photoshop, but I would consider Photoshop to be the one to follow, since EPS is an Adobe creation. I'll remove that commit.