Topic: [ Tip ] Quick resizing of images in Thunar
The topic came up quite by accident in Ubuntu vs Crunchbang. Anonymous provided the link.
http://customisinglife.wordpress.com/20 -pictures/
I am a photographer that was in need of a quick way to resize images for uploading proofs to my server.
Nautilus had this sort of thing. However I don't like Nautilus and wanted a way to do this in Thunar.
This is what I came up with using the model from the link above.
Three scripts that will size to 640, 800, 1024 and place them nice and neat in cwd.
This will work with multiple images.
So no need for Nautilus anymore as that was the only thing I used it for. ![]()
Perhaps these scripts will be useful to someone here. Modify to taste.
1.
#!/bin/sh
# Name rez640
mkdir -p ./Resized/640
for file
do
name=`echo $file | cut -f1 -d.`
convert -geometry 640×640 -quality 100 $file ./Resized/640/${name}_640.jpg
done
2.
#!/bin/sh
# Name rez800
mkdir -p ./Resized/800
for file
do
name=`echo $file | cut -f1 -d.`
convert -geometry 800×800 -quality 100 $file ./Resized/800/${name}_800.jpg
done
3.
#!/bin/sh
# Name rez1024
mkdir -p ./Resized/1024
for file
do
name=`echo $file | cut -f1 -d.`
convert -geometry 1024×1024 -quality 100 $file ./Resized/1024/${name}_1024.jpg
done
Last edited by aicardi (2009-11-10 18:07:20)
aicardi