PNG to animated gif

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
nanblanc
Posts: 2
Joined: 2017-02-20T10:30:58-07:00
Authentication code: 1151

PNG to animated gif

Post by nanblanc »

hi !

I want to convert a big list a images named PM_10000 to PM_19258 to a 60 fps gif with image magick. But i couldn't find any command line in diferent topic that works. It keeps telling me "non valid parameter" =>

C:\Users\8810853P>convert -delay 60 -loop 0 C:\Users\8810853P\Desktop\result\*.png C:\Users\8810853P\Desktop\result\animation.gif
Paramètre non valide - -loop

Thanks you
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: PNG to animated gif

Post by GeeMack »

nanblanc wrote: 2017-02-20T10:38:13-07:00I want to convert a big list a images named PM_10000 to PM_19258 to a 60 fps gif with image magick. But i couldn't find any command line in diferent topic that works. It keeps telling me "non valid parameter" =>
You probably need to call up ImageMagick using the full path, or possibly add the IM directory to your PATH variable. There's a Windows command named "convert" that issues an error like that, and that's probably what your command is trying to read.
nanblanc
Posts: 2
Joined: 2017-02-20T10:30:58-07:00
Authentication code: 1151

Re: PNG to animated gif

Post by nanblanc »

the path is added, that's not the origin of the probleme, and even more beacause the error come from image magick and not the console, whiwh would have told somtehing like "xxx isn't a command"

and i m not sure about the inuput files :
since the names of my files are PM_10000 how can i call them right ? is path\*.png right ? or should i put path\PM_*.png ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PNG to animated gif

Post by fmw42 »

To get to the bottom of your first problem, try a simple convert such as

Code: Select all

convert.exe path2\PM_10000.png path2\PM_10000.gif
does that work. Where path2 is your full path to where your images reside

If that does not work, try

Code: Select all

path2\convert.exe path2\PM_10000.png path2\PM_10000.gif
where the first path2 is your path to where IM is installed.


Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at viewtopic.php?f=1&t=9620

For novices, see

viewtopic.php?f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: PNG to animated gif

Post by GeeMack »

nanblanc wrote: 2017-02-20T13:32:25-07:00the path is added, that's not the origin of the probleme, and even more beacause the error come from image magick and not the console, whiwh would have told somtehing like "xxx isn't a command"
The Windows convert.exe command will issue an error message "Paramètre non valide - ...". Please test for the location of your "convert" command(s) by typing "where convert" at a Windows prompt. Also check the PATH by typing "path" at a command prompt. The "ImageMagick" folder must be in the path before the "Windows\System32" folder.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PNG to animated gif

Post by fmw42 »

If

Code: Select all

convert.exe -version
does not return a proper result, then you are using the Windows convert and not the IM convert
Post Reply