|
@@ 1195-1197 (lines=3) @@
|
| 1192 |
|
|
| 1193 |
|
$format_sortie = $valeurs['format_dest']; |
| 1194 |
|
|
| 1195 |
|
if (($process == 'AUTO') and isset($GLOBALS['meta']['image_process'])) { |
| 1196 |
|
$process = $GLOBALS['meta']['image_process']; |
| 1197 |
|
} |
| 1198 |
|
|
| 1199 |
|
// si le doc n'est pas une image dans un format accetpable, refuser |
| 1200 |
|
if (!$force and !in_array($format, formats_image_acceptables(in_array($process, ['gd1', 'gd2'])))) { |
|
@@ 1560-1562 (lines=3) @@
|
| 1557 |
|
**/ |
| 1558 |
|
function process_image_reduire($fonction, $img, $taille, $taille_y, $force, $process = 'AUTO') { |
| 1559 |
|
$image = false; |
| 1560 |
|
if (($process == 'AUTO') and isset($GLOBALS['meta']['image_process'])) { |
| 1561 |
|
$process = $GLOBALS['meta']['image_process']; |
| 1562 |
|
} |
| 1563 |
|
# determiner le format de sortie |
| 1564 |
|
$format_sortie = false; // le choix par defaut sera bon |
| 1565 |
|
if ($process == "netpbm") { |