Sonata Media Bundle resizer with fixed aspect ratio
You can use two type of resizers:
aivus.sonata.media.resizer.fixedDimensions.inset
aivus.sonata.media.resizer.fixedDimensions.outbound
For example we have format 120x120.
Then image 726x380 will be resized to 120x63 (with aivus.sonata.media.resizer.fixedDimensions.inset
)
and 229x120 (with aivus.sonata.media.resizer.fixedDimensions.outbound
)
Based on http://www.nrsoft.co.uk/blog/sonata-media-fixed-dimensions-resizer