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

Create new folder. If the -o, OUTPUT folder does not exist #125

Open
orithecapper opened this issue Sep 17, 2023 · 1 comment
Open

Create new folder. If the -o, OUTPUT folder does not exist #125

orithecapper opened this issue Sep 17, 2023 · 1 comment

Comments

@orithecapper
Copy link

Traceback (most recent call last):
File "/home/ori/.pyenv/versions/3.11.5/lib/python3.11/site-packages/PIL/Image.py", line 2390, in save
format = EXTENSION[ext]
~~~~~~~~~^^^^^
KeyError: ''

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/ori/.pyenv/versions/3.11.5/bin/vcsi", line 8, in
sys.exit(main())
^^^^^^
File "/home/ori/.pyenv/versions/3.11.5/lib/python3.11/site-packages/vcsi/vcsi.py", line 1647, in main
process_file_or_ignore(filename, args)
File "/home/ori/.pyenv/versions/3.11.5/lib/python3.11/site-packages/vcsi/vcsi.py", line 1621, in process_file_or_ignore
process_file(filepath, args)
File "/home/ori/.pyenv/versions/3.11.5/lib/python3.11/site-packages/vcsi/vcsi.py", line 1780, in process_file
is_save_successful = save_image(args, image, media_info, output_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ori/.pyenv/versions/3.11.5/lib/python3.11/site-packages/vcsi/vcsi.py", line 1140, in save_image
image.save(output_path, optimize=True, quality=args.image_quality)
File "/home/ori/.pyenv/versions/3.11.5/lib/python3.11/site-packages/PIL/Image.py", line 2393, in save
raise ValueError(msg) from e
ValueError: unknown file extension:

@minicoz
Copy link

minicoz commented Aug 27, 2024

I opened up a PR for this here #134

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

2 participants