From: =?UTF-8?B?TWFydMOtbiBNYXJxdcOpcw==?= on
Is there a way (I haven't found it yet) to create with a sequence of
gifs an animated gif using php-gd?

--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador
From: Ashley Sheridan on
On Mon, 2010-08-02 at 18:43 -0300, Martín Marqués wrote:

> Is there a way (I haven't found it yet) to create with a sequence of
> gifs an animated gif using php-gd?
>
> --
> Martín Marqués
> select 'martin.marques' || '@' || 'gmail.com'
> DBA, Programador, Administrador
>


Not natively with GD. For more complicated image creation, such as
animated GIFs, you should look at ImageMagick. This tool has some
extremely powerful options, and there is a PHP module for working with
it if you can't or don't want to get dirty on the command line.

Thanks,
Ash
http://www.ashleysheridan.co.uk


From: =?UTF-8?B?TWFydMOtbiBNYXJxdcOpcw==?= on
El 2 de agosto de 2010 19:29, Ashley Sheridan
<ash(a)ashleysheridan.co.uk> escribió:
>
> On Mon, 2010-08-02 at 18:43 -0300, Martín Marqués wrote:
>
> Is there a way (I haven't found it yet) to create with a sequence of
> gifs an animated gif using php-gd?
>
>
> Not natively with GD. For more complicated image creation, such as animated GIFs, you should look at ImageMagick. This tool has some extremely powerful options, and there is a PHP module for working with it if you can't or don't want to get dirty on the command line.
>

OK, using ImageMagick I would use the convert command like this:

convert -delay 20 -loop 0 images*.gif animate.gif

How can I replicate this using pecl::ImageMagick?

--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador
From: Philip Thompson on
On Aug 2, 2010, at 5:29 PM, Ashley Sheridan wrote:

> On Mon, 2010-08-02 at 18:43 -0300, Martín Marqués wrote:
>
>> Is there a way (I haven't found it yet) to create with a sequence of
>> gifs an animated gif using php-gd?
>>
>> --
>> Martín Marqués
>> select 'martin.marques' || '@' || 'gmail.com'
>> DBA, Programador, Administrador
>>
>
> Not natively with GD. For more complicated image creation, such as
> animated GIFs, you should look at ImageMagick. This tool has some
> extremely powerful options, and there is a PHP module for working with
> it if you can't or don't want to get dirty on the command line.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk

I thought that GIF was patented or copyrighted or something - didn't know if it was possible to create GIFs with ImageMagick/PHP. Did I pull that from left field?

~Philip

http://lonestarlightandsound.com/

From: =?UTF-8?B?TWFydMOtbiBNYXJxdcOpcw==?= on
El día 2 de agosto de 2010 22:06, Martín Marqués
<martin.marques(a)gmail.com> escribió:
> El 2 de agosto de 2010 19:29, Ashley Sheridan
> <ash(a)ashleysheridan.co.uk> escribió:
>>
>> On Mon, 2010-08-02 at 18:43 -0300, Martín Marqués wrote:
>>
>> Is there a way (I haven't found it yet) to create with a sequence of
>> gifs an animated gif using php-gd?
>>
>>
>> Not natively with GD. For more complicated image creation, such as animated GIFs, you should look at ImageMagick. This tool has some extremely powerful options, and there is a PHP module for working with it if you can't or don't want to get dirty on the command line.
>>
>
> OK, using ImageMagick I would use the convert command like this:
>
> convert   -delay 20   -loop 0   images*.gif   animate..gif
>
> How can I replicate this using pecl::ImageMagick?

Answering to myself:

http://www.php.net/manual/es/function.imagick-animateimages.php

--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador