JamieMason / ImageOptim-CLI

Make optimisation of images part of your automated build process
https://foldleft.io/image-tools
MIT License
3.45k stars 125 forks source link

Parentheses in filenames are not recognized #194

Closed chchen2021 closed 2 years ago

chchen2021 commented 2 years ago

Steps To Reproduce The Error

Name a file with parentheses, e.g. "settings (V-10 Z+4).png", and then use ImageOptim CLI to process the file

Expected Behaviour

The file will be compressed like ImageOptim GUI.

Actual Behaviour

Error message: "! No images matched the patterns provided"

Version Numbers or N/A

imageoptimc-cli 3.0.7 (brew installed) ImageOptim 1.8.9 (same with 1.8.8)

Help Needed

Update ImageOptim-CLI to recognize filenames with parentheses.

chchen2021 commented 2 years ago

I should have done a search before posting here. This issue has been discussed in #169, so I guess it can only be resolved upstream.

A homebrew package, rename, can be handy in temporarily changing the filenames.

JamieMason commented 2 years ago

No problem @chchen2021