gribbg / pillow_svg

SVG Plugin for Pillow
19 stars 5 forks source link

PIL.UnidentifiedImageError #5

Open Towhid1 opened 1 year ago

Towhid1 commented 1 year ago
import pillow_svg.SvgImagePlugin
from PIL import Image

file = "image_emb/sample_640×426.svg"
svg_image = Image.open(file)
svg_image.show()

got error :

Traceback (most recent call last):
  File ".\pilsvg.py", line 5, in <module>
    svg_image = Image.open(file)
  File "D:\Client\venv\lib\site-packages\PIL\Image.py", line 3030, in open
    raise UnidentifiedImageError(
PIL.UnidentifiedImageError: cannot identify image file 'image_emb/sample_640×426.svg'
nandoflorestan commented 1 year ago

I did the same thing, got the same error, but I am attaching my SVG file so someone can reproduce the problem. test