Compare commits

..

No commits in common. "6612dea1d5cf5cea03b371fbb01ef32adf0982e1" and "ad18fe60b227ac1e2ddd0aeb2e05aef2829dfa0d" have entirely different histories.

4 changed files with 5 additions and 11 deletions

View File

@ -1,7 +1,3 @@
## 3.1.0-rc.3
- 部分静态webp图片有delay属性导致识别成动图,改用getFrameCount识别
- 修复加载错误图后未去请求排队队列中的请求
## 3.1.0-rc.2
- 修复宽高不等svg图片显示有毛边

View File

@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { BlurTransformation, ImageKnifeComponent,ImageKnifeOption } from '@ohos/libraryimageknife';
import { ImageKnifeComponent,ImageKnifeOption } from '@ohos/libraryimageknife';
@ -43,8 +43,7 @@ struct ManyPhotoShowPage {
placeholderSrc:$r("app.media.loading"),
errorholderSrc:$r("app.media.failed"),
objectFit: ImageFit.Auto,
border: {radius:50},
transformation:new BlurTransformation(5)
border: {radius:50}
})})
}
.width(56).height(56)

View File

@ -14,7 +14,7 @@
"main": "index.ets",
"repository": "https://gitee.com/openharmony-tpc/ImageKnife",
"type": "module",
"version": "3.1.0-rc.3",
"version": "3.1.0-rc.2",
"dependencies": {
"@ohos/gpu_transform": "^1.0.2"
},

View File

@ -263,7 +263,6 @@ export class ImageKnifeDispatcher {
}
});
this.executingJobMap.remove(memoryKey);
this.dispatchNextJob();
return;
}
// 保存文件缓存
@ -609,8 +608,8 @@ async function requestJob(request: RequestJobRequest, requestList?: List<ImageKn
}
let resPixelmap: PixelMap | undefined = undefined
if (typeValue === 'gif' || typeValue === 'webp') {
let frameCount = await imageSource.getFrameCount()
if(frameCount == undefined || frameCount == 1) {
let delayList = await imageSource.getDelayTimeList()
if(delayList == undefined) {
} else {
let size = (await imageSource.getImageInfo()).size
let base64Help = new util.Base64Helper()