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
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
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.
Great option! I need to explore Curator 😄
Curator is fantastic. I was a big cloudinary user and when I found out that curator uses glider I was sold.
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?
#curator
You don’t save the resolutions. You don’t need them. You generate them on output in your blade view with the glider component.