!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 ## 2.1.2-rc.8
- onAreaChange绘制图片改为component Util绘制 - onAreaChange绘制图片改为component Util绘制

View File

@ -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",

View File

@ -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",

View File

@ -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;

View File

@ -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])],

View File

@ -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": {}
} }