Save progressive JPEG
Status: Abandoned
Brought to you by:
gasper_k
To display high resolution JPEG images on a iPad with a Retina screen we need to server progressive JPEGs. As far as I can tell there is no way in WideImage right now to do this.
I implemented this feature myself by adding the following code to WideImage_TrueColorImage:
public function setProgressive() {
imageinterlace($this->handle, true);
}
I had to do it this way because there seems to be no way to access the handle from outside the class. It would be useful for situations like this if there was a getHandle() method.
The getHandle() method returns the GD image handle, so you can just do:
imageinterlace($img->getHandle(), true);
I'm leaving this request open to consider adding this to the lib, looks easy enough.