Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImageMagick - Issue with Windows and convert function

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/

However, I'm on a Windows 10 machine, and I think that's causing problems with the convert function as generally described here: http://www.imagemagick.org/discourse-server/viewtopic.php?t=19679

Can someone please explain how I can either change imagemagick or Windows so that it works?

Specifically the command I'm giving and the error that occurs is shown below:

convert *.png new.gif

The error:

Invalid Parameter - the.gif

Thank you for your help.

like image 934
AME Avatar asked Jul 02 '16 19:07

AME


People also ask

How do I use ImageMagick on Windows?

You have 2 choices. 1) Use the full path every time you run ImageMagick, i.e. something like "C:\Programs\Image Magick\convert" or 2) Go to Settings -> System -> Advanced -> Environment Variables and click Edit and add the directory in to the start of your PATH.

What is the latest version of ImageMagick?

The current release is ImageMagick 7.1. 0-48. It runs on Linux, Windows, Mac Os X, iOS, Android OS, and others. The authoritative ImageMagick web site is https://imagemagick.org.

What software uses ImageMagick?

A number of programs, such as Drupal, MediaWiki, phpBB, and vBulletin, can use ImageMagick to create image thumbnails if installed. ImageMagick is also used by other programs, such as LyX, for converting images.

What is ImageMagick package?

ImageMagick is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF.


2 Answers

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

like image 157
dlemstra Avatar answered Oct 27 '22 21:10

dlemstra


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

like image 5
Michel de Ruiter Avatar answered Oct 27 '22 21:10

Michel de Ruiter