!124 修复部分gif图片识别成静态图和同一张图片发送多次请求

Merge pull request !124 from zgf/master
This commit is contained in:
openharmony_ci 2024-03-06 08:10:45 +00:00 committed by Gitee
commit adf61a372e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,7 @@
## 2.1.2-rc.9
- 修复部分gif图片识别成静态图
- 修复同一张图片发送多次请求
## 2.1.2-rc.8
- onAreaChange绘制图片改为component Util绘制

View File

@ -4,7 +4,7 @@
"name": "entry",
"description": "example description",
"repository": {},
"version": "2.1.2-rc.8",
"version": "2.1.2-rc.9",
"dependencies": {
"@ohos/libraryimageknife": "file:../sharedlibrary",
"@ohos/sharedlibrary2": "file:../sharedlibrary2",

View File

@ -14,7 +14,7 @@
"main": "index.ets",
"repository": "https://gitee.com/openharmony-tpc/ImageKnife",
"type": "module",
"version": "2.1.2-rc.8",
"version": "2.1.2-rc.9",
"dependencies": {
"pako": "^2.1.0",
"@ohos/disklrucache": "^2.0.2-rc.0",

View File

@ -399,7 +399,7 @@ export class ImageKnife {
runningTailNode = runningTailNode.prev;
}
if (hasEqual) {
if (!hasEqual) {
break;
}
pendingTailNode = pendingTailNode.prev;

View File

@ -20,7 +20,7 @@ export class FileTypeUtil {
// 添加文件类型和对应的文件头部特征
'jpg': [new Uint8Array([0xFF, 0xD8])],
'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])],
'svg': [new Uint8Array([0x3C, 0x3F, 0x78, 0x6D, 0x6C]),new Uint8Array([0x3C, 0x73, 0x76, 0x67, 0x20])],
'webp': [new Uint8Array([0x52, 0x49, 0x46, 0x46])],

View File

@ -6,6 +6,6 @@
"name": "imageknife",
"description": "example description",
"repository": {},
"version": "2.1.2-rc.8",
"version": "2.1.2-rc.9",
"dependencies": {}
}