Gimp e photo resize
Inviato: dom 28 gen 2007, 12:54
Ciao ragazzuoli.. come si fa a fare il resize delle foto in digicam per poi poterle mettere sul web o mandare via mail!?
tanks!!
tanks!!
Codice: Seleziona tutto
[Desktop Action ImageResize]
Exec=~/.kde/share/apps/konqueror/servicemenus/image_resize.sh %f
Icon=filter
Name=Resize Image
[Desktop Entry]
Actions=ImageResize
Encoding=UTF-8
Icon=filter
ServiceTypes=image/*Codice: Seleziona tutto
#!/bin/bash
EXT=`echo $1 | sed -e 's/.*\.//'`
FILENAME=`basename $1 .$EXT`
DIRNAME=`dirname $1`
SIZE=`kdialog --inputbox "Please enter the new image width." 250`
if [[ $SIZE == "" ]]
then
exit;
fi
convert -geometry ${SIZE}x $1 $DIRNAME/${FILENAME}_${SIZE}.$EXT