filestack / filestack-js

Official Javascript SDK for the Filestack API and content ingestion system.
https://www.filestack.com
MIT License
206 stars 78 forks source link

File size increases after cropping image using File Picker #530

Open jsakas opened 1 year ago

jsakas commented 1 year ago

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

StephenLover commented 2 months ago

Any further update for this issue please?