@@ -50,8 +50,7 @@ discard block |
||
50 | 50 | { |
51 | 51 | $this->image->setImageAlphaChannel( \Imagick::ALPHACHANNEL_ACTIVATE ); |
52 | 52 | $this->image->setImageBackgroundColor( $options['image']['background'] ?? 'transparent' ); |
53 | - } |
|
54 | - else |
|
53 | + } else |
|
55 | 54 | { |
56 | 55 | $this->image->setImageBackgroundColor( $options['image']['background'] ?? '#ffffff' ); |
57 | 56 | } |
@@ -175,8 +174,7 @@ discard block |
||
175 | 174 | $newMedia->image->cropThumbnailImage( (int) $width, (int) $height ); |
176 | 175 | // see https://www.php.net/manual/en/imagick.cropthumbnailimage.php#106710 |
177 | 176 | $newMedia->image->setImagePage( 0, 0, 0, 0 ); |
178 | - } |
|
179 | - elseif( $fit === 1 && $width && $height ) |
|
177 | + } elseif( $fit === 1 && $width && $height ) |
|
180 | 178 | { |
181 | 179 | error_log( __METHOD__ . ': padding' ); |
182 | 180 | $this->resize( $newMedia, $width, $height ); |
@@ -185,8 +183,7 @@ discard block |
||
185 | 183 | $h = ( $height - $newMedia->image->getImageHeight() ) / 2; |
186 | 184 | |
187 | 185 | $newMedia->image->extentImage( $width, $height, (int) -$w, (int) -$h ); |
188 | - } |
|
189 | - else |
|
186 | + } else |
|
190 | 187 | { |
191 | 188 | error_log( __METHOD__ . ': ratio' ); |
192 | 189 | $this->resize( $newMedia, $width, $height ); |
@@ -290,8 +287,7 @@ discard block |
||
290 | 287 | $wmimage = clone self::$wmimg; |
291 | 288 | $wmimage->resizeImage( $ww, $wh, \Imagick::FILTER_CUBIC, 0.8 ); |
292 | 289 | self::$wmimages[$ww . 'x' . $wh] = $wmimage; |
293 | - } |
|
294 | - else |
|
290 | + } else |
|
295 | 291 | { |
296 | 292 | $wmimage = self::$wmimages[$ww . 'x' . $wh]; |
297 | 293 | } |