MeioUpload
MeioUpload copied to clipboard
Option to resize original file
Added an option to allow resize of original file.
Options are:
- resizeOriginal: boolean, true if you want resize. Default is false.
- resize: array, parameters to resize
- * maxWidth : int, in pixels
- * maxHeight: int, in pixels
- * quality: int, percent (0-100)
What is the use-case and how do I use this? Documentation would be wonderful, as so many features of MeioUpload remain undocumented.
I've an aplication where photos are submited by non-technical users. I don't want store 2 files (original and thumb), but some times user will submit very large images and we do not need this. So I'll resize the original file to optimal size.
I think this is a common scenario.
About docs... the current version of MeioUpload don't have about parameters info, where I put that?
Sorry to close pull
Create a new section about parameters and add it in. For reference, here is how I do it in my upload project: https://github.com/josegonzalez/upload