Skip to content

cannot identify image file 'xxxx.eps' #7751

@WangZiXiao-ChenDu

Description

@WangZiXiao-ChenDu

What are your OS, Python and Pillow versions?

  • OS: Windows 11
  • Python: 3.10.9
  • Pillow: 10.2.0
from PIL import Image
try:
   im = Image.open("./input/G14.eps")
   im.load(scale=4)
   im.save("./output/G14.jpg")
except Exception as ex:
      print(ex)
else:
     print("success")

Firstly, I am certain that the code can run normally. In the process of converting EPS to JPG, the majority of the conversions are successful, but there are some instances where it fails. However, the EPS images that fail are not corrupted. I can provide one of the failed images, and I would like to know the reasons for the failures and how to resolve them.
eps_Pic.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions