Results 1 to 6 of 6

Thread: How can I batch edit images?

  1. #1
    Join Date
    Apr 2006
    Location
    Ireland
    Beans
    213

    How can I batch edit images?

    I have Ubuntu Studio installed with various graphoc packages that come as standard.

    My question is about batch editing. Which program do I use to do the following?

    I have a large number of photographs which I would like to resize. Most of the images are the same size/ratio and its a matter of say, reduce by 50%.
    For the images of different sizes can I tell it to make, say, the horizontal axis 200 pixels long and then resizes but maintaining the vertical ratio to preven t the image from getting squashed.
    Clarkconnect Server (Red Hat)
    Dell Latitude D610 (Windows XP/Ubuntu 8.10)
    Gaming PC (Windows XP)

  2. #2
    Join Date
    Oct 2006
    Location
    Philippines
    Beans
    262
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How can I batch edit images?

    Try Phatch. It should be adequate for your needs. See the repos.
    Hannibal: Centrino Duo Notebook, 1.5GB RAM; Ubuntu 9.04 (Jaunty Jackalope)
    Caliban: PIII Desktop, 256Mb RAM; Slax

  3. #3
    Join Date
    Apr 2007
    Beans
    2,660
    Distro
    Ubuntu

    Re: How can I batch edit images?

    The swiss army knife: imagemagick's convert: probably already installed by default. "man convert" shows a small help page that links to extensive documentation on the web.

  4. #4

    Re: How can I batch edit images?

    I have just been looking into convert/mogrify for my own use and it will work very well for re-sizing images. While I was looking for a solution I found out that image magick has a limit of 768 files for a run so
    Code:
    convert 50% *.jpg
    would only work if you had less than that number in the directory to convert. The way around it is to wrap a script around the convert command something like this
    Code:
    for f in *.jpg
    do
        convert 50% $f
    done
    now I am not totally up on bash scripting and trying to remember the loop construct and not sure the above is correct. If you are familiar with any other language you could probably wrap using that instead if you want.

    Places I found useful:
    GimpTalk forums very useful place for image related stuff and very helpful.
    ImageMagick forums
    Noli illegitimi carborundum

  5. #5
    Join Date
    Aug 2007
    Beans
    148

    Re: How can I batch edit images?

    Phatch has a really intuitive GUI, so it gets my vote.

  6. #6
    Join Date
    Apr 2006
    Location
    Ireland
    Beans
    213

    Re: How can I batch edit images?

    Thanks, I'll have a look at those.
    Clarkconnect Server (Red Hat)
    Dell Latitude D610 (Windows XP/Ubuntu 8.10)
    Gaming PC (Windows XP)

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
  •