maskbg Mask Background Color



  • Default: Transparent (PNG output only) or white.
  • Range: Any 3- (RGB), 4- (ARGB) 6- (RRGGBB) or 8-digit (AARRGGBB) hexadecimal value. The “A” in a 4- or 8-digit hex value represents the color’s alpha transparency.

When mask is set, maskbg specifies the background color that will appear in the masked areas. maskbg works with all values of mask.

maskbg can be used to create multi-layer effects along with bg, which sets the background color for a transparent image like this Illustrator file: