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?
From animated to still GIF [SOLVED]
From animated to still GIF [SOLVED]
Last edited by joe111 on 2013-11-23T10:42:36-07:00, edited 1 time in total.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: From animated to still GIF
Is /tmp/phpAbumej an image file? Put it somewhere like dropbox.com and paste the link here.
snibgo's IM pages: im.snibgo.com
Re: From animated to still GIF [SOLVED]
Nvm this thread, I did some fix with the PHP.
Old code:
New code:
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]' ...