I\'m trying to use imagemagick to create a simple .gif file from a few png files, using the general approach outlined here: http://www.r-bloggers.com/animated-plots-with-r/<
With Version: ImageMagick 7.0.3-4 Q8 x64 2016-10-10 on my Windows 10, adding 'magick' in front of 'convert' gets rid of the 'invalid parameter' error. For example,
magick convert foo.jpg -quality 60 low_foo.jpg
If preferring to define the steps in a file: save the following file as convert.sh:
SRC="$1"
LOW=60
magick convert $SRC.jpg -quality $LOW low_$SRC.jpg
magick convert $SRC.jpg -quality $LOW low_$SRC.webp
magick convert $SRC.jpg -quality $LOW -resize 50% "$SRC"_"$LOW"q_50pc.jpg
magick convert $SRC.jpg -quality $LOW -resize 50% "$SRC"_"$LOW"q_50pc.webp
and running sh convert.sh foo
at a bash command prompt processes foo.jpg in four different ways. It bears to mention that after the installment, 'C:\Program Files\ImageMagick-7.0.3-Q8' appears first on the list at the System/Advanced System Setting/System Variable/Path.