mirror of
https://github.com/mosbth/cimage.git
synced 2025-07-24 18:21:48 +02:00
Correcting issue #26
This commit is contained in:
@@ -1212,14 +1212,20 @@ class CImage
|
||||
{
|
||||
if (isset($options['jpeg_optimize']) && $options['jpeg_optimize']) {
|
||||
$this->jpegOptimizeCmd = $options['jpeg_optimize_cmd'];
|
||||
} else {
|
||||
$this->jpegOptimizeCmd = null;
|
||||
}
|
||||
|
||||
if (isset($options['png_filter']) && $options['png_filter']) {
|
||||
$this->pngFilterCmd = $options['png_filter_cmd'];
|
||||
} else {
|
||||
$this->pngFilterCmd = null;
|
||||
}
|
||||
|
||||
if (isset($options['png_deflate']) && $options['png_deflate']) {
|
||||
$this->pngDeflateCmd = $options['png_deflate_cmd'];
|
||||
} else {
|
||||
$this->pngDeflateCmd = null;
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
Reference in New Issue
Block a user