MeioUpload icon indicating copy to clipboard operation
MeioUpload copied to clipboard

Option to resize original file

Open CauanCabral opened this issue 13 years ago • 4 comments

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)

CauanCabral avatar Jun 23 '11 20:06 CauanCabral

What is the use-case and how do I use this? Documentation would be wonderful, as so many features of MeioUpload remain undocumented.

josegonzalez avatar Jul 22 '11 14:07 josegonzalez

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?

CauanCabral avatar Jul 22 '11 18:07 CauanCabral

Sorry to close pull

CauanCabral avatar Jul 22 '11 18:07 CauanCabral

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

josegonzalez avatar Jul 23 '11 18:07 josegonzalez