interlace — Toggle interlaced mode
Description
public Intervention\Image\Image interlace([boolean $interlace])
Determine whether an image should be encoded in interlaced or standard mode by toggling interlace mode with a boolean parameter. If an JPEG image is set interlaced the image will be processed as a progressive JPEG.
Parameters
interlace (optional)
If interlace is set to boolean true
the image will be encoded interlaced. If the parameter is set to false
interlaced mode is turned off. Default: true
Return Values
Instance of Intervention\Image\Image
Examples
// open image
$img = Image::make('public/foo.png');
// enable interlacing
$img->interlace();
// save image interlaced
$img->save();
// open interlaced image
$img = Image::make('public/interlaced.gif');
// disable interlacing
$img->interlace(false);
// save image in standard mode
$img->save();
See also
当前内容版权归 intervention 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 intervention .