Fill Parameters¶
fill¶
The fill parameter determines the method used to fill any empty areas in an image. It is used when the fit parameter is set to fill or fillmax.
fill_color¶
fill_color specifies the colour to be used for filling empty areas in the image.
Type: string (color value)
Default: white
Usage¶
Basic Fill¶
Fill empty areas with blue color.Hex Color Fill¶
Fill with light gray background.Transparent Fill¶
Leave empty areas transparent (PNG output recommended).Fill Without Upscaling¶
Downscales where necessary, then pads with black without enlarging the source image.Use Cases¶
- Social Media: Create consistent aspect ratios for posts
- Product Images: Uniform backgrounds for e-commerce
- Thumbnails: Consistent sizing without distortion
- Print Layout: Fill to exact dimensions for design layouts