protected function _set_interlacing($image) { if ($this->_isProgressiveJpeg) { imageinterlace($image, 1); } else { imageinterlace($image, 0); } }