lunarphp / livewire-starter-kit

Demonstration store for Lunar
https://docs.lunarphp.io/core/starter-kits.html
149 stars 50 forks source link

MediaLibrary adding white paddings #83

Closed kylym1631 closed 1 week ago

kylym1631 commented 5 months ago

When adding images to products, if it is not square, white paddings are being added automatically. I don't know if it is a starter kit configuration or media-library. Where exactly can I configure this. I want it to be sth like "object-fit:cover" Screenshot 2024-01-21 at 17 15 26

alecritson commented 4 months ago

This will be from the Media library package, you should be able to define your own conversions in the config https://docs.lunarphp.io/core/reference/images.html#conversions