demo报错修改

This commit is contained in:
tsm 2024-04-29 21:39:04 +08:00
parent 5d9a3f521b
commit b83413cf49
1 changed files with 4 additions and 2 deletions

View File

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