Commit 7922cb13 authored by Skia's avatar Skia
Browse files

Fix another convert bug

parent 77b3caed
...@@ -129,9 +129,9 @@ else if ( isset($_REQUEST["id_asso"]) ) ...@@ -129,9 +129,9 @@ else if ( isset($_REQUEST["id_asso"]) )
$dest_icon = "/var/www/ae2/data/img/logos/".$asso->nom_unix.".icon.png"; $dest_icon = "/var/www/ae2/data/img/logos/".$asso->nom_unix.".icon.png";
$dest_full = "/var/www/ae2/data/img/logos/".$asso->nom_unix.".jpg"; $dest_full = "/var/www/ae2/data/img/logos/".$asso->nom_unix.".jpg";
exec(escapeshellcmd("/usr/share/php5/exec/convert $src -thumbnail 80x80 $dest_small")); exec(escapeshellcmd("/usr/bin/convert $src -thumbnail 80x80 $dest_small"));
exec(escapeshellcmd("/usr/share/php5/exec/convert $src -resize 48x48 -size 48x48 xc:transparent +swap -gravity center -composite $dest_icon")); exec(escapeshellcmd("/usr/bin/convert $src -resize 48x48 -size 48x48 xc:transparent +swap -gravity center -composite $dest_icon"));
exec(escapeshellcmd("/usr/share/php5/exec/convert $src -background white $dest_full")); exec(escapeshellcmd("/usr/bin/convert $src -background white $dest_full"));
} }
else else
$ErreurLogo = "Erreur lors de l'upload"; $ErreurLogo = "Erreur lors de l'upload";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment