Optional
backgroundOptional
fitResizing mode as a string. It affects interpretation of width and height options:
Optional
gravityWhen cropping with fit: "cover", this defines the side or point that should be left uncropped. The value is either a string "left", "right", "top", "bottom", "auto", or "center" (the default), or an object {x, y} containing focal point coordinates in the original image expressed as fractions ranging from 0.0 (top or left) to 1.0 (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will crop bottom or left and right sides as necessary, but won’t crop anything from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to preserve as much as possible around a point at 20% of the height of the source image.
Optional
heightMaximum height in image pixels. The value must be an integer.
Optional
rotateNumber of degrees (90, 180, 270) to rotate the image by. width and height options refer to axes after rotation.
Optional
widthMaximum width in image pixels. The value must be an integer.
Background color to add underneath the image. Applies only to images with transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…), hsl(…), etc.)