Icon-Compositor 0.0
Scale

scale(image, amount)

The scale function is used to change the size of an image by multiplying the X and Y axies by the given amount.

If you have an application icon to go over the top of a document icon, but the application icon is too big, it is possible to scale it down.

icomp 'scale( dragon.png , 0.6) over center document.png ' -o scale-dragon-document.png
     
The single quotes are to insulate the parentheses from the shell, they aren't necessary if you use a script instead.

scale_to

scale_to(image, size [ , size ] )

The scale_to function may be used to scale an image (preserving aspect ratio) to fit in the given square (if one size given) or rectangle (if two sizes given).

icomp 'scale_to( dragon.png , 64)' -o icomp-64.png
   

scale_within

scale_within(image, other- image)

The scale_within function may be used to scale an image it fit within the bounding box of a second image.