sizimg - 1.30resize images via the command line |
|
||||||||||||||||
|
|||||||||||||||||
Feedback Summary:
| This Version: | |||||
| Overall Rating: | Not rated (0.0) | Features: | Not rated (0.0) | Support: | Not rated (0.0) |
| Ease of Use: | Not rated (0.0) | Quality / Stability: | Not rated (0.0) | Price: | Not rated (0.0) |
Key to Types of Feedback:
Reviews
Troubleshooting
Usage Tips
Developer Notes
Commentary
Featured Reviews
All Feedback: 1 - 2 of 2
Use it with Lasso Professional for automatically resizing uploaded images 



- Version: 1.19, 1/17/2005 04:07AM PST
akonijnenbelt_dotmac
Great for batch processing - Version: 1.19, 1/4/2005 10:11AM PST
Ken_Turkowski_984
I like to use sizimg in shell scripts to do batch processing. Here's one that I use to convert a series of images to another:
#!/bin/sh
if [ $# -lt 2 ]
then
echo Usage: $0 '<source family root> <destination family root> [options]'
exit
fi
srcRoot="$1"
dstRoot="$2"
shift 2
for file in ${srcRoot}*
do
suffix=`expr "${file}" : "${srcRoot}\(.*\)"`
echo sizimg "${file}" -o "${dstRoot}${suffix}" "$@"
sizimg "${file}" -o "${dstRoot}${suffix}" "$@"
done
exit 0
#!/bin/sh
if [ $# -lt 2 ]
then
echo Usage: $0 '<source family root> <destination family root> [options]'
exit
fi
srcRoot="$1"
dstRoot="$2"
shift 2
for file in ${srcRoot}*
do
suffix=`expr "${file}" : "${srcRoot}\(.*\)"`
echo sizimg "${file}" -o "${dstRoot}${suffix}" "$@"
sizimg "${file}" -o "${dstRoot}${suffix}" "$@"
done
exit 0
If you're not scared of the command line, this thing does it's job really well -- and is fast too!
I use sizeimg together with Lasso Professional (middleware sitting between your web server and databases) on my webservers to be able to automatically process images that people upload. There's a Lasso module called PassThru that allows to use shell scripts within Lasso tags, and this works great with sizimg. Uploaded images that are larger than, let's say, 250 pixels width are resized automatically. This takes usually less than a second (depending on the size of the picture, of course) and the image quality is great!
I would like to see a few extra options, like the possibility to crop images and to run filters like unsharp mask. (Just image what you can do with this once Tiger comes out with Core Image support!)
Although the documentation does not tell you in detail, sizimg processes just about everything that QuickTime likes to eat. In addition to the officially supported image formats, I managed to process GIF, PDF and even AI (Illustrator) files, too! -- Alfred