Support the ongoing development of Laravel.io →
Input Forms Installation

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?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

chriz74x chriz74x Joined 8 Apr 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.