!116 修复正方形裁剪有些图片裁剪创建pixelMap失败

Merge pull request !116 from zgf/master
This commit is contained in:
openharmony_ci 2024-02-19 06:23:03 +00:00 committed by Gitee
commit 59d80e5c55
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
## 2.1.2-rc.6
- 修复手机调节显示大小时图片消失
- pngWorker线程改为taskpool
- 修复正方形裁剪有些图片裁剪创建pixelMap失败
## 2.1.2-rc.5
- moduleContext新增缓存策略缓存上限5缓存策略Lru

View File

@ -60,8 +60,8 @@ export class CropSquareTransformation implements BaseTransform<PixelMap> {
editable: true,
rotate: 0,
desiredSize: {
width: outWidth,
height: outHeight
width: pw,
height: ph
},
desiredRegion: { size: { width: targetSize, height: targetSize },
x: pw / 2 - targetSize / 2,