crop_your_image 2.0.0
crop_your_image: ^2.0.0 copied to clipboard
crop_your_image helps your app to embed Widgets for cropping images.
2.0.0 2024.12.13 #
Breaking Changes #
This major update includes some breaking changes. See migration guide for more details.
Interface Enhancements #
- Change the argument type exposed by
onCroppedcallback intoCropResultfromUint8List. This allows to handle errors as well as cropped image data. Thank you @justprodev for your idea at #145! - Change how to implement
ImageCropperto make it more flexibly customizable. onMovedcallback passes additionalimageRectparameter.- Errors are now implementing
Exceptioninstead ofError. - Change the type of
initialRectBuildertoInitialRectBuilder, and now legacyinitialAreaandinitialSizeare removed and merged intoInitialRectBuilderto avoid confusion.
New Features #
- Add undo / redo related features. See README.md for more details.
- Respect original image format and output with the same format. Thank you @komakur for your idea and sample code at #48!
- Add
filterQualityargument toCropwidget. Thank you @abichinger for your discussion and contribution at #108! - Add
onImageMovedcallback that notifies image moved wheninteractiveis enabled. Thank you @yujune and @eidolonFIRE for your contribution at #159! and #92! - Add
overlayBuilderargument toCropwidget that enables to configure overlay on cropping area. Thank you @abichinger for your contribution at #107!
Bug Fixes #
- Fix a bug of circle crop not working with JPEG images.
- Fix a bug of
InvalidRectErrorhappening unexpectedly. Thank you @feimenggo and @Lenkomotive for your fixes at #163! and #153! - Fix a bug of using unmounted context.
- Fix a bug of crashing after disposing
Cropwidget.
Big appreciation to all the contributors joining discussions and sending PRs!
1.1.0 2024.5.29 #
- apply changes of latest version of
imagepackage
1.0.2 2024.2.26 #
- fix bug of causing
InvalidRectErrorunexpectedly
1.0.1 2024.2.11 #
- fix bug of
withCircleUinot working
1.0.0 2024.2.11 #
crop_your_imageis now stable!- well architectured and tested
- works also on Web / Desktop
- backend logic is also interchangeable
- some breaking changes. see migration guide.
1.0.0-dev.4 2024.2.10 #
interactiveis now available for macOS!- fix a tiny bug
1.0.0-dev.3 2024.2.10 #
- Rename some arguments of
Cropand setter ofCropController. See migration guide. interactiveis now available for Web!
1.0.0-dev.2 2024.2.9 #
- Add test codes and fix some bugs.
- Update README.md
- Add
clipBehavior. - Rename
allowScaletowillUpdateScale.
1.0.0-dev.1 2024.2.8 #
- Refactor and update the architecture of the entire codebase.
- Add injecting backend logic features.
- Add
allowScaleflag.
0.7.5 2023.6.5 #
- Update Fluter version to 3.10.3
0.7.4 2023.1.10 #
- Update versions of depencencies.
0.7.3 2022.11.15 #
- Add
progressIndicatorparameter to pass a Widget indicating progress. - Updated versions of dependencies.
0.7.2 2022.03.16 #
- Enhanced zooming / panning behavior
0.7.1 2022.03.13 #
- Add
initialAreaBuilderparameter to configure inital cropping area based on viewport ofCrop. - Add
radiusparameter to configure corner radius of cropping area. - Control image scale not to be smaller than cropping area.
- Calculate initial scale to cover cropping area.
- Fix bug image could't be bigger than certain scale.
0.7.0 2022.03.08 #
- Add experimental feature of moving and zooming images.
- setting
interactive: trueenables the feature.
- setting
- Add
fixAreaflag to fix cropping area.
0.6.0+1 2021.08.14 #
- Fix static analysis issues.
0.6.0 2021.08.14 #
- Braking Change: The second argument of
cornerDotBuilderis now enum ofEdgeAlignment, not meaningful index. - Add callback for
CropStatus. - Enhancement of not to block UI when loading image data.
0.5.3 2021.03.28 #
- Fix a bug that calcuration of cropping area is wrong when Exif has orientation data.
0.5.2+2 2021.03.28 #
- Update Readme
0.5.2+1 2021.03.28 #
- Fix problems of static analysis.
- Update Readme
0.5.2 2021.03.28 #
- Update Readme
- Remove unused code
0.5.1+1 2021.03.25 #
- Enable to set initial cropping area with
initialAreaproperty.
0.5.0 2021.03.18 #
- Enable to configure corner Dots with whatever Widget.
- Enable to configure cropping mask colors and base colors.
0.4.0 2021.03.18 #
- Enable to change original image via
CropController - Add callback when cropping area moves.
- Enable to control cropping area programmatically via
CropController - Fix bug that wrong cropping area is calculated when image is smaller than display.
0.3.0 2021.03.17 #
- Add example project in
exampledirectory.
0.2.3 2021.03.17 #
- Fix a bug of wrong cropping rect when vertically longer image is set.
- Make the size of dots smaller.
0.2.2 2021.03.16 #
- Rename
isCircleflag intowithCircleUi. This flag no more affects the result of the shape of cropped images. - Add
CropController.cropCirclemethod so that images are cropped with circle shape.
0.2.1 2021.03.16 #
- Enable to pass
isCircleproperty to crop with circle shape. This flag can also be changed viaCropController.
0.2.0 2021.03.16 #
- Enable to change
aspectRatiodynamically viaCropController. - Enable to set
initialSizeviaCropconstructor.
0.1.4 2021.03.16 #
- Bug fixed. and improve performance.
0.1.3 2021.03.16 #
- Fix not to block UI update when cropping image.
0.1.2 2021.03.15 #
- Enable to fix aspect ratio if
aspectRatioproperty is given.
0.1.1 2021.03.14 #
- Fix README.md
0.1.0 2021.03.14 #
- prevent Dot controls from exceeding thier horizontal / vertical limits.
0.0.6 2021.03.12 #
- change the type of
imageparameters toUInt8List. - return cropped data via
onCroppedcallback. - now Crop Widget is available at any place and any size.
0.0.5 2021.03.12 #
- Enable controling crop actions via CropController.
0.0.4 2021.03.12 #
- Rename classes.
0.0.3 2021.03.12 #
- Add first implementation of crop_your_image.
0.0.2 2021.03.12 #
- Update information about this package.