From animated to still GIF [SOLVED]

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
joe111
Posts: 2
Joined: 2013-11-23T09:42:43-07:00
Authentication code: 6789

From animated to still GIF [SOLVED]

Post by joe111 »

This command works perfectly:

$ convert 'animated.gif[0]' -thumbnail 250x250 still.gif

However this doesn't work:

$ convert '/tmp/phpAbumej[0]' -thumbnail 250x250 still.gif

Where /tmp/phpAbumej is an input file from a PHP form data. Is there any workaround for this?
Last edited by joe111 on 2013-11-23T10:42:36-07:00, edited 1 time in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: From animated to still GIF

Post by snibgo »

Is /tmp/phpAbumej an image file? Put it somewhere like dropbox.com and paste the link here.
snibgo's IM pages: im.snibgo.com
joe111
Posts: 2
Joined: 2013-11-23T09:42:43-07:00
Authentication code: 6789

Re: From animated to still GIF [SOLVED]

Post by joe111 »

Nvm this thread, I did some fix with the PHP.

Old code:

Code: Select all

exec("/iu/cube/u0/s181322/imagick/bin/convert '$original_pic[0]' ...

New code:

Code: Select all

exec("/iu/cube/u0/s181322/imagick/bin/convert '" . $original_pic . "[0]' ...
Post Reply