ImageMagick - Issue with Windows and convert function

前端 未结 3 1974
庸人自扰
庸人自扰 2021-01-18 17:09

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/<

相关标签:
3条回答
  • 2021-01-18 17:20

    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.

    0 讨论(0)
  • 2021-01-18 17:30

    Instead of convert.exe <args>, use magick.exe convert <args>.

    0 讨论(0)
  • 2021-01-18 17:32

    You probably installed ImageMagick 7.X on your machine. This version no longer includes convert.exe and the error that you are receiving is from the convert command of Windows. You can use magick.exe instead or select Install legacy utilities (e.g. convert) during the installation to install convert.exe on your machine..

    0 讨论(0)
提交回复
热议问题