@@ -511,11 +511,12 @@ |
||
| 511 | 511 | $position = 'focus', |
| 512 | 512 | $background_color = 'white' |
| 513 | 513 | ) { |
| 514 | - if (function_exists('image_recadre') && ($GLOBALS['meta']['image_process'] ?? '') === 'gd2') |
|
| 515 | - return image_reduire(image_recadre($im, $width.':'.$height, '-', $position, $background_color), $width, $height); |
|
| 516 | - else |
|
| 517 | - return image_passe_partout($im, $width, $height); |
|
| 518 | -} |
|
| 514 | + if (function_exists('image_recadre') && ($GLOBALS['meta']['image_process'] ?? '') === 'gd2') { |
|
| 515 | + return image_reduire(image_recadre($im, $width.':'.$height, '-', $position, $background_color), $width, $height); |
|
| 516 | + } else { |
|
| 517 | + return image_passe_partout($im, $width, $height); |
|
| 518 | + } |
|
| 519 | + } |
|
| 519 | 520 | |
| 520 | 521 | /** |
| 521 | 522 | * Réduit les images d'un certain facteur |