Resize and create thumbnails for an uploaded image.
Hi. I need to register new products in the database and I can correctly do everything except the file part.
A product has a single photo but I'd like to generate a thumbnail (50x50 or 60x60) of said photo, as well resizing the uploaded file to match our products grid. So we generate two different files since I don't want to load the full file just for displaying a small thumbnail.
Is there any method to do this? Also how do I validate that the photo can only be JPG/PNG and must be required?
If Laravel natively does not support this, is there any package out there that will help me out? Thanks a lot !