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

The outcome image has a bigger memory size (at times it is more than 10MB !!!) #151

Open
arkaanNotion opened this issue May 4, 2024 · 2 comments

Comments

@arkaanNotion
Copy link

The size of the outcome cropped image is too big, on further analysis I found out the the _imageAsUIImage (imageInfo.image) is actually a larger size compared to the original. Is there any workaround this, I have tried ways to make it work

@itsAkshatG13
Copy link

Any way found for this @arkaanNotion ?

@rohitsangwan01
Copy link

rohitsangwan01 commented Jul 9, 2024

encodePng is responsible for increase in size, i tried a simple test and results were

Original Image Size: 40000
Encoded Image Size: 120047

this was just an encodePng applied on an image, and size increase by almost 3 times
i tried with Jpg and Png images as sample, and same results

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