Skip to content
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

KeyError: '.png' #495

Open
davidenitti opened this issue Aug 6, 2023 · 0 comments
Open

KeyError: '.png' #495

davidenitti opened this issue Aug 6, 2023 · 0 comments

Comments

@davidenitti
Copy link

davidenitti commented Aug 6, 2023

I didn't manage to make sigal work, I have this error:

Collecting albums /Traceback (most recent call last):
  File "/home/davide/.local/bin/sigal", line 8, in <module>
    sys.exit(main())
  File "/home/davide/.local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/davide/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/davide/.local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/davide/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/davide/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/davide/.local/lib/python3.10/site-packages/sigal/__init__.py", line 173, in build
    gal = Gallery(settings, ncpu=ncpu, quiet=quiet)
  File "/home/davide/.local/lib/python3.10/site-packages/sigal/gallery.py", line 743, in __init__
    album = Album(relpath, settings, dirs, files, self)
  File "/home/davide/.local/lib/python3.10/site-packages/sigal/gallery.py", line 395, in __init__
    media = Image(f, self.path, settings)
  File "/home/davide/.local/lib/python3.10/site-packages/sigal/gallery.py", line 238, in __init__
    if imgformat and PILImage.EXTENSION[self.src_ext] != imgformat.upper():
KeyError: '.png'

it seems that it's not able to convert the PNG files, because if I comment this line it works
img_format = "JPEG"

@davidenitti davidenitti changed the title no album found and KeyError: '.png' KeyError: '.png' Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant