Automating image conversion
Posted: Fri Mar 19, 2004 11:56 pm
Hi,
I am working on a little project to allow our users to drop files into directories that are then processed via a cron job to various maximum resolutions and written to corresponding output directories. I would like to be able to keep the file type the same as what they drop off for processing, but there does not seem to be a way to do this, at least not within nconvert itself. Anyone have a nifty bash or perl script that might handle this?
My current command line is as follows:
nconvert -v -resize 150 150 -ratio -o ../imageconverted/150x150/%.* *.*
All my output filnames have ".*" as their extension. Weird.
Also, more detailed docs would be helpful if anyone knows where to find them...
Thanks
I am working on a little project to allow our users to drop files into directories that are then processed via a cron job to various maximum resolutions and written to corresponding output directories. I would like to be able to keep the file type the same as what they drop off for processing, but there does not seem to be a way to do this, at least not within nconvert itself. Anyone have a nifty bash or perl script that might handle this?
My current command line is as follows:
nconvert -v -resize 150 150 -ratio -o ../imageconverted/150x150/%.* *.*
All my output filnames have ".*" as their extension. Weird.
Also, more detailed docs would be helpful if anyone knows where to find them...
Thanks