Batch image processing [Was: Cropping Photos]

Discussion in 'Australia Photography' started by Phred, Apr 12, 2004.

  1. Phred

    Phred Guest

    G'day JD. I don't know anything about Dell Image Expert, or why you
    G'day Colin (and the rest of the world :)

    Your comment about batch resizing reminded me that I would *really*
    like a batch cropping tool.

    Perhaps impossible (I know naught of graphics formats) but maybe it
    can be done, at least in theory if not yet (ever?) in practice.

    Given a large set of "identical" images (that is, they all have the
    same general format but differ in contained detail -- imagine a camera
    on a fixed stand taking photos of a street scene every so often and
    you'll get the "picture") I would like to be able to set up a batch
    job to edit the files (JPEGs probably, perhaps GIFs too) and crop them
    to the same set of specified coordinates within the image (say the
    rectangle contained within 45,25/650,410 pixels or whatever from the
    bottom left corner for example).

    Anyone know if such exists, or is ever likely to?

    Cheers, Phred.
    Phred, Apr 12, 2004
    1. Advertisements

  2. Crossposted to, alt.comp.freeware and,
    follow-up to alt.comp.freeware
    There's two obvious choices from my point of view: Use IrfanView or do
    it losslessly using JPEGTran.

    IrfanView provides the functionality under Batch Conversion | Use
    advanced options.

    The lossless way: If you download jpegtran from
    and create the following batch file (open notepad, paste the code below
    and save as "crop.bat" (do write the quotes to get notepad to
    understand that you really mean to save the file with an extension that
    isn't .txt)), running the batch file will crop all the JPEG images in
    the current dir and put them in the subdir "cropped":

    **** crop.bat ****
    mkdir cropped
    FOR %%A IN (*.jpg) DO jpegtran -crop 320x200+16+48 %%A cropped\%%A

    The position of the crop area has to be a multiple of the iMCU size,
    which is practically always 8 or 16, depending on the image.
    Toke Eskildsen, Apr 12, 2004
    1. Advertisements

  3. Phred

    CoMa Guest

    Newsreader: News Xpress 2.01

    Maybe this program

    JPGCrops - Cropping of JPEG images without loss of quality

    What is this?
    JPEGCrops is a Windows program, created for preparation of a batch of
    images for printing. It provides lossless cropping with fixed aspects
    using JPEGTran.

    Why use it?
    Most digital cameras produce JPEGs with the aspect 4:3. A very common
    papersize for photo albums is 4"x6" (10x15cm), which has the aspect
    3:2. If you want to print, you often need to crop.

    If you need to crop 50 images, it can be very time-consuming in
    dedicated image editors like PhotoShop or Paint Shop Pro. JPEGCrops
    isn't a real image editor: It just rotates and crops. But it's fast
    and it's free.


    Conny (CoMa) Magnusson
    ICQ : 1351964
    It's natural to expect there might be
    people doing stupid things with computers.
    CoMa, Apr 12, 2004
  4. Crossposted to, alt.comp.freeware and,
    follow-up to alt.comp.freeware
    Normally not, but since you show such faith, I made a quick
    implementation of the feature.

    Untested and all, a preliminary version can be downloaded from:

    The function is called "synchronize crops" and can be found in the Edit
    Toke Eskildsen, Apr 12, 2004
  5. You missed, as suggested in that earlier "Cropping Photos"
    thread, including in your crossposts; since
    that group
    can go a long way towards remedying your "I know naught of
    graphics formats" plaint. And can give you a better handle on
    what software tools, graphics-wise, are out there to help you
    play with your photos.
    Ogden Johnson III, Apr 12, 2004
  6. Wow! VERY cool, little program. (And, without making use of the registry.)


    (No affiliation, just an impressed user.)
    Lawrence Glasser, Apr 12, 2004
  7. Phred

    Phred Guest

    G'day OJ,

    Thanks for your pointer but, no, I didn't miss it. I try to be as
    selective as possible with my participation in newsgroups these days
    and tend to avoid "big 8" and alt.* if I can. Thus the local in lieu of r.p.d. I find that by sticking to local aus
    groups I can usually get solutions/advice/whatever without
    precipitating great dunghills of email offers for penis enlargement
    and sexy barely teens (or is that barely sexy teens?) etc.

    Obviously, Dell owners can hardly avoid a.s.p-c.d and the impecunious
    amongst us must also frequent a.c.f. :)

    I must say I was *very* impressed by the remarkably timely response
    from Toke of JPEGCrops fame to my plaintive cry. It restores my faith
    in the charitable nature of humanity!

    Cheers, Phred.
    Phred, Apr 13, 2004
  8. Phred

    Patrick Guest

    ??? IrfanView can do that ???


    Patrick, Apr 14, 2004
  9. Phred

    screwface Guest

    If you use adobe photoshop, you could record an action that crops the
    pix the way u like, then batch your new action.

    screwface, Apr 15, 2004
  10. Phred

    epcsoft Guest

    All you said are very good,but anther soft may do better,which is Advanced
    Batch Filter:Offers over 20 filters to batch convert/edit/enhance images.
    You can free download here:
    epcsoft, Apr 25, 2004
  11. (epcsoft), far, far away from here, appears to have
    Gee, free download!!

    You forgot to mention that it's $40 to buy. How about that.
    cheers, Mic (Reply address works...)

    When people are highly motivated, it's easy to accomplish the impossible. And when they're not, it's impossible to accomplish the easy. - Bob Collings
    M i c C u l l e n, Apr 29, 2004
  12. Phred

    Phred Guest

    G'day Patrick,

    Not sure what you're about here -- it looks like a question, but
    sounds like an assertion. :)

    Phred, Aug 24, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.