Marcus O. M. Grabe <firstname.lastname@example.org> wrote:
> Hi All,
> is it possible, to merge several JPG files into 1 big one?
> The graphic software I am currently using is InfranView.
Sure. A friend of mine working at University of California, Davis,
recently took a collection of 10,000 x 10,000 JPEG photos and
combined them together into one huge 30,000 x 30,000 image, and then
split it back up into a collection of 256 x 256 images, for use with the
Google Maps API.
He now has a (non-public, sadly) zoomable Google Map interface into a
large chunk of night sky. Quite awesome.
I believe he was simply using some shell-based tools on Linux
(like NetPBM-and-CJPEG/DJPEG tools and/or ImageMagick, to do all of this
cutting/pasting/cropping automatically in a large batch).
NetPBM's "pnmcat" seems like a sensible tool:
pnmcat - concatenate portable anymaps
Reads portable anymaps as input. Concatenates them either left to
right or top to bottom, and produces a portable anymap as output.
So, for example,
# Convert a pair of JPEGs into PPM bitmaps, for use by "ppmcat"
djpeg photo1.jpg > photo1.ppm
djpeg photo2.jpg > photo2.ppm
# Concatenate the photos together, into a new PPM bitmap
pnmcat -leftright photo1.ppm photo2.ppm > bigphoto.ppm
# Concvert the new PPM back into a JPEG
cjpeg bigphoto.ppm > bigphoto.jpg
# Clean up!
# Use "del" instead of "rm" if using MSDOS (aka MS Windows)
rm photo1.ppm photo2.ppm bigphoto.ppm
That could be done as a shell script under Unix-like systems
(Linux, BSD, Mac OS X, MS Windows with Cgywin) or as an MSDOS batch file
under systems using MSDOS (e.g., WindowsXP).
I'm almost positive NetPBM is available for Windows, and would be amazed
if it wasn't available for Mac OS X, at least as a Fink package.
-bill! Tux Paint 2006 wall calendar,
email@example.com CDROM, bumper sticker & apparel