Batch image processing [Was: Cropping Photos]

P

Phred

G'day JD. I don't know anything about Dell Image Expert, or why you
Seconded for Irfanview :)

If you also want to do batch resizing, check out Mihov Image Resizer
(free) from www.mihov.com/eng/ (it also has its own site now at
www.imageresizer.com)

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.
 
T

Toke Eskildsen

Crossposted to alt.sys.pc-clone.dell, alt.comp.freeware and aus.photo,
follow-up to alt.comp.freeware
[...] 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).

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
http://sylvana.net/jpegcrop/jpegtran/
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.
 
C

CoMa

Newsreader: News Xpress 2.01
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?


Maybe this program

JPGCrops - Cropping of JPEG images without loss of quality
http://ekot.dk/programmer/JPEGCrops/

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.


/CoMa


--
Conny (CoMa) Magnusson
(e-mail address removed)
http://www.algonet.se/~hubbabub/
ICQ : 1351964
=============================
It's natural to expect there might be
people doing stupid things with computers.
 
T

Toke Eskildsen

Crossposted to alt.sys.pc-clone.dell, alt.comp.freeware and aus.photo,
follow-up to alt.comp.freeware
[...] and crop them to the same set of specified coordinates [...]
Maybe this program

JPGCrops - Cropping of JPEG images without loss of quality
http://ekot.dk/programmer/JPEGCrops/

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:
http://ekot.dk/JPEGCrops/alpha/JPEGCrops0.6.14alpha.zip

The function is called "synchronize crops" and can be found in the Edit
menu.
 
O

Ogden Johnson III

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.

You missed, as suggested in that earlier "Cropping Photos"
thread, including rec.photo.digital in your crossposts; since
that group
Perhaps impossible (I know naught of graphics formats) but maybe it
can be done, at least in theory if not yet (ever?) in practice.

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.
 
L

Lawrence Glasser

CoMa said:
Maybe this program

JPGCrops - Cropping of JPEG images without loss of quality
http://ekot.dk/programmer/JPEGCrops/

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.

Wow! VERY cool, little program. (And, without making use of the registry.)

Thanks!

Larry
(No affiliation, just an impressed user.)
 
P

Phred

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
aus.photo 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!

You missed, as suggested in that earlier "Cropping Photos"
thread, including rec.photo.digital 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.

Cheers, Phred.
 
P

Patrick

??? IrfanView can do that ???

Patrick.

Phred said:
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.
 
E

epcsoft

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:
http://www.epcsoft.net
 
M

M i c C u l l e n

(e-mail address removed) (epcsoft), far, far away from here, appears to have
written:
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:
http://www.epcsoft.net

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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top