diff --git a/Example/JPImageresizerView/JPConfigureModel.m b/Example/JPImageresizerView/JPConfigureModel.m index 1d76a7b..1a248b2 100644 --- a/Example/JPImageresizerView/JPConfigureModel.m +++ b/Example/JPImageresizerView/JPConfigureModel.m @@ -17,60 +17,52 @@ @implementation JPConfigureModel JPConfigureModel *model1 = [self new]; model1.title = @"默认样式"; model1.statusBarStyle = UIStatusBarStyleLightContent; - model1.configure = [JPImageresizerConfigure defaultConfigureWithImage:nil make:nil]; + model1.configure = [JPImageresizerConfigure defaultConfigure]; JPConfigureModel *model2 = [self new]; model2.title = @"深色毛玻璃遮罩"; model2.statusBarStyle = UIStatusBarStyleLightContent; - model2.configure = [JPImageresizerConfigure darkBlurMaskTypeConfigureWithImage:nil make:nil]; + model2.configure = [JPImageresizerConfigure darkBlurMaskTypeConfigure]; JPConfigureModel *model3 = [self new]; model3.title = @"浅色毛玻璃遮罩"; model3.statusBarStyle = UIStatusBarStyleDefault; - model3.configure = [JPImageresizerConfigure lightBlurMaskTypeConfigureWithImage:nil make:nil]; + model3.configure = [JPImageresizerConfigure lightBlurMaskTypeConfigure]; JPConfigureModel *model4 = [self new]; model4.title = @"拉伸样式的边框图片"; model4.statusBarStyle = UIStatusBarStyleDefault; - model4.configure = [JPImageresizerConfigure lightBlurMaskTypeConfigureWithImage:nil make:^(JPImageresizerConfigure *configure) { - configure + model4.configure = [JPImageresizerConfigure lightBlurMaskTypeConfigure] .jp_strokeColor([UIColor colorWithRed:(205.0 / 255.0) green:(107.0 / 255.0) blue:(153.0 / 255.0) alpha:1.0]) .jp_borderImage(self.class.stretchBorderImage) .jp_borderImageRectInset(self.class.stretchBorderImageRectInset); - }]; JPConfigureModel *model5 = [self new]; model5.title = @"平铺样式的边框图片"; model5.statusBarStyle = UIStatusBarStyleLightContent; - model5.configure = [JPImageresizerConfigure darkBlurMaskTypeConfigureWithImage:nil make:^(JPImageresizerConfigure *configure) { - configure + model5.configure = [JPImageresizerConfigure darkBlurMaskTypeConfigure] .jp_frameType(JPClassicFrameType) .jp_borderImage(self.class.tileBorderImage) .jp_borderImageRectInset(self.class.tileBorderImageRectInset); - }]; JPConfigureModel *model6 = [self new]; model6.title = @"圆切样式"; model6.statusBarStyle = UIStatusBarStyleDefault; - model6.configure = [JPImageresizerConfigure darkBlurMaskTypeConfigureWithImage:nil make:^(JPImageresizerConfigure *configure) { - configure + model6.configure = [JPImageresizerConfigure darkBlurMaskTypeConfigure] .jp_strokeColor(JPRGBColor(250, 250, 250)) .jp_frameType(JPClassicFrameType) .jp_isClockwiseRotation(YES) .jp_animationCurve(JPAnimationCurveEaseOut) .jp_isRoundResize(YES) .jp_isArbitrarily(NO); - }]; JPConfigureModel *model7 = [self new]; model7.title = @"蒙版样式"; model7.statusBarStyle = UIStatusBarStyleLightContent; - model7.configure = [JPImageresizerConfigure darkBlurMaskTypeConfigureWithImage:nil make:^(JPImageresizerConfigure *configure) { - configure + model7.configure = [JPImageresizerConfigure darkBlurMaskTypeConfigure] .jp_frameType(JPClassicFrameType) .jp_maskImage([UIImage imageNamed:@"love.png"]) .jp_isArbitrarily(NO); - }]; examplesModels_ = @[model1, model2, model3, model4, model5, model6, model7]; return examplesModels_; diff --git a/Example/JPImageresizerView/JPTableViewController.m b/Example/JPImageresizerView/JPTableViewController.m index 80917fe..5cdf534 100644 --- a/Example/JPImageresizerView/JPTableViewController.m +++ b/Example/JPImageresizerView/JPTableViewController.m @@ -23,6 +23,8 @@ @interface JPTableViewController () 2. 所有的裁剪完成回调统一返回JPImageresizerResult实例;
3. 兼容Swift环境;
4. 修复`isShowGridlinesWhenDragging`属性为YES时,拖动图片本身没有显示网格的问题;
5. 修复部分音频有问题的视频裁剪出错的问题;
6. 修复裁剪视频或GIF时进度条没有显示的问题;
7. 新增可自定义旋转至目标方向的API。 +1.9.0~1.9.7 | 1. 图片新增N宫格裁剪;
2. 所有的裁剪完成回调统一返回JPImageresizerResult实例;
3. 兼容Swift环境;
4. 修复`isShowGridlinesWhenDragging`属性为YES时,拖动图片本身没有显示网格的问题;
5. 修复部分音频有问题的视频裁剪出错的问题;
6. 修复裁剪视频或GIF时进度条没有显示的问题;
7. 新增更多`Configure`初始化和可自定义旋转至目标方向的API。 1.7.8~1.8.3 | 1. 新增可保存当前历史状态的功能;
2. 修复GIF裁剪某一帧画面时的后缀名误设问题;
3. 修复仅放大而无法裁剪的问题;
4. 修复从系统相册选择的视频没有画面的问题;
5. 修复预览模式下进度条没有隐藏的问题。 1.7.6~1.7.7 | 1. 修复了固定比例旋转时无故放大的问题;
2. 修复iOS14版本下自定义进度条的拖动块消失的问题。 1.7.3~1.7.5 | 1. 修复了初始化无法固定裁剪比例的问题;
2. 现在圆切和蒙版均可设置是否自由拖拽;
3. 优化了设置裁剪宽高比和重置的接口;
4. 优化了图片缓存逻辑;
5. 修复了GIF时长过短导致截取错误的问题。 diff --git a/README_EN.md b/README_EN.md index 1a217b0..5d8e7d6 100644 --- a/README_EN.md +++ b/README_EN.md @@ -10,7 +10,7 @@ *本人英语小白,这里基本都是用百度翻译出来的,Sorry。* -## Brief introduction (Current version: 1.9.6) +## Brief introduction (Current version: 1.9.7) A special wheel for cutting pictures, GIF and videos is simple and easy to use, with rich functions (high degree of freedom parameter setting, supporting rotation and mirror flipping, masking, compression, etc.), which can meet the needs of most cutting.