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

Signed-off-by: zenggaofeng <zenggaofeng2@h-partners.com>
This commit is contained in:
zenggaofeng 2024-02-19 11:30:07 +08:00
parent e687e70648
commit 2ed2494ef1
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,