Update of /home/spip-cvs/spip
In directory alan:/tmp/cvs-serv4049
Modified Files:
spip_image.php3
Log Message:
choix du format graphique prefere pour produire les vignettes
(sur suggestion de Pablo Iranzo Gómez <pablo.iranzo@uv.es> qui faisait remarquer que les JPG perdaient la transparence de ses images PNG)
Index: spip_image.php3
RCS file: /home/spip-cvs/spip/spip_image.php3,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -d -r1.85 -r1.86
--- spip_image.php3 12 Sep 2004 10:39:10 -0000 1.85
+++ spip_image.php3 24 Sep 2004 21:05:01 -0000 1.86
@@ -548,6 +548,7 @@
$image = $row['fichier'];
$process = lire_meta('image_process');
+
// imagick (php4-imagemagick)
if ($process == 'imagick') {
$handle = imagick_readimage($image);
@@ -564,7 +565,9 @@
}
}
else if ($process = "convert") {
- $commande = "$convert_command -rotate $var_rot $image $image";
+ $commande = "$convert_command -rotate $var_rot ./"
+ . escapeshellcmd($image).' ./'.escapeshellcmd($image);
+ spip_log($commande);
exec($commande);
}