Supported commands and attributes

Effect layers accept the following commands and attributes:

  • blendMode=
  • effect=
  • color=
  • maskUse=
  • opac=
  • op_grow=
  • op_blur=
  • op_noise=
  • pos=

All other image and layer commands contained in effect layers are ignored.

Default effect macros

To facilitate layer effects use, IS provides two macros with the default image catalog, $shadow$ and $glow$, which provide default values for effect layer attributes which are similar to Photoshop layer effects. The following table lists which effect command and macro should be used to implement the default layer effects. Naturally, any of the attributes specified in the macros can be modified in the URL, or alternative macros can be created to implement custom layer effects.

Desired effectCommand
Drop Shadoweffect=-1&$shadow$
Inner Shadoweffect=1&$shadow$
Outer Gloweffect=-1&$glow$
Inner Gloweffect=1&$glow$

Examples

Add a three pixel wide, red border with 50% opacity to a layer:

…&effect=-1&op_grow=3&color=255,0,0,128&…

The border follows the contours of the image’s alpha channel or mask. Setting effect=1 would place the border on the inside edge instead.

Add a bluish drop shadow to an image, using the default effect settings (except for the color):

http://server/is/image/myCat/myImage?size=200,200&extend=0,0,10,10&effect=-1&$shadow$&color=50,143,254

extend= adds a little margin to the bottom right edges of the image, which prevents the drop shadow from being clipped to the image bounds.

Experience Manager