Answer the question
In order to leave comments, you need to log in
Feedback Form: Can I compress an attached file when sending it?
There is a quite standard feedback form with a handler in php, with the ability to attach up to ten files (photos). Everything works, the question is: is it possible to compress files (reduce the size of the resulting file) attached by the user at the handler stage? It is clear that you can specify the maximum file size, but this is a bit not what you need.
Answer the question
In order to leave comments, you need to log in
If you are interested in choosing the optimal method - decide on the minimum allowable sizes for normal image recognition and cut to them, play around with the compression quality parameter.
If you are more interested in the resizing algorithm itself - Google to the rescue, choose the library you like the most - and go ahead.
A fileinput plugin that can reduce photo size should work.
here is an example:
https://plugins.krajee.com/file-image-management-d...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question