Gregwar / Image

A PHP library to handle images
MIT License
1k stars 191 forks source link

Progressive PNG / JPEG #40

Closed wodka closed 10 years ago

wodka commented 10 years ago

-> add the call to the image adapter

Gregwar commented 10 years ago

Thanks for contributing

CharlyPoppins commented 9 years ago

Hi, I can't found how to use it.

wodka commented 9 years ago

call the function enableProgressive() on a GD Adapter

CharlyPoppins commented 9 years ago

so with the ImageBundle it works like image(path/to/my/image).crop(1,2,3,4).enableProgressive().jpg(80) ?

wodka commented 9 years ago

have you even tried it befor you asked?

the image() twig extension should return you an imageHandler instance -> that one will forward it to the adapter (https://github.com/Gregwar/Image/blob/master/Image.php#L357)

it also only works if you use GD

CharlyPoppins commented 9 years ago

Tried but I'm not sure something changed, I'm gonna check if I use GD.