With version: ImageMagick 7.0.3-4 Q8 x64 2016-10-10 on my Windows 10, adding "magick" before "convert" gets rid of the "invalid parameter" error. For example, magick convert foo.jpg -quality 60 low_foo.jpg If you prefer to define 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 run sh convert.sh foo on the command line bash handles foo.jpg in four different ways. It should be noted that after the release of "C: \ Program Files \ ImageMagick-7.0.3-Q8" first appears in the list under System / Advanced System Setting / System Variable / Path.
Treefish zhang
source share