Hi there, I finally managed to crop resize and compress an image file the user is submitting through a form client side with Javascript. In my controller I am using Image Intervention to get the file and store it in the image folder. The question is, since I am sending the image ready to be stored how can I have interventions just save it without compressing it again? I am sending a jpg created with canvas in quality 0.6. I tried to put 100 quality in intervention thinking that it would not make the image bigger but I was wrong. It bacame 300k out of an original file size of 56k.
edit: maybe I should leave intervention alone and just store the file as it is in public / image folder? Does this pose any security issue?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community