On 22/12/10 11:59, Fred -Z wrote: > Ju a écrit : >> C'est presque ça. >> >> Voici une solution ... il est à noté que l'iamge se trouve transformée >> sans sauvegarde du format original: (snip) > > Merci, mais en fait je voudrai la transformer au format png.
voilà: ######### #!/bin/bash # curpath=`echo $NAUTILUS_SCRIPT_CURRENT_URI | sed 's/file\:\/\///'` cd $curpath # oldname=$1 newname=${oldname%.*}.png convert $curpath/$oldname -resize 1280x1024! -depth 16 $curpath/$newname #uncomment if you don't want to keep the original: # rm $curpath/$oldname # gconftool-2 --type string --set /apps/gnome-session/option/splash_image "$curpath/$newname" ######### Ju -- Every decent man is ashamed of the government he lives under. --H.L. Mencken -- Liste de diffusion ubuntu-fr ubuntu-fr@lists.ubuntu.com Pour s'abonner ou se désabonner : https://lists.ubuntu.com/mailman/listinfo/ubuntu-fr