igreenwood / SimpleCropView

A simple image cropping library for Android.
MIT License
2.48k stars 466 forks source link

Significant increase in size #84

Closed Vierco closed 7 years ago

Vierco commented 7 years ago

I have found that when an image is cropped, the size automatically increases. This has been reported previously in issues #78, but no response. Someone may say something about it?

igreenwood commented 7 years ago

Hello, Sergio.

Thank you for your mail. I'm sorry for that I haven't been maintaining so much recently.

I want to be helpful to you, but unfortunately I can't replicate the bug in my environment now. Could you describe more details, or send me the project that replicates the problem? Best regards.

Vierco commented 7 years ago

Thank you very much for your quick response. Of course, I will prepare a project where the increased size of the bitmap is replicated. The current project is for a client and can not send full.

Thank you very much for your interest :)

borjaMorilla commented 7 years ago

It's true, i have the same problem. For example, I download a image of 17KB and I crop this image, after the image is of 100 KB.

Thanks !

Sorry if my english isn't very good.

Nicrob64 commented 7 years ago

@borjaMorilla & @Vierco

Are you changing the compression format? (Downloading a jpg and then saving to png?) That could cause an increase in size, going from a lossy to a lossless.

It could also be due to downloading a low quality jpg and saving it at jpg quality 100. Try fiddling with those options and see if it fixes your issue You can check what quality a jpg file is here: http://www.imgonline.com.ua/eng/determine-jpeg-quality.php (i haven't tested it but looks like it'll work)