From b83413cf49448f825dc5b75094ac5e2d22837395 Mon Sep 17 00:00:00 2001 From: tsm <2418639820@qq.com> Date: Mon, 29 Apr 2024 21:39:04 +0800 Subject: [PATCH] =?UTF-8?q?demo=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ets/components/imageknife/utils/gif/GIFParseImpl.ets | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/src/main/ets/components/imageknife/utils/gif/GIFParseImpl.ets b/library/src/main/ets/components/imageknife/utils/gif/GIFParseImpl.ets index 7039608..495049f 100644 --- a/library/src/main/ets/components/imageknife/utils/gif/GIFParseImpl.ets +++ b/library/src/main/ets/components/imageknife/utils/gif/GIFParseImpl.ets @@ -19,6 +19,8 @@ import { BusinessError } from '@ohos.base' import worker, { ErrorEvent, MessageEvents } from '@ohos.worker'; import taskpool from '@ohos.taskpool' import { LogUtil } from '../LogUtil' +import { RequestOption } from '../../RequestOption' +import { Downsampler } from '../../Downsampling/Downsampler' export interface senderData { type: string, @@ -49,8 +51,8 @@ export class GIFParseImpl implements IParseGif { let hValue: number = 0 let wValue: number = 0 imageSource.getImageInfo().then((value) => { - hValue = Math.round(value.size, height); - wValue = Math.round(value.size, height); + hValue = Math.round(value.size. height); + wValue = Math.round(value.size.height); console.log('原始宽高:', JSON.stringify(value.size)) console.log('classType', JSON.stringify(_request?.downsampType.getName())) console.log('classType2', hValue, wValue)