This filter returns an image sized exactly as requested independently of its ratio. It will fill the missing area with the specified color. It is usually combined with the “fit-in” or “adaptive-fit-in” options.

Normal Image:

https://push-3272.5centscdn.com/KB_IMG/Ballon_5centsCDN.jpg

Transformed Image:

https://push-3272.5centscdn.com/KB_IMG/Ballon_5centsCDN.jpg?im=fit-in/500×700/filters:fill(blue)

https://push-3272.5centscdn.com/KB_IMG/Ballon_5centsCDN.jpg?im=fit-in/500×700/filters:fill(red)