Click to See Complete Forum and Search --> : Image batch converting, how?
hottdogg
09-26-2005, 08:09 AM
People, I need immediate help and advice regarding multiple image converting.
I'll be given a task to convert 800 (that's right, 800) jpeg images to tiff format or vice versa, haven't got the detail yet. And must be finished within 48 hrs or less after the task is given. I think this should be done wih "batch converting". I know there's Imagemagick. But will it do the job done?
O yeah... B'cause the linux workstation I'm using isn't specifically for large image processing like this, I may do the task "batch converting" for every 10 images (80 times) so that my linux won't hang or do something stupid. I hope the required paramater for every image is the same (plz God let them be...). So, can you give me advice using ImageMagick (hint: what sould I type) or maybe refer to other tool? or anything?! or use windows-based tool? I don't mind as long as it's free to downlad. Please, Please, Please help.
THanks a lot.
Now, I want google "batch image convering" or someting like that.
This is a _free_ help forum. People on here _donate_ their time to help people. Your question is no more or less "urgent" than anyone else's.
If you really have a deadline, then I suggest you start by reading the manpage for imagemagick as well as any docs included in /usr/share/doc/imagemagick* -- or be honest, and admit to whomever gave you the task that you don't know how to do it.
<removed URGENT from subj.>
mrBen
09-26-2005, 10:12 AM
AFAIK ImageMagick should do the job, although I've never done it with that many pictures.
Under Windows, irfanview has a batch processing option, but again, I've never tested it on that amount of pictures.
Headfuzz
09-26-2005, 11:51 AM
http://linux.softpedia.com/get/Multimedia/Graphics/XnView-4612.shtml
First hit when entering Batch conversion GIMP jpeg tiff into G4L (http://www.google.com/linux)... :rolleyes:
Dunno how good it is but it's freeware and claims to do everything you want :)
banzaikai
09-27-2005, 10:30 AM
Haven't done any of this in Linux, but I have used IrfanView extensively in Windows. In fact, it's one of my must-have apps for any Win installs I do.
IrfanView, download available from here (http://www.download.com/IrfanView/3000-2192_4-10387524.html?tag=lst-0-1), does batch processing like a screaming banshee.
The only problem is that you're going from jpeg to tiff, which means you'll need some room for the much bigger tiffs once the jpegs are expanded. If you have little drive space left, better do it fifty at a time (or use the "Delete original after convert" option). Otherwise, select the whole directory, tell it to convert what-to-what, and let 'er rip. Yes, it's that easy. I desperately want to see Irfan do some coding for us Linux folks!
Update: Just tried XnView, and it's a bit kludgy, but it did just convert a whole jpeg/gif directory to tiff with no problems. Looks like it'll do the job, you just have to select "Browser" mode to get it to do anything. Not too bad, though.
banzai ".IFF" kai
cybertron
09-27-2005, 02:02 PM
Looks like something along these lines should work:
#!/bin/bash
for i in *.jpg
do
convert $i `basename $i .jpg`.tiff
done
From what I'm reading convert is the ImageMagick command-line tool to convert between formats and that should pretty much do it. You might have to play around with things a bit to make them work right since I wrote that off the top of my head and don't have ImageMagick available to test with.
Oh yeah, drop the stuff above into a script and run it in the directory with the files you need to convert. It should take every .jpg file in there and convert it to a .tiff with the same base name. Not sure .tiff is even the right extension for the format, but you get the idea.
And see the notes here (http://www.imagemagick.org/script/formats.php) about the tiff format and Image Magick. Not sure whether that will make a difference to you or not.
je_fro
09-27-2005, 11:40 PM
Yeah...I'd write a script to utilize ImageMagic's convert utility.