Page 1 of 1
Batch convert jpegs to monochrome GIFs
Posted: 2014-07-31T04:57:54-07:00
by pgON4ID
Hi. What settings should I use to batch convert 300 jpegs to GIFs that have the following settings:

Re: Batch convert jpegs to monochrome GIFs
Posted: 2014-07-31T09:31:03-07:00
by fmw42
try
Code: Select all
-colorspace gray +dither -colors 2 -auto-level
Re: Batch convert jpegs to monochrome GIFs
Posted: 2014-07-31T16:06:31-07:00
by pgON4ID
I get nothing but garbage no matter what I try. Can't believe this.
Re: Batch convert jpegs to monochrome GIFs
Posted: 2014-07-31T16:45:19-07:00
by fmw42
What version of IM and platform? If an old version of IM, you might consider upgrading.
What was your exact command line?
This worked fine for me on IM 6.8.9.6 Q16 Mac OSX
Code: Select all
convert rose: -colorspace gray +dither -colors 2 -auto-level rose_binary.gif
Re: Batch convert jpegs to monochrome GIFs
Posted: 2014-07-31T17:09:18-07:00
by pgON4ID
Downloaded it for the first time today off of ImageMagick's website. Seems like
nothing works. For example, while the two example codes in this article produce new images and don't give me any errors, the specified image modifications are not performed:
http://www.ioncannon.net/linux/81/5-ima ... es-part-1/
And the example (convert –resize 800x800 *.jpg) in this nice introductory guide produces the following error:
And as you can see, I need to
move the images into ImageMagick's directory to get it to work at all, which is in contrast with the above tutorial as well as a youtube video I watched.
Re: Batch convert jpegs to monochrome GIFs
Posted: 2014-07-31T18:13:16-07:00
by fmw42
convert –resize 800x800 *.jpg
Convert does not work this way. It requires one input and makes one output. If you want to process all files in a folder, then use mogrify.
Code: Select all
convert input -resize 800x800 output
or
cd to some directory, then
But be careful, this will overwrite your image. If you do not want that, then create a new empty directory and use the -path option in mogrify.
see
http://www.imagemagick.org/script/convert.php
http://www.imagemagick.org/script/mogrify.php
http://www.imagemagick.org/Usage/basics/#syntax
http://www.imagemagick.org/Usage/basics/#mogrify
For new users, see
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
http://www.imagemagick.org/script/comma ... -tools.php
http://www.imagemagick.org/Usage/windows/