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

File size increases after cropping image using File Picker #530

Open
jsakas opened this issue Sep 8, 2023 · 1 comment
Open

File size increases after cropping image using File Picker #530

jsakas opened this issue Sep 8, 2023 · 1 comment

Comments

@jsakas
Copy link

jsakas commented Sep 8, 2023

When uploading and cropping an image file using the File Picker, we see the file size of the cropped image increase significantly. These are the option we are passing into the picker:

{
  accept: ['image/jpg', 'image/jpeg', 'image/png'],
  fromSources: ['local_file_system'],
  transformations: {
    crop: {
      aspectRatio: 16 / 10, force: true
    },
  }
}

Here is the image we are cropping (about 975kb):

communitydesktop_v5

After cropping the image slightly, it is increased to 2.3 mb:

867c50d2-428a-4966-90fd-679763f55b07

Expected Behavior

Image size does not increase after cropping.

Current Behavior

Image size more than doubles after cropping.

Your Environment

  • Version used: [email protected]
  • Browser Name and version: Chrome
  • Operating System and version (desktop or mobile): macOS
  • Link to your project: private
@jsakas jsakas changed the title File size increases after cropping image File size increases after cropping image using File Picker Sep 11, 2023
@StephenLover
Copy link

Any further update for this issue please?

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