3 ms·
Public Service Announcement about Image-/Graphicsmagick ;) Imagemagick/Graphicsmagick have a batch image manipulation tool called mogrify. For example "mogrify
by aw3c2 14y ago
Public Service Announcement about Image-/Graphicsmagick ;)
Imagemagick/Graphicsmagick have a batch image manipulation tool called mogrify. For example "mogrify -format jpeg -geometry 512 -quality 75 -path other/dir/ *.png". There usually is no need for any awkward loops that use convert once per image.
Posting this here since the linked site requires Javascript for comments.
- deleted 14y ago[deleted]
- lnanek2 14y agoThanks for the tip. I read the docs for mogrify just now, but it says it overwrites images and I don't see any option to change that or add a different output path. The need here is to take a source image from a folder like drawable-hdpi, and produce a new, converted image in a folder like drawable-ldpi. I guess maybe you could copy everything first, then modify it? Although that seems more clumsy than just running the find command already being used. Thanks for the help!