Nette\Utils\Image progressive jpeg support

3 years ago

JakubTN
Member | 55
+
0
-

Hi there,

I think it would be great to have option in Nette\Utils\Image which will be able to enable/disable saving jpeg images as “progressive”. There is imageinterlace() function in PHP which can switch jpg image to progressive one – PHP manual

In case you don't know what is progressive jpeg, refer to this article or use google.

Thanks!

3 years ago

enumag
Member | 2128
+
+1
-
// $image instanceof \Nette\Itils\Image
$image->interlace();

Look at \Nette\Itils\Image::__call() for reference.

3 years ago

JakubTN
Member | 55
+
0
-

Omg I'm probably blind… Thanks! :)