aivus/sonata-media-fixed-dimensions-resizer

This package is abandoned and no longer maintained. No replacement package was suggested.

Sonata Media Bundle Resizer with fixed aspect ratio

v1.0.1 2018-05-31 12:59 UTC

This package is auto-updated.

Last update: 2023-12-28 12:41:07 UTC


README

Sonata Media Bundle resizer with fixed aspect ratio

Usage

You can use two type of resizers:

  • aivus.sonata.media.resizer.fixedDimensions.inset
  • aivus.sonata.media.resizer.fixedDimensions.outbound

Example

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)

Other

Based on http://www.nrsoft.co.uk/blog/sonata-media-fixed-dimensions-resizer