DasGenie: !Scrap
« KPE - Monitor | Main | T-Hack ... reminds me of "trusted e-shop" pixelnet »

Sonntag, 25. Juli 2004

sips - nice thumbnail icons and more

Did you ever want your image files to show up in the finder with a nice thumbnail, without having to turn on "Show icon preview" in the finder?
Or do some thumbnails without having to install the ridicolous imagemagick?
Just have a look at your harddisk, theres a tool called sips that can be used for that.
Add icon:
sips -i myPicture.jpg
Create thumbnail no bigger than 100x100:
sips -Z 100 myPicture.jpg --out myPictureThumbnail.jpg

Quick, easy and free. Works with almost any bitmap file format and is very potent. Just have a look at its help output:
dwagner@dom:~$ sips --help
sips 1.0 - scriptable image processing system.
This tool is used to query or modify raster image files and ColorSync ICC profiles.
Its functionality can also be used through the "Image Events" AppleScript suite.

  Usages:
    sips [-h, --help] 
    sips [-H, --helpProperties] 

    sips [image query functions] imagefile(s) 

    sips [profile query functions] profile(s) 

    sips [image modification functions] imagefile(s) 
         [--out outimage | --out outdir] 

    sips [profile modification functions] profile(s) 
         [--out outprofile | --out outdir] 


  Profile query functions: 
    -g, --getProperty key 
    -X, --extractTag tag tagFile 
    -v, --verify 

  Image query functions: 
    -g, --getProperty key 
    -x, --extractProfile profile 

  Profile modification functions: 
    -s, --setProperty key value 
    -d, --deleteProperty key 
        --deleteTag tag 
        --copyTag srcTag dstTag 
        --loadTag tag tagFile 
        --repair 

  Image modification functions: 
    -s, --setProperty key value 
    -d, --deleteProperty key 
    -e, --embedProfile profile 
    -E, --embedProfileIfNone profile 
    -m, --matchTo profile 
    -M, --matchToWithIntent profile intent 
    -r, --rotate degreesCW 
    -f, --flip horizontal|vertical 
    -c, --cropToHeightWidth pixelsH pixelsW 
    -p, --padToHeightWidth pixelsH pixelsW 
    -z, --resampleHeightWidth pixelsH pixelsW 
        --resampleWidth pixelsW 
        --resampleHeight pixelsH 
    -Z, --resampleHeightWidthMax pixelsWH 
    -i, --addIcon 
23:15 - Sonntag, 25. Juli 2004
Comments

Good to know about that--maybe I'll try to add it as an option for my Pixom Blosxom plugin. To bad it's not available on other UNIX-like platforms...

Posted by: Buzz Andersen at 26.07.04 01:13