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

possible to validate against transformed image size? #5

Open
ilovett opened this issue Mar 14, 2019 · 1 comment
Open

possible to validate against transformed image size? #5

ilovett opened this issue Mar 14, 2019 · 1 comment

Comments

@ilovett
Copy link

ilovett commented Mar 14, 2019

Hey! Great work on this project!

Is it possible to run the transform plugin first and show THAT filesize and validate against THAT?

Consider someone using an iPhone who takes a picture > 5MB (or > 7MB or 9MB in the future)

It would be great to have the picture already transformed when it gets validated for a max file size of say 3MB.

@rikschennink
Copy link
Collaborator

As transforming the files on the client gives you some control over the output size, I would simply not validate the size. Would that work in your situation?

To give a bit of insight, transforming the file on the client is quite taxing on the CPU so currently the clientside transform is only done right before uploading the file.

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

No branches or pull requests

2 participants