iwyg / jitimage

Just In Time image manipulation (GD, Imagick, imagemagick) with integration for laravel 4
MIT License
95 stars 8 forks source link

Gif to Jpeg #44

Closed tomc3 closed 9 years ago

tomc3 commented 10 years ago

Hello

gif is not getting converted to jpeg using driver imagick.

When you try to run this code.

return JitImage::source('uploads/iV5oWip2v.gif')->toJpeg()->cropAndResize(200, 200, 5);

The output is something like this.

http://site.dev:8000/test/storage/393a109f/testf0ce15d074e755feb1c.inode/x-empty

When you open the cache file, it's totally empty.

Hover-ever with GD is it is working fine.

Many thanks for your awesome package.

iwyg commented 10 years ago

you should probably add a filter that detects the gif source and replaces the resource with the first frame of the gif.

tomc3 commented 10 years ago

Ok, I will try adding it.

What I think since this feature is inside the script, you must need to give a look at this. :)