FileUpload - Manipulate image before saving.

I am using Intervention library to mainuplate images like resizing, encoding to png, how can I use this with FileUpload?
Image::make($img)->encode('png')->resize(16, 16)->save($path);
Image::make($img)->encode('png')->resize(16, 16)->save($path);
FileUpload::make('img')
FileUpload::make('img')
1 Reply
Dan Harrin
Dan Harrin2y ago
do it in an observer when the model is saved?
Want results from more Discord servers?
Add your server