How do Product Image Paths work? Strange thing happening
-
Hi All,
If I dump the getProductBaseImage() method, I get a URL structure like so:
http://myshop7.custom.test/cache/small/product/1243/4CXU8XSsrjmvSv08Kpjbwn1IPm3h9fLFQu0kU0AE.png
But on my device, that file is actually located at storage\app\public\product\1243\4CXU8XSsrjmvSv08Kpjbwn1IPm3h9fLFQu0kU0AE.png
Why are these directories different, and why does the 'cache' directory seemingly not exist on my local? However, if I access http://myshop7.custom.test/cache/small/product/1243/4CXU8XSsrjmvSv08Kpjbwn1IPm3h9fLFQu0kU0AE.png - I can view the image.
-
Hi @bagdev
Original product image is saved inside storage folder but to make product page loading time fast we use dynamic imagecache technique.
So by adding cache/small/ in url it load image after transforming image into small template.Thanks