Indexing
...
Products
Images
3 min
when indexing product images we can set a different image to be indexed to klevu from the base image klevu image is added to products as a new image type alongside the default base , small and thumbnail this takes advantage of the magento image processing while allowing merchants to select which image to send to klevu if klevu image is not set then the base image will be sent if the base image is not set then the placeholder image will be sent setting klevu image and hover image select this as you would select which image to use as the thumbnail for the product 1\ visit the product images and videos section and select the image and hover image to send to klevu 2\ select the role for the image to include klevu image or klevu hover image image size the image size sent to klevu can be configured in stores > configuration > klevu > data sync under the indexing there are 2 settings product image width product image height image cache folder and image regeneration the cached image path is resolved by pathproviderinterface get(), passing the built image params and file path this follows magento's standard convention pub/media/catalog/product/cache/{hash}/{image path} the {hash} is derived from the imageparams array (width, height, type, quality, etc ) built by paramsbuilder the image is generated on demand and then served from cache on subsequent requests it is only regenerated in the following cases if a cache doesn't exist yet, first time the image path + params combination is encountered during indexing if a manual flush was done from magento admin if cli command run bin/magento catalog\ images\ resize if cache directory cleared, deleting pub/media/catalog/product/cache/ directly
