Skip to content

Trimage does not escape file paths. #99

@kotenok2000

Description

@kotenok2000

When i try to process file path "/e/new folder/books/Cities in Dust/Cities in Dust (shit let's be hardboiled) - Cephied_Variable - Homestuck [Archive of Our Own]_files/021(1).png" it gives this error:

user@DESKTOP-P57624Q:/e/new folder/books$ trimage -f Cities\ in\ Dust/Cities\ in\ Dust\ \(shit\ let\'s\ be\ hardboiled\)\ -\ Cephied_Variable\ -\ Homestuck\ \[Archive\ of\ Our\ Own\]_files/021\(1\).png
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user'
 pngcrush 1.8.13, uses libpng 1.6.43 and zlib 1.3
 Check http://pmt.sf.net/
 for the most recent version.
/bin/sh: 1: Syntax error: ")" unexpected
[error] /e/new folder/books/Cities in Dust/Cities in Dust (shit let's be hardboiled) - Cephied_Variable - Homestuck [Archive of Our Own]_files/021(1).png could not be compressed
Exception ignored in: <function Worker.__del__ at 0x7f80872289a0>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/trimage/trimage.py", line 414, in __del__
  File "/usr/lib/python3/dist-packages/trimage/ThreadPool/ThreadPool.py", line 172, in shutdown
TypeError: 'NoneType' object is not callable

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