You are not logged in.
Pages: 1
I have xfce 4.8 and need a script for thunar to resize images , I tried a few but they didn't work in xfce 4.8 ........ anyone got a working script?
Offline
Never mind I got it.... if your interested you open leafpad and paste this;
#!/bin/sh
mkdir -p ./Resized/$1
for file
do
if [ ! -e $file ]
then
continue
fi
toname="./Resized/"$1"/"$( echo $file | cut -f1 -d.)"_"$1".jpg"
convert -geometry $1x$1 -quality 100 "${file}" "${toname}"
done
save it in your /home as " .resize " without the quotes , allow it to run as program in properties ...... then make a thunar custom action called "resize 640" and the command " /home/mike/.resize 640 %N " (changing mike for your user name) then set the appearance settings to " *.jpg;*.JPG;*.jpeg;*.JPEG;*.png;*.PNG " and image files............
Offline
Hi!
I'm new with XFCE , I used nautilus and its batch image resizing tool before.
It seem strange to me that nobody has create a similar tool for thunar.
...However...I use your script and it work fine even if i need to create as many custom action as different dimension i suppose to use.
My "problem" is that if i select many big files, it takes some time and there is no way to know when it has finished.
Is it possible to add something that show if the script is still working or it has finished?
thank you!
Offline
You can just install SIR (simple image resizer) and create a custom action for it.
Command: sir %F
Appearance conditions: Directories, image files
files: *
Offline
Is SIR already in ubuntu repository?
Is it possible to pass it selected files with %N parameter in custom action?
Offline
The way I said, it works.
There's a PPA for it ( http://sir.projet-libre.org/?page=download ), I don't know if it's updated (I use Fedora).
But you can search for other image resizers. I remember in Debian I had another one installed, don't recall the name. Then maybe the one you install will work too.
Offline
Pages: 1
[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 533.14 KiB (Peak: 533.98 KiB) ]