下采样冲突解决
This commit is contained in:
parent
0958d3df94
commit
2a932ac01d
|
@ -43,7 +43,7 @@ export class ParseImageUtil implements IParseImage<PixelMap> {
|
||||||
editable: true,
|
editable: true,
|
||||||
desiredSize: defaultSize
|
desiredSize: defaultSize
|
||||||
};
|
};
|
||||||
if(request.downsampType.getName()!==undefined && request.downsampType.getName()!=='DownsampleNone'){
|
if(request?.downsampType.getName()!==undefined && request?.downsampType.getName()!=='DownsampleNone'){
|
||||||
const b:ESObject = new Downsampler().calculateScaling(imageinfo, hValue, wValue,request)
|
const b:ESObject = new Downsampler().calculateScaling(imageinfo, hValue, wValue,request)
|
||||||
opts= {
|
opts= {
|
||||||
editable: true,
|
editable: true,
|
||||||
|
|
|
@ -53,7 +53,7 @@ export class GIFParseImpl implements IParseGif {
|
||||||
imageSource.getImageInfo().then((value) => {
|
imageSource.getImageInfo().then((value) => {
|
||||||
hValue = Math.round(value.size.height);
|
hValue = Math.round(value.size.height);
|
||||||
wValue = Math.round(value.size.height);
|
wValue = Math.round(value.size.height);
|
||||||
if ( _request.downsampType.getName()!==undefined && _request.downsampType.getName()!=='DownsampleNone') {
|
if ( _request?.downsampType.getName()!==undefined && _request?.downsampType.getName()!=='DownsampleNone') {
|
||||||
const b: ESObject = new Downsampler().calculateScaling(imageinfo, Math.round(value.size.height), Math.round(value.size.width), _request)
|
const b: ESObject = new Downsampler().calculateScaling(imageinfo, Math.round(value.size.height), Math.round(value.size.width), _request)
|
||||||
decodeOpts = {
|
decodeOpts = {
|
||||||
sampleSize: 1,
|
sampleSize: 1,
|
||||||
|
|
|
@ -36,7 +36,7 @@ export class SVGParseImpl implements IParseSvg {
|
||||||
editable: true,
|
editable: true,
|
||||||
desiredSize: defaultSize
|
desiredSize: defaultSize
|
||||||
};
|
};
|
||||||
if (request.downsampType.getName()!==undefined && request.downsampType.getName()!=='DownsampleNone') {
|
if (request?.downsampType.getName()!==undefined && request?.downsampType.getName()!=='DownsampleNone') {
|
||||||
const b: ESObject = new Downsampler().calculateScaling(imageInfo, hValue, wValue, option)
|
const b: ESObject = new Downsampler().calculateScaling(imageInfo, hValue, wValue, option)
|
||||||
opts = {
|
opts = {
|
||||||
editable: true,
|
editable: true,
|
||||||
|
|
Loading…
Reference in New Issue