Photos resolution

Hi, guys. I am using FileUpload for photos uploading and S3 disk. I need to implement a feature like: I need to upload a photo with high resolution and from this photo I need another two photos to be generated, one with low resolution and one with mid resolution. Is this possible within filament?
8 Replies
Patrick Boivin
Hi @dianamujoiu, I'm using SpatieMediaLibraryFileUpload with media conversions for this: https://filamentphp.com/docs/2.x/spatie-laravel-media-library-plugin/form-components#using-conversions
Kenneth Sese
Kenneth Sese2y ago
Another option would be #curator It uses Glider which basically allows you to serve any size picture based on your original image. No need to generate conversions (even though you can). It generates all of this and caches it on the fly. If you've ever used Cloudinary before, it's like that. It's super cool and useful.
Patrick Boivin
Great option! I need to explore Curator 😄
Kenneth Sese
Kenneth Sese2y ago
Curator is fantastic. I was a big cloudinary user and when I found out that curator uses glider I was sold.
DianaMujoiu
DianaMujoiuOP2y ago
Thank you guys. I'll try your suggestions 🙏🏻. Guys, I have another question. I didn't use Curator until now and I'm not sure how Curator can give me a photos with 3 different resolution. Can you explain me or give an example, please?
Dan Harrin
Dan Harrin2y ago
#curator
awcodes
awcodes2y ago
You don’t save the resolutions. You don’t need them. You generate them on output in your blade view with the glider component.
Want results from more Discord servers?
Add your server