aivus / sonata-media-fixed-dimensions-resizer
Sonata Media Bundle Resizer with fixed aspect ratio
Fund package maintenance!
aivus
Patreon
www.paypal.me/iantypenko
Installs: 14 664
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
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