RE: Batch Image Processing
Dear Steve, I don't know about others but I for one would appreciate seeing your script. .^. Ryan Neily /V\ // \\ [EMAIL PROTECTED] LINUX /( )\ ^^-^^ http://cnet.windsor.ns.ca/Art/Neily POWERED On Thu, 6 Jul 2000, Steve Hitchner wrote: Just wanted to thank everyone for their responses to my batch processing question. I was able to write a very simple perl script using the tifftopnm/pnmscale/pnmtopng commands. Thanks again for all your help. cheers steve == Stephen Hitchner http://www.algae.dhs.org [EMAIL PROTECTED] coming soon http://www.greenalgae.net
Re: Batch Image Processing
On Wed, Jul 05, 2000 at 07:10:47PM -0600, Steve Hitchner [EMAIL PROTECTED] wrote: are in TIFF format, I want to open them, resize them, from 2048X2668 pixels to 115X150 and save (same filename different extension) them as a medium quality JPEG thumbnail. I would prefer to somehow create a script And here is the example using ImageMagick (untested): $ mogrify -format jpg -quality 70 -geometry "115x150" *.tif -- -==- | ==-- _ | ---==---(_)__ __ __ Marc Lehmann +-- --==---/ / _ \/ // /\ \/ / [EMAIL PROTECTED] |e| -=/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+ The choice of a GNU generation | |
Re: Batch Image Processing
man convert -- -Stephan / / http://linux.e.iha.dk/~stephan
RE: Batch Image Processing
Just wanted to thank everyone for their responses to my batch processing question. I was able to write a very simple perl script using the tifftopnm/pnmscale/pnmtopng commands. Thanks again for all your help. cheers steve == Stephen Hitchner http://www.algae.dhs.org [EMAIL PROTECTED] coming soon http://www.greenalgae.net
Re: Batch Image Processing
While this is possible with gimp (perl-fu would do), I'd strongly suggest you look at tools made for such tasks such as ImageMagick or pnmutils. These are commandline utils designed exactly for this task and more, while gimp is more a "let the user play" type program. If all you need is conversion and none of gimps special features, look into the above programs before gimp. Seth Burgess [EMAIL PROTECTED] * Steve Hitchner ([EMAIL PROTECTED]) [000705 20:50]: Hi, I have over 1800 images that need to be processed. In short, these images are in TIFF format, I want to open them, resize them, from 2048X2668 pixels to 115X150 and save (same filename different extension) them as a medium quality JPEG thumbnail. I would prefer to somehow create a script so I can let the computer process the images automatically. I have been playing around with the script-fu tool but can't seem to get a script to do what I want. I am completely new to gimp scripting and the whole "scheme of things" (any bowie fans out there =). Maybe the perl-fu is what I need? All the images are on CDs. thanks for any help you can offer, chao steve == Stephen Hitchner http://www.algae.dhs.org [EMAIL PROTECTED] coming soon http://www.greenalgae.net
Re: Batch Image Processing
Try tifftopnm - to convert your tiffs to .pnm files pnmscale - to resize as you like pnmtotiff - to convert back to .tif (better yet pnmtopng) :-) === Here are some examples, then I put it all into one step at the end. Be aware that I have not tested any of this - it may need some tweaking... CONVERT TIF to PNM for f in *.tif; do tifftopnm $f `ls $f | cut -f 1 -d "."`.pnm; done THUMBNAIL for f in *.tif; do tifftopnm $f `ls $f | cut -f 1 -d "."`.pnm; done CONVERT PNM to TIF for f in *.ppm; do pnmtotiff -none $f `ls $f | cut -f 1 -d "."`.tif; done CONVERT PNM to PNG (May I suggest the PNG file format) for f in *.ppm; do pnmtopng -none $f `ls $f | cut -f 1 -d "."`.png; done === DO EVERYTHING AT ONCE! for f in *.tif; do tifftopnm $f | pnmscale -width 115 -height 150 | pnmtopng `ls $f | cut -f 1 -d "."`.png; done You may have to consult the man pages and make some decisions about aspect ratio but this should point you in a useful direction. Also, check out the many pnm* and ppm* for lots of good stuff. Hope this helps, -- L. Jack Reese [EMAIL PROTECTED] __o ,---,___`. http://rivit.cs.byu.edu/reese _'\,_ `-(*)-(*)' My hardware runs better without Windows! ...(*)/ (*) ~~ Hi, I have over 1800 images that need to be processed. In short, these images are in TIFF format, I want to open them, resize them, from 2048X2668 pixels to 115X150 and save (same filename different extension) them as a medium quality JPEG thumbnail. I would prefer to somehow create a script so I can let the computer process the images automatically. I have been playing around with the script-fu tool but can't seem to get a script to do what I want. I am completely new to gimp scripting and the whole "scheme of things" (any bowie fans out there =). Maybe the perl-fu is what I need? All the images are on CDs. thanks for any help you can offer, chao steve == Stephen Hitchner http://www.algae.dhs.org [EMAIL PROTECTED] coming soon http://www.greenalgae.net -- L. Jack Reese [EMAIL PROTECTED] __o ,---,___`. http://rivit.cs.byu.edu/reese _'\,_ `-(*)-(*)' My hardware runs better without Windows! ...(*)/ (*) ~~
Re: Batch Image Processing
Try tifftopnm - to convert your tiffs to .pnm files pnmscale - to resize as you like pnmtotiff - to convert back to .tif (better yet pnmtopng) :-) === Here are some examples, then I put it all into one step at the end. Be aware that I have not tested any of this - it may need some tweaking... CONVERT TIF to PNM for f in *.tif; do tifftopnm $f `ls $f | cut -f 1 -d "."`.pnm; done THUMBNAIL for f in *.tif; do tifftopnm $f `ls $f | cut -f 1 -d "."`.pnm; done CONVERT PNM to TIF for f in *.ppm; do pnmtotiff -none $f `ls $f | cut -f 1 -d "."`.tif; done CONVERT PNM to PNG (May I suggest the PNG file format) for f in *.ppm; do pnmtopng -none $f `ls $f | cut -f 1 -d "."`.png; done === DO EVERYTHING AT ONCE! for f in *.tif; do tifftopnm $f | pnmscale -width 115 -height 150 | pnmtopng `ls $f | cut -f 1 -d "."`.png; done You may have to consult the man pages and make some decisions about aspect ratio but this should point you in a useful direction. Also, check out the many pnm* and ppm* for lots of good stuff. Hope this helps, -- L. Jack Reese [EMAIL PROTECTED] __o ,---,___`. http://rivit.cs.byu.edu/reese _'\,_ `-(*)-(*)' My hardware runs better without Windows! ...(*)/ (*) ~~ Hi, I have over 1800 images that need to be processed. In short, these images are in TIFF format, I want to open them, resize them, from 2048X2668 pixels to 115X150 and save (same filename different extension) them as a medium quality JPEG thumbnail. I would prefer to somehow create a script so I can let the computer process the images automatically. I have been playing around with the script-fu tool but can't seem to get a script to do what I want. I am completely new to gimp scripting and the whole "scheme of things" (any bowie fans out there =). Maybe the perl-fu is what I need? All the images are on CDs. thanks for any help you can offer, chao steve == Stephen Hitchner http://www.algae.dhs.org [EMAIL PROTECTED] coming soon http://www.greenalgae.net -- L. Jack Reese [EMAIL PROTECTED] __o ,---,___`. http://rivit.cs.byu.edu/reese _'\,_ `-(*)-(*)' My hardware runs better without Windows! ...(*)/ (*) ~~