Page 1 of 1

From animated to still GIF [SOLVED]

Posted: 2013-11-23T09:46:25-07:00
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?

Re: From animated to still GIF

Posted: 2013-11-23T10:30:45-07:00
by snibgo
Is /tmp/phpAbumej an image file? Put it somewhere like dropbox.com and paste the link here.

Re: From animated to still GIF [SOLVED]

Posted: 2013-11-23T10:44:44-07:00
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]' ...