Fix: Use "rwt" file mode for the output image file#926
Fix: Use "rwt" file mode for the output image file#926lynnik merged 2 commits intoYalantis:develop-non-nativefrom
Conversation
|
@lynnik It looks like you are one of the maintainers now - can you take a look at this one? |
|
Hey @lynnik, this is kind of blocking for us and we'll probably have to fork and manage our own release of uCrop if we want to continue working with it. Obviously this is not something we would like to do. Let us know (@AdamGrzybkowski , @hamorillo and @maxme) if you need help with the project and publishing updates, maybe we can help. |
|
Hey, @AdamGrzybkowski, thanks for reaching out! We’re currently working on it and will provide an update soon. We'll keep you in the loop. |
|
I made today a non-native version of my fork and included your bugfix. Maybe that might help you :) |
|
android.view.Window.setStatusBarColor com.yalantis.ucrop.UCropActivity.K In playstore this warning is occured , how to fix this |
Closes #546
This PR fixes an issue with the output file size. No matter how low the compression quality is set the image will remain its original file size after cropping.
The default file mode used when opening the
OutputStreamfor themImageOutputUriseems to be the culprit. Changing it towtfixed the issue.Testing:
Use the sample app and first check the
develop-non-nativebranch.Tmp file destinationResize image to max size- set it to a low value like 500pick & cropDevice Explorerin Android Studio and go todata/data/com.yalantis.ucrop.sample/cacheSampleCropImage.jpg- compare it with the originalNow check out this branch and repeat the steps above.