!124 修复部分gif图片识别成静态图和同一张图片发送多次请求
Merge pull request !124 from zgf/master
This commit is contained in:
commit
adf61a372e
|
@ -1,3 +1,7 @@
|
||||||
|
## 2.1.2-rc.9
|
||||||
|
- 修复部分gif图片识别成静态图
|
||||||
|
- 修复同一张图片发送多次请求
|
||||||
|
|
||||||
## 2.1.2-rc.8
|
## 2.1.2-rc.8
|
||||||
- onAreaChange绘制图片改为component Util绘制
|
- onAreaChange绘制图片改为component Util绘制
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"name": "entry",
|
"name": "entry",
|
||||||
"description": "example description",
|
"description": "example description",
|
||||||
"repository": {},
|
"repository": {},
|
||||||
"version": "2.1.2-rc.8",
|
"version": "2.1.2-rc.9",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ohos/libraryimageknife": "file:../sharedlibrary",
|
"@ohos/libraryimageknife": "file:../sharedlibrary",
|
||||||
"@ohos/sharedlibrary2": "file:../sharedlibrary2",
|
"@ohos/sharedlibrary2": "file:../sharedlibrary2",
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
"main": "index.ets",
|
"main": "index.ets",
|
||||||
"repository": "https://gitee.com/openharmony-tpc/ImageKnife",
|
"repository": "https://gitee.com/openharmony-tpc/ImageKnife",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.1.2-rc.8",
|
"version": "2.1.2-rc.9",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pako": "^2.1.0",
|
"pako": "^2.1.0",
|
||||||
"@ohos/disklrucache": "^2.0.2-rc.0",
|
"@ohos/disklrucache": "^2.0.2-rc.0",
|
||||||
|
|
|
@ -399,7 +399,7 @@ export class ImageKnife {
|
||||||
runningTailNode = runningTailNode.prev;
|
runningTailNode = runningTailNode.prev;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasEqual) {
|
if (!hasEqual) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
pendingTailNode = pendingTailNode.prev;
|
pendingTailNode = pendingTailNode.prev;
|
||||||
|
|
|
@ -20,7 +20,7 @@ export class FileTypeUtil {
|
||||||
// 添加文件类型和对应的文件头部特征
|
// 添加文件类型和对应的文件头部特征
|
||||||
'jpg': [new Uint8Array([0xFF, 0xD8])],
|
'jpg': [new Uint8Array([0xFF, 0xD8])],
|
||||||
'png': [new Uint8Array([0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A])],
|
'png': [new Uint8Array([0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A])],
|
||||||
'gif': [new Uint8Array([0x47, 0x49, 0x46, 0x38, 0x39, 0x61])],
|
'gif': [new Uint8Array([0x47, 0x49, 0x46, 0x38, 0x39, 0x61]),new Uint8Array([0x47, 0x49, 0x46, 0x38])],
|
||||||
'bmp': [new Uint8Array([0x42, 0x4D])],
|
'bmp': [new Uint8Array([0x42, 0x4D])],
|
||||||
'svg': [new Uint8Array([0x3C, 0x3F, 0x78, 0x6D, 0x6C]),new Uint8Array([0x3C, 0x73, 0x76, 0x67, 0x20])],
|
'svg': [new Uint8Array([0x3C, 0x3F, 0x78, 0x6D, 0x6C]),new Uint8Array([0x3C, 0x73, 0x76, 0x67, 0x20])],
|
||||||
'webp': [new Uint8Array([0x52, 0x49, 0x46, 0x46])],
|
'webp': [new Uint8Array([0x52, 0x49, 0x46, 0x46])],
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
"name": "imageknife",
|
"name": "imageknife",
|
||||||
"description": "example description",
|
"description": "example description",
|
||||||
"repository": {},
|
"repository": {},
|
||||||
"version": "2.1.2-rc.8",
|
"version": "2.1.2-rc.9",
|
||||||
"dependencies": {}
|
"dependencies": {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue