@wix/image-kit
Advanced tools
Comparing version 1.50.0 to 1.51.0
@@ -56,2 +56,10 @@ "use strict"; | ||
}; | ||
if ((0, _imageServiceUtils.isWEBP)(src.id)) { | ||
transformsObj.focalPoint = { | ||
x: undefined, | ||
y: undefined | ||
}; | ||
src == null || delete src.crop; | ||
delete target.alignment; | ||
} | ||
if (canTransformImage) { | ||
@@ -58,0 +66,0 @@ (0, _imageTransformParts.setTransformParts)(transformsObj, src, target); |
@@ -1,2 +0,2 @@ | ||
import { isSEOBot, getFileType, getFileName, getFileExtension, getDevicePixelRatio, getUpscaleString, isImageTransformApplicable, } from '../helpers/imageServiceUtils'; | ||
import { isSEOBot, getFileType, getFileName, getFileExtension, getDevicePixelRatio, getUpscaleString, isImageTransformApplicable, isWEBP, } from '../helpers/imageServiceUtils'; | ||
import { isMobile } from '../helpers/browserFeatureSupport'; | ||
@@ -51,2 +51,7 @@ import { setTransformParts } from '../helpers/imageTransformParts'; | ||
}; | ||
if (isWEBP(src.id)) { | ||
transformsObj.focalPoint = { x: undefined, y: undefined }; | ||
src === null || src === void 0 ? true : delete src.crop; | ||
delete target.alignment; | ||
} | ||
if (canTransformImage) { | ||
@@ -53,0 +58,0 @@ setTransformParts(transformsObj, src, target); |
import { last } from './utils'; | ||
import { getPreferredImageQuality, roundToFixed } from './imageServiceUtils'; | ||
import { defaultUSM, fileType, imageFilters, transformTypes } from './imageServiceConstants'; | ||
import { defaultUSM, fileType, imageFilters, transformTypes, } from './imageServiceConstants'; | ||
/** | ||
@@ -5,0 +5,0 @@ * returns image filters part of the image transform uri |
{ | ||
"name": "@wix/image-kit", | ||
"description": "Standard library for generating canonical URL's for optimally consuming images at Wix", | ||
"version": "1.50.0", | ||
"version": "1.51.0", | ||
"license": "MIT", | ||
@@ -44,4 +44,4 @@ "author": { | ||
"@types/node": "^16.18.79", | ||
"@wix/jest-yoshi-preset": "^6.88.0", | ||
"@wix/yoshi-flow-library": "^6.88.0", | ||
"@wix/jest-yoshi-preset": "^6.88.1", | ||
"@wix/yoshi-flow-library": "^6.88.1", | ||
"husky": "~4.2.1", | ||
@@ -68,3 +68,3 @@ "jsdom": "^19.0.0", | ||
}, | ||
"falconPackageHash": "58d32dd2019e506e77a0a4bf0365d782aca81445c600e5153e447b38" | ||
"falconPackageHash": "02109c83940c66dd503f60284372ef371aab175e5bda1f6a0fdf0a4a" | ||
} |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
549143
5600