The `image-client-api` package, currently at version 1.4060.0, is a specialized JavaScript library developed by Wix for generating highly optimized image URLs. Its core functionality revolves around creating canonical URLs that ensure pixel-perfect image display, minimal download latency, maximum performance, and high quality across a variety of devices and network conditions. It dynamically incorporates advanced features such as optimization for Retina displays, automatic WebP image fetching where supported by the browser, intelligent image sharpening, and machine learning-driven image upscaling. While the versioning (e.g., 1.4060.0) suggests continuous development and a rapid internal release cadence, specific public release cycles or traditional semantic versioning practices are not explicitly detailed, as it primarily serves as an internal Wix library. Its key differentiators are its deep integration with Wix's proprietary image infrastructure, leveraging advanced optimization algorithms and a streamlined API designed for consistent and performant image delivery within the Wix ecosystem.
npm install image-client-apiVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to import the `image-client-api` and use `getScaleToFillImageUrl` to generate an optimized image URL for a specified source, target dimensions, and quality settings. It also shows how to apply this URL to an `<img>` tag.
Ensure you are developing within the Wix ecosystem or understand that external usage might not be officially supported or fully functional.
For ES Modules, use `import imageSDK from 'image-client-api';`. For CommonJS, use `const imageSDK = require('image-client-api');`. If loaded via a script tag, access via `window.imageClientSDK`.Refer to internal Wix documentation or changelogs for specific version change details, as public semver expectations may not apply.
Verify your import statement: `import imageSDK from 'image-client-api';` for ESM, `const imageSDK = require('image-client-api');` for CJS, or ensure the global script has loaded before accessing `window.imageClientSDK`.Ensure you are importing the default export: `import imageSDK from 'image-client-api';` or `const imageSDK = require('image-client-api');`. Avoid named imports for the top-level object. Check your bundler configuration if issues persist.No dependency data recorded yet.