filestack/filestack-js

File size increases after cropping image using File Picker

jsakas opened this issue · 1 comments

jsakas commented

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: filestack-js@3.26.1
  • Browser Name and version: Chrome
  • Operating System and version (desktop or mobile): macOS
  • Link to your project: private

Any further update for this issue please?