更新说明:
1、修复了pngj测试页面,快速点击导致应用闪退的问题 Signed-off-by: 明月清风 <2928139825@qq.com>
This commit is contained in:
parent
f764b6e02a
commit
ca3436ff73
|
@ -3,7 +3,7 @@
|
|||
"bundleName": "com.openharmony.imageknife",
|
||||
"vendor": "example",
|
||||
"versionCode": 1000000,
|
||||
"versionName": "2.0.3",
|
||||
"versionName": "2.0.4",
|
||||
"icon": "$media:app_icon",
|
||||
"label": "$string:app_name",
|
||||
"distributedNotificationEnabled": true
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
## 2.0.4
|
||||
|
||||
- 修复若干问题:
|
||||
|
||||
修复了pngj测试页面,快速点击导致应用闪退的问题
|
||||
|
||||
|
||||
## 2.0.3
|
||||
|
||||
- 修复若干问题:
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"name": "entry",
|
||||
"description": "example description",
|
||||
"repository": {},
|
||||
"version": "2.0.3",
|
||||
"version": "2.0.4",
|
||||
"dependencies": {
|
||||
"@ohos/imageknife": "file:../imageknife",
|
||||
"@ohos/disklrucache": "^2.0.0"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"main": "index.ets",
|
||||
"repository": "https://gitee.com/openharmony-tpc/ImageKnife",
|
||||
"type": "module",
|
||||
"version": "2.0.3",
|
||||
"version": "2.0.4",
|
||||
"dependencies": {
|
||||
"@ohos/disklrucache": "^2.0.0",
|
||||
"@ohos/svg": "^2.0.0",
|
||||
|
|
|
@ -21,12 +21,15 @@ import ArkWorker from '@ohos.worker'
|
|||
export class Pngj {
|
||||
readPngImageInfo(arraybuffer: ArrayBuffer, callback:PngCallback<ArrayBuffer, any>) {
|
||||
let imageSource = image.createImageSource(arraybuffer as any);
|
||||
imageSource.getImageInfo((err, value) => {
|
||||
if (err) {
|
||||
return;
|
||||
}
|
||||
callback(arraybuffer, value);
|
||||
});
|
||||
if (imageSource != undefined){
|
||||
imageSource.getImageInfo((err, value) => {
|
||||
if (err) {
|
||||
return;
|
||||
}
|
||||
callback(arraybuffer, value);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
"name": "imageknife",
|
||||
"description": "example description",
|
||||
"repository": {},
|
||||
"version": "2.0.3",
|
||||
"version": "2.0.4",
|
||||
"dependencies": {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue