Product images and assets¶
Product images and assets can be taken from the content model (if this data provider is used). External images can also be stored in the file system.
If images come from the file system, they have to be stored in the following folders:
- Product images in
web/var/assets/product_images
- Product group images
web/var/assets/product_group_images
To avoid too many files in one directory, subfolders are used.
For example, images for a product with SKU D4241
are stored in the following file system folders:
1 2 |
|
When using a cluster, this folder has to be mounted as an NFS shared or cluster FS file system.
These folders are used as source folders for all assets.
Images are resized automatically when they are used for the first time.
The different image variations are stored in web/var/ecommerce/storage/<image_class>/<subfolders>
:
1 2 3 4 5 6 7 8 |
|
Image paths are cached in order to avoid accessing the file system in production mode. The cache uses stash.
Remove stash cache for images and one SKU¶
1 2 3 4 5 6 7 8 |
|