Background Color

Usage: background_color(color)


The background_color filter sets the background layer to the specified color. This is specifically useful when converting transparent images (PNG) to JPEG


  • color - the color name (like in HTML) or hexadecimal rgb expression without the “#” character (see for example). If color is “auto”, a color will be smartly chosen (based on the image pixels) to be the filling color.