*****
EDIT:
I just thought I would let everyone know there is a much nicer resize and rotate program in the repository called nautilus-image-converter, it adds a resize and rotate option right to the right click menu on images.
*****Code:sudo apt-get install nautilus-image-converter
I basically just highly modified this guys script: http://ubuntuforums.org/showthread.php?t=34705
it can resize to 3 predefined sizes (you could add more) and it asks to put the resized pics in a folder or rename them
its made to be put in the nautilus scripts directory:
~/.gnome2/nautilus-scripts/
and then its available on the right click menu, (dont forget chmod) just highlight some pics and right click and choose the script
edit: forgot to mention you must have imagemagick installed (in the repos)
what do you think?
and feel free to use/mod/etc
the main reason i made this is because my parents need something to do this, in windows they have been using photogadget, and this does the same thing
Code:#!/bin/bash # must have imagemagick installed # doesnt work with spaces in filenames... yet CURRENTLOCATION=`pwd` SIZE=`zenity --list --title="Choose the thumbnail's size" --radiolist --column="Check" --column="Size" "" "320x240" "" "640x480" "" "800x600" "" "1024x768"` if [ "${SIZE}" == "" ]; then zenity --error --text="Size not defined by user. Please choose a size to use. " exit 1 fi ACTION=`zenity --list --title="What would you like to do?" --radiolist --column="Check" --column="Choices" "" "Move pictures to resized folder" "" "Rename pictures"` # zenity --file-selection --title="What would you like to do?" --directory --filename=resized # could be used to use folder other than resized if [ "${ACTION}" == "" ]; then zenity --error --text="Action not defined by user. Please choose an action. " exit 2 fi if [ "${ACTION}" == "Move pictures to resized folder" ]; then mkdir resized/ for file in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do filename=$(basename "$file") convert -resize "${SIZE}" -quality 50 "$file" "$CURRENTLOCATION/resized/$filename" done fi if [ "${ACTION}" == "Rename pictures" ]; then for file in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do strippedfilename=$(basename "$file" .jpg) convert -resize "${SIZE}" -quality 50 "$file" "$CURRENTLOCATION/$strippedfilename $SIZE.jpg" done fi zenity --info --text="All finished"
Bookmarks