Skip to content

AttributeError: 'NoneType' object has no attribute 'orig_size' #20

Closed
@anthonylarbalestier

Description

@anthonylarbalestier

λ optimize-images /Users/anthony/Downloads/4064VH-PWCopy/4064VH-PW_001.jpg

Using these symbols:

✅ Optimized file ℹ️ EXIF info present
🔴 Skipped file ⤵ Image was downsized 🔻 Size reduction (%)

Traceback (most recent call last):
File "c:\users\anthony\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\users\anthony\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\anthony\AppData\Local\Programs\Python\Python37-32\Scripts\optimize-images.exe_main
.py", line 9, in
File "c:\users\anthony\appdata\local\programs\python\python37-32\lib\site-packages\optimize_images_main
.py", line 115, in main
total_src_size = r.orig_size
AttributeError: 'NoneType' object has no attribute 'orig_size'

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