News for hackers. Stuff that matters.
Re:Supporting Low Cost Android Phones by aw3c2 on Sunday November 04, 2012 @07:49AM (#4739634)
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.

Re:Supporting Low Cost Android Phones by lnanek2 on Wednesday November 14, 2012 @08:35PM (#4786638)
Thanks 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!