The Vue Storefront Essentials Course is now available! Learn More
Image normalizer

Image normalizer

The normalizeImage function maps SFCC Image into Unified SfImage.

Parameters

NameTypeDefault valueDescription
imageImageSFCC image

Extending

The SfImage is returned as a part of multiple models, as for example SfProduct, SfProductCatalogItem, and SfCart.

If you want to change the global attributes representation, you should override all root normalizers, so for example normalizeCart, normalizeProduct etc. Overriding the normalizeImage function will not change have an impact of the image normalization inside these functions, it is just an utils function which may be then used in writing other custom normalizers or methods.

Source

🔴 ../../node_modules/@vsf-enterprise/unified-api-sfcc/src/normalizers/image/image.ts | Snippet does not exist 🔴