Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How do Product Image Paths work? Strange thing happening

    General Discussion
    2
    2
    391
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bagdev last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • V
        vishalK last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post