Results 1 to 4 of 4

Thread: Xubuntu-resize-images

  1. #1
    Join Date
    May 2006
    Location
    Lake Placid, Florida, USA
    Beans
    2,019
    Distro
    Xubuntu 14.04 Trusty Tahr

    Xubuntu-resize-images

    If you want to be able to resize images to an email size (640) in Thunar ,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............

  2. #2
    Join Date
    Mar 2012
    Beans
    2

    Re: Xubuntu-resize-images

    The script generates the 2 directories, but doesn't provide a resized image for me. The directory is empty. I am on Xubuntu 12.04.

  3. #3
    Join Date
    May 2006
    Location
    Lake Placid, Florida, USA
    Beans
    2,019
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Xubuntu-resize-images

    make sure you have "imagemagick" installed, sorry I forgot to say that before.

  4. #4
    Join Date
    Mar 2012
    Beans
    2

    Re: Xubuntu-resize-images

    That did it. Thanks for the quick response.
    Nautilus-image-converter works but it has way too many dependencies.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •