Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to resize original file #85

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

CauanCabral
Copy link
Contributor

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)

@josegonzalez
Copy link
Contributor

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

@CauanCabral
Copy link
Contributor Author

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 CauanCabral reopened this Jul 22, 2011
@CauanCabral
Copy link
Contributor Author

Sorry to close pull

@josegonzalez
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants