Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#63 Save progressive JPEG

future
open
nobody
5
2013-02-20
2013-01-31
John
No

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.

Discussion

  • Gasper Kozak
    Gasper Kozak
    2013-02-20

    • milestone: --> future
     
  • Gasper Kozak
    Gasper Kozak
    2013-02-20

    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.