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

It Generate Large image size compare to original image size #112

Open
ganeshverma opened this issue Oct 5, 2020 · 4 comments
Open

It Generate Large image size compare to original image size #112

ganeshverma opened this issue Oct 5, 2020 · 4 comments

Comments

@ganeshverma
Copy link

ui-croper generate more size of input image size when we set result-image-size="max"

@CrackerakiUA
Copy link
Owner

hey, please be more specific

@ganeshverma
Copy link
Author

ganeshverma commented Oct 7, 2020

When we select image which size is 2Mb, after cropping (supposed we set result-image-size="'max'" and init-max-area="true") result of cropped image size is greater than 2Mb

<ui-cropper mage="myImage" area-type="rectangle" result-image="myCroppedImage" init-max-area="true" result-image-size="max"></ui-cropper>

After Crope its generate large image size compare to original image.

@ganeshverma ganeshverma changed the title Generate big size to input image size It Generate Large image size compare to original image size Oct 7, 2020
@CrackerakiUA
Copy link
Owner

Check also if image format was jpg and after png. Also this is not what we can fix, it's on area lower from our cropper. We are based on canvas technology and probably output is in different image content.

@interludic
Copy link

Possible to combine with a compressor?
https://github.com/fengyuanchen/compressorjs

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

3 participants