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)