i have found a simple solution you can try that
copy all your magento 2 pub/media data in vue-storefront-api/var/magento-folder/pub/media
create a symlink if you are working on localhost
Seems that we hit the limit of 2147483647 for INT. So we ALTER the table catalog_product_entity_varchar with the following query;
ALTER TABLE catalog_product_entity_varchar MODIFY COLUMN value_id INT UNSIGNED AUTO_INCREMENT;
Some more info, seems to be a Magento 2 bug;
From the above list, these are the magento default folder which you need to take.
All other are may be third party extension use or magento use.
I found that images in /cache/folder is auto generated on demand if they aren't cached and get request the re-generated from the original if exists and according to the sizes for specific settings, but it can be confusing as to which cache folder is for which sizes, E.G: small, thumbnail, base etc...
Where could I find this dynamic created folder, is in DB ...
I think these are the possibilities:
Possible reason 1: You have wrong permissions on your /media/ folder
Possible reason 2: Media folder is owned by another user.
Possible reason 3: There’s an issue with the .htaccess file in your /media/ folder
Possible reason 4: Magento cannot resize images due low PHP memory limit.
Possible reason 5: The GD library is ...
Expand this error and check it. You need to set height & width attribute with it's value in <img> tag.
For ex :
<img class="product-image-photo" src="http://example.com/pub/media/catalog/product/cache/dfcdafe7c22a7c86b2c2f8e32b4bf198/w/b/wb04-blue-0.jpg" width="240" height="300" alt="Push It Messenger ...
You shouldn't call objectmanager.
You should extend the Block class in order to receive the productrepository on it's constructor and get the sku that way :)
Here is how to do it. On you di.xml (etc/di.xml) place the following code
<preference for="Magento\Catalog\Block\Product\Image" type="vendor\module\Preferences\Product\Image&...
Since this seems to be the top search results and none of the answers really worked for me, here's a simple helper class to get an product's thumbnail image from the cache:
use Magento\Catalog\Helper\Image as ImageHelper;
class Product extends \Magento\Framework\App\Helper\...