Page 1 of 1

PNG to animated gif

Posted: 2017-02-20T10:38:13-07:00
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

Re: PNG to animated gif

Posted: 2017-02-20T11:14:31-07:00
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.

Re: PNG to animated gif

Posted: 2017-02-20T13:32:25-07:00
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 ?

Re: PNG to animated gif

Posted: 2017-02-20T14:23:36-07:00
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/

Re: PNG to animated gif

Posted: 2017-02-20T15:01:22-07:00
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.

Re: PNG to animated gif

Posted: 2017-02-20T15:06:12-07:00
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