@wix/image-kit
Advanced tools
Comparing version 1.41.0 to 1.42.0
@@ -54,5 +54,2 @@ "use strict"; | ||
* check if image transform is supported for source image | ||
* @param {string} uri | ||
* | ||
* @returns {boolean} | ||
*/ | ||
@@ -64,7 +61,3 @@ function isImageTransformApplicable(uri, hasAnimation, allowWEBPTransform) { | ||
/** | ||
* returns true if image is of WEBP type and is animated | ||
* | ||
* @param {string} uri | ||
* @param {boolean} hasAnimation | ||
* @returns {boolean} | ||
* returns true if image is of WEBP type and is animated or WEBP transform is not allowed | ||
*/ | ||
@@ -71,0 +64,0 @@ function isNotTransformableWEBP(uri, hasAnimation, allowWEBPTransform = false) { |
@@ -42,5 +42,2 @@ import { alignTypes, alignTypesMap, fileType, fittingTypes, imageQuality, imageScaleDefaults, transformTypes, upscaleMethods, upscaleMethodsValues, ALIGN_TYPE_TO_FOCAL_POINT, MAX_DEVICE_PIXEL_RATIO, SUPER_UPSCALE_MODELS, SAFE_TRANSFORMED_AREA, } from './imageServiceConstants'; | ||
* check if image transform is supported for source image | ||
* @param {string} uri | ||
* | ||
* @returns {boolean} | ||
*/ | ||
@@ -53,7 +50,3 @@ function isImageTransformApplicable(uri, hasAnimation, allowWEBPTransform) { | ||
/** | ||
* returns true if image is of WEBP type and is animated | ||
* | ||
* @param {string} uri | ||
* @param {boolean} hasAnimation | ||
* @returns {boolean} | ||
* returns true if image is of WEBP type and is animated or WEBP transform is not allowed | ||
*/ | ||
@@ -452,3 +445,3 @@ function isNotTransformableWEBP(uri, hasAnimation, allowWEBPTransform = false) { | ||
function getOptimizedTransformData(sWidth, sHeight, tWidth, tHeight, upscaleMethod, scaleFactor, transformType) { | ||
const { optimizedScaleFactor, upscaleMethodValue, forceUSM, } = getOptimizedScaleData(sWidth, sHeight, scaleFactor, upscaleMethod); | ||
const { optimizedScaleFactor, upscaleMethodValue, forceUSM } = getOptimizedScaleData(sWidth, sHeight, scaleFactor, upscaleMethod); | ||
let width = tWidth; | ||
@@ -455,0 +448,0 @@ let height = tHeight; |
@@ -20,5 +20,2 @@ import type { FileType, FittingType, TransformType, UpscaleMethod, ImageTransformData, ImageTransformOptions, ImageTransformSource, ImageTransformTarget } from '../types'; | ||
* check if image transform is supported for source image | ||
* @param {string} uri | ||
* | ||
* @returns {boolean} | ||
*/ | ||
@@ -25,0 +22,0 @@ declare function isImageTransformApplicable(uri: string, hasAnimation?: boolean, allowWEBPTransform?: boolean): boolean; |
{ | ||
"name": "@wix/image-kit", | ||
"description": "Standard library for generating canonical URL's for optimally consuming images at Wix", | ||
"version": "1.41.0", | ||
"version": "1.42.0", | ||
"license": "MIT", | ||
@@ -67,3 +67,3 @@ "author": { | ||
}, | ||
"falconPackageHash": "64ecfa0264b776f9b48417fcfef09528bba08cbe43a71623f048e53b" | ||
"falconPackageHash": "aa7cbd0f19005d75a5fa2ab873a7a7a3393c7658e17df45e815a821a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
548730
5614