Skip to content

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

Description

@orithecapper

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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions