[X-Unix] sips

Stroller MacMonster at myrealbox.com
Thu Apr 8 02:24:11 PDT 2004


On Apr 8, 2004, at 10:05 am, Lewis, Benjamin (Ben) wrote:
>
> I discovered sips last night whilst browsing through macosxhints.com. 
> It has some great potential and I'm sure I can prove the usefulness of 
> the command line and build something he can use. He relies on Graphic 
> Converter for batch image file conversions and is looking for 
> something simpler and with no registration fee. I'm planning to wrap 
> some Perl around sips and try to make him a simple batch conversion 
> app.
>
> My first attempt was the following test, I ran this on a set of around 
> 50 images from a digital camera in separate sub directories :-
>
> find . -name '*.jpg' |xargs -j % sips -s format bmp %
>
> This works fine, the files are updated in place but the .jpg filename 
> extension is not changed from jpg to bmp.

Hmmmn... no manpage. Thanks, Apple.

You might also want to check out ImageMagick 
<http://www.imagemagick.org/> - as well as file-format conversions it 
allows resizing of images, and it's "mogrify" function includes "image 
scaling, image rotation, color reduction, and others". "Composite 
composites images to create new images." It also has it's own scripting 
language, apparently, and some Perl modules.

You can install ImageMagick by going to 
<ftp://ftp.imagemagick.org/pub/ImageMagick/binaries> and downloading 
ImageMagick-powerpc-apple-darwin7.2.0.tar.gz. Once you've unzipped it 
you seem to need to move or copy the resulting folder to 
/ImageMagick-5.5.7/, as the executables seem to have their full path 
hardcoded in. It seems to work on Panther.

HTH,

Stroller.



More information about the X-Unix mailing list