Results 1 to 5 of 5

Thread: batch resolution change of jpegs

  1. #1
    Join Date
    Apr 2007
    Beans
    84
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    batch resolution change of jpegs

    I have a few directories each with several thousand jpegs (at 3264 x 2448 pixels) that I would like to reduce to maybe half resolution. Is there a command line program that could do this for all pictures in the directory in one go? If so, how?

  2. #2
    Join Date
    Nov 2006
    Location
    Jo'burg, South Africa
    Beans
    434
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: batch resolution change of jpegs

    Hi Jessika

    It is possible, in fact one of the members of this forum designed a GUI application called "Phatch". Search for it on these forums and there'll be a link to the download.

    Regards
    Rax

  3. #3
    Join Date
    Apr 2007
    Beans
    84
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: batch resolution change of jpegs

    Cool, thanks!

  4. #4
    Join Date
    Sep 2005
    Location
    UK.
    Beans
    86
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: batch resolution change of jpegs

    Google for nautilus scripts - one of them does re-sizing of multiple images. Then you just right-click, scripts, re-size images, bang in the size you want and you're all done!

  5. #5
    Join Date
    Oct 2005
    Beans
    14

    Re: batch resolution change of jpegs

    Just use Imagemagick, it is perfect for tasks like this:


    Code:
    sudo apt-get install imagemagick
    cd image_folder
    mkdir resized
    for f in *jpg
    do
    convert -resize 50% $f resized/$f
    done
    or you can make it a bit more fancy, with a script:

    Code:
    #!/bin/bash
    
    types="*jpg *png"
    
    mkdir resized
    
    files=`ls $types 2> /dev/null`
    n=`echo $files |wc -w`
    i=0
    
    for f in $files
    do
        i=$[i+1]
        printf "[$i/$n] $f"
        convert -resize 50% $f resized/$f
        printf "\r"
    done
    echo
    Last edited by lessthanjake; May 17th, 2008 at 01:18 PM.

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
  •