Fit image in the new size and fill the blanks with colour (with transform)

Let's say I have an image that is 400 w and 800 h. I want the image to be square (600 x 600) but don't want to change the aspect ratio and don't want to crop. I want it centered in 600 x 600 square. So something like this:

<img src="{{ transform src="{{ photo }}" width="600" height="600" action="fit" color="#ffcc00" }}" />

would result in a yellow 600x600 square image with a 600x300 image in the center of it.

>>>>>>> Unanswered <<<<<<<
4 Replies