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

Resize large images down #33

Open
khutten opened this Issue Oct 16, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@khutten
Collaborator

khutten commented Oct 16, 2018

Currently when a user open's their own image, we crop images down to 2000px wide with the following

document.getElementById('file-input').onchange = function (e) {
  loadImage(
      e.target.files[0],
      imageSetup,
      {maxWidth: 2000} // Options
  );
};

This is done to stop the app from running slowly when changing the sliders, but really this is pretty crap to have you're image suddenly cropped, Can we refactor this so that the image is resized to 2000px instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment