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.
The single quotes are to insulate the parentheses from the shell, they aren't necessary if you use a script instead.
icomp 'scale( dragon.png , 0.6) over center document.png ' -o scale-dragon-document.png ![]()
![]()
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 ![]()
The scale_within function may be used to scale an image it fit within the bounding box of a second image.