spatie / laravel-medialibrary

Associate files with Eloquent models
https://spatie.be/docs/laravel-medialibrary
MIT License
5.78k stars 1.08k forks source link

Ability to use different width calculator per conversion using Responsive Images #3520

Closed jhorie closed 9 months ago

jhorie commented 9 months ago

If you would like to use different width calculators for different conversions for responsive images. You use the method withWidthCalculator(WidthCalculator $widthCalculator) to provide a width calculator for this specific conversion. If none is given, the default width calculator from the config file is used.

freekmurze commented 9 months ago

Thanks!