You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No thumbnails are generated in a magento instance connecting to an existing database of products. Thus, we must generate them using the bin/magento catalog:images:resize command. However, since the image files are not there (they are on S3), the magento command fails with the following error:
"File '/var/www/html/pub/media/catalog/product/1/0/xxxx.jpg' does not exist.”
Steps to reproduce
Install magento and magento2-s3 using composer on a new server (in our case, a new ec2 instance) and connect it to an existing magento database with products and images.
Navigate to the catalog and see that thumbnails are not generated. You should see the magento placeholder instead.
If you navigate to the product page and click the image, you should see the image.
Thumbnail for the visited image should now have been generated
Now that we know we are talking about the same issue, try to generate all the thumbnails using bin/magento catalog:images:resize on the new server.
The command should fail with "File '/var/www/html/pub/media/catalog/product/1/0/xxxx.jpg' does not exist.”.
Expected results
bin/magento catalog:images:resize should generate all thumbnails.
Note
Most of our products are imported via a script that does not generate thumbnails. That's why we need bin/magento catalog:images:resize to work.
Any fast workaround to see our thumbnails on every M2 instances would be appreciated.
The text was updated successfully, but these errors were encountered:
This issue started with Magento 2.3 witch uses gd2 and and ImageMagick to process images.
Unfortunately adapters for this libraries are not capable to use any other media storage than "File System".
Description
No thumbnails are generated in a magento instance connecting to an existing database of products. Thus, we must generate them using the
bin/magento catalog:images:resize
command. However, since the image files are not there (they are on S3), the magento command fails with the following error:Steps to reproduce
bin/magento catalog:images:resize
on the new server."File '/var/www/html/pub/media/catalog/product/1/0/xxxx.jpg' does not exist.”
.Expected results
bin/magento catalog:images:resize
should generate all thumbnails.Note
Most of our products are imported via a script that does not generate thumbnails. That's why we need
bin/magento catalog:images:resize
to work.Any fast workaround to see our thumbnails on every M2 instances would be appreciated.
The text was updated successfully, but these errors were encountered: