Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Progressive jpegs with Phalcon

Is it possible to save a progressive JPEG with Phalcon? Basically turn intelacing on. Couldn't find any mentions in official docs or on this forum. Thank you!

edited May '16

There's nothing specific in which PHP framework should implement those functionalities. Image processing is done either with GD or ImageMagick libs.

That’s right. However I wonder if Phalcon\Image\Adapter\Imagick can support it and if not, whether it is possible to somehow access the “image” php object that can be manipulated using plain old PHP functions. So I can do something like this:

$image = new Phalcon\Image\Adapter\Imagick("upload/test.jpg");

imageinterlace ($image, true);

You can use provided class functionalities:

On top of that, you can use parent methods from native Imagick extension.


Thanks! Got it working this way


where $image is an instance of \Phalcon\Image\Adapter\Imagick