|
@@ 1206-1208 (lines=3) @@
|
| 1203 |
|
|
| 1204 |
|
$format_sortie = $valeurs['format_dest']; |
| 1205 |
|
|
| 1206 |
|
if (($process == 'AUTO') and isset($GLOBALS['meta']['image_process'])) { |
| 1207 |
|
$process = $GLOBALS['meta']['image_process']; |
| 1208 |
|
} |
| 1209 |
|
|
| 1210 |
|
// si le doc n'est pas une image dans un format accetpable, refuser |
| 1211 |
|
if (!$force and !in_array($format, formats_image_acceptables(in_array($process, ['gd1', 'gd2'])))) { |
|
@@ 1571-1573 (lines=3) @@
|
| 1568 |
|
**/ |
| 1569 |
|
function process_image_reduire($fonction, $img, $taille, $taille_y, $force, $process = 'AUTO') { |
| 1570 |
|
$image = false; |
| 1571 |
|
if (($process == 'AUTO') and isset($GLOBALS['meta']['image_process'])) { |
| 1572 |
|
$process = $GLOBALS['meta']['image_process']; |
| 1573 |
|
} |
| 1574 |
|
# determiner le format de sortie |
| 1575 |
|
$format_sortie = false; // le choix par defaut sera bon |
| 1576 |
|
if ($process == "netpbm") { |