Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
agriz
Posts: 237 Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308
Post
by agriz » 2017-10-29T04:16:47-07:00
Code: Select all
convert raw/1.gif -fuzz 10% -layers Optimize processed/1.gif
This command reduces the gif size.
But how can i do batch process?
Right now, i have to do one by one in command promt
Thanks
snibgo
Posts: 12159 Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK
Post
by snibgo » 2017-10-29T05:30:02-07:00
Put it in a shell loop.
agriz
Posts: 237 Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308
Post
by agriz » 2017-10-29T06:36:10-07:00
Images name are different. They are not just 1.gif 2.gif
snibgo
Posts: 12159 Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK
Post
by snibgo » 2017-10-29T07:12:22-07:00
So? You can loop through all the files in a directory. Or all the files named "*.gif" or "?.gif" or whatever you want.
agriz
Posts: 237 Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308
Post
by agriz » 2017-10-30T21:55:23-07:00
Code: Select all
mogrify -fuzz 10% -layers Optimize raw/*.gif processed/*.gif
This one works. But makes changes in raw folder itself
I dont know what to loop
agriz
Posts: 237 Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308
Post
by agriz » 2017-10-31T23:41:06-07:00
Thank you so much! It works now as i expected