Releases: ArthurHub/Android-Image-Cropper
Releases · ArthurHub/Android-Image-Cropper
2.8.0
- Fix crash on Android O (thx @juliooa)
- Update to support library to AndroidX (thx @mradzinski)
- Handle failure when selecting non image file (thx @uncledoc)
- More translations (thx @jkwiecien, @david-serrano)
2.7.0
- Update gradle wrapper to 4.4
- Update support library to 27.1.1 and set is statically! (thx @androideveloper)
- Fix NPE in activity creation by tools (thx @unverbraucht)
- More translations (thx @gwharvey, @dlackty, @JairoGeek, @shaymargolis)
2.6.0
2.5.1
- Try solve manifest merger issue by adding
transitive
flag #405 (thx @j-garin) - Use thread pool executors for async image loading and cropping operations to prevent app hang if default executor is busy (thx @ruifcardoso)
- Fix image rotation breaking min/max crop result restrictions #401
- Propagate all extra data set on start crop activity intent back in crop result intent #352
2.5.0
- Update to sdk v26
- Update gradle plugin to 2.0
- Update min sdk version to 14
- Fix NPE in
getWholeImageRect
- Remove
crop_image_menu_crop
drawable support, replace withsetCropMenuCropButtonIcon
builder api. - Support setting crop button title via builder api.
- Add string resource for "no permissions" toast.
2.4.7
- Fix toolbar menu crop icon sometimes appears with random icon (#305)
- Use CharSequence instead of string for activity title (thx @KentHawkings) (#297)
- Fix class not found exception on some Samsung devices (Huge thanks to @Vantablack) (#332)
- Add original image dimensions to CropResult (Thanks @gazialankus) (#327)
- Making the library JitPack-friendly (Thanks @gazialankus) (#325)
- Allow a Fragment to call the startPickImageActivity help method in CropImage (Thanks @cdavietei) (#315)
2.4.5
- Fix undefined drawable in Android Studio 3.0 (thx @adrien-aubel)
2.4.4
2.4.3
- Adding option to omit camera intents on getPickImageChooserIntent (thx Hugo Rossi)
- Portuguese Language localization (thx Hugo Rossi)
- Removed saving bitmap into parcel in
onSaveInstanceState
to preventTransactionTooLargeException
- By default nothing will happen and the view will be restored empty (if cropping image loaded using bitmap).
- Added config
SaveBitmapToInstanceState
to enable saving bitmap to temp file so it can be restored (default is false because of possible performance implications). - Always prefer using URI to load image from cropping!
- Fix restore state not restoring rotation.
- Fix initial crop window may be in invalid position because reading previous image instance state.
2.3.1
2.3.1
- Fix image picker for xiaomi and huawei phones (thx @nicolabeghin)
- Fix crop window get corrupted on
CropImageView
resize.
2.3.0
- Change required width/height behavior to support resizing (inside/fit/exact) see wiki for details.
- Add sampling fallback to lower cropped image resolution on OOM error (if image loaded from URI).
- Setting aspect ratio will also set it to fixed, to help with confusion, add clear aspect ratio method.
- Add support for setting min/max crop result size in code on CropImageView.
- Fix cropping failing bug when skia fails region cropping.
- Add Fallback to Intent.ACTION_PICK if no intent found for Intent.ACTION_GET_CONTENT (thx geolyth)
- Multi-touch support for cropping window (experimental, thx bbwharris)
- BREAKING CHANGES:
- If you previously used requested width/height the default behavior now is to resize inside the cropped image, to preserve the previous behavior you need to pass the SAMPLING option.
OnGetCroppedImageCompleteListener
andOnSaveCroppedImageCompleteListener
is deprecated, useOnCropImageCompleteListener
that combines the two and provides the result object as crop activity.- Set aspect ratio also sets fixed aspect ratio to true, if this is not the desired behavior set the fix aspect ratio flag manually or call the method after calling set aspect ratio.