crop_your_image
crop_your_image helps your app to embed Widgets for cropping images.
2.0.0
179K downloads/mo
#896 most downloaded on pub.dev
chooyan-eng/crop_your_image
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 8 months
Nearly every release is documented
notes for 34 of 37 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
48 releases · first in 2021
0 releases in the last 12 months
see the full history below
Release timeline
48 releases · Mar 2021 to Dec 2024Releases
latest 48-
2.0.012 Dec 2024Release notes
Open source →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!
- Change the argument type exposed by
-
2.0.0-dev.712 Dec 2024 pre-releaseNothing published for this version
-
2.0.0-dev.611 Dec 2024 pre-releaseNothing published for this version
-
2.0.0-dev.511 Dec 2024 pre-releaseNothing published for this version
-
2.0.0-dev.410 Dec 2024 pre-releaseNothing published for this version
-
2.0.0-dev.309 Dec 2024 pre-releaseNothing published for this version
-
2.0.0-dev.208 Dec 2024 pre-releaseNothing published for this version
-
2.0.0-dev.107 Dec 2024 pre-releaseNothing published for this version
-
1.1.029 May 2024 -
1.0.225 Feb 2024 -
1.0.111 Feb 2024 -
1.0.011 Feb 2024Release notes
Open source →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.410 Feb 2024 pre-release -
1.0.0-dev.310 Feb 2024 pre-releaseRelease notes
Open source →- Rename some arguments of
Cropand setter ofCropController. See migration guide. interactiveis now available for Web!
- Rename some arguments of
-
1.0.0-dev.209 Feb 2024 pre-releaseRelease notes
Open source →- Add test codes and fix some bugs.
- Update README.md
- Add
clipBehavior. - Rename
allowScaletowillUpdateScale.
-
1.0.0-dev.108 Feb 2024 pre-releaseRelease notes
Open source →- Refactor and update the architecture of the entire codebase.
- Add injecting backend logic features.
- Add
allowScaleflag.
-
0.7.505 Jun 2023 -
0.7.410 Jan 2023 -
0.7.315 Nov 2022Release notes
Open source →- Add
progressIndicatorparameter to pass a Widget indicating progress. - Updated versions of dependencies.
- Add
-
0.7.215 Mar 2022 -
0.7.113 Mar 2022Release notes
Open source →- 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.
- Add
-
0.7.1+115 Mar 2022Nothing published for this version
-
0.7.008 Mar 2022Release notes
Open source →- Add experimental feature of moving and zooming images.
- setting
interactive: trueenables the feature.
- setting
- Add
fixAreaflag to fix cropping area.
- Add experimental feature of moving and zooming images.
-
0.6.013 Aug 2021Release notes
Open source →- 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.
- Braking Change: The second argument of
-
0.6.0+114 Aug 2021 -
0.5.307 Apr 2021Release notes
Open source →- Fix a bug that calcuration of cropping area is wrong when Exif has orientation data.
-
0.5.228 Mar 2021 -
0.5.2+128 Mar 2021 -
0.5.125 Mar 2021Nothing published for this version
-
0.5.1+125 Mar 2021 -
0.5.018 Mar 2021Release notes
Open source →- Enable to configure corner Dots with whatever Widget.
- Enable to configure cropping mask colors and base colors.
-
0.4.018 Mar 2021Release notes
Open source →- 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.
- Enable to change original image via
-
0.3.017 Mar 2021 -
0.2.317 Mar 2021Release notes
Open source →- Fix a bug of wrong cropping rect when vertically longer image is set.
- Make the size of dots smaller.
-
0.2.216 Mar 2021Release notes
Open source →- 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.
- Rename
-
0.2.116 Mar 2021Release notes
Open source →- Enable to pass
isCircleproperty to crop with circle shape. This flag can also be changed viaCropController.
- Enable to pass
-
0.2.016 Mar 2021Release notes
Open source →- Enable to change
aspectRatiodynamically viaCropController. - Enable to set
initialSizeviaCropconstructor.
- Enable to change
-
0.1.416 Mar 2021 -
0.1.316 Mar 2021 -
0.1.215 Mar 2021 -
0.1.114 Mar 2021 -
0.1.014 Mar 2021 -
0.0.612 Mar 2021Release notes
Open source →- change the type of
imageparameters toUInt8List. - return cropped data via
onCroppedcallback. - now Crop Widget is available at any place and any size.
- change the type of
-
0.0.512 Mar 2021 -
0.0.411 Mar 2021 -
0.0.311 Mar 2021 -
0.0.211 Mar 2021 -
0.0.111 Mar 2021Nothing published for this version