New answers tagged

0

Related issue, terrible log message it must say why. https://github.com/magento/magento2/issues/26053


0

For me it finally worked based on this article: https://www.mageplaza.com/devdocs/add-images-to-product-programmatically-magento-2.html $gallery = $_product->getMediaGalleryImages(); if (count($gallery) > 0) { foreach($gallery as $image){ $this->productGallery->deleteGallery($image->getValueId()); } $...


1

just remove the css of background color http://prntscr.com/tp1s0v or you can assign background color to none


0

I figured it out, the code that works as follows. Added alt="<?php echo $product->getName(); ?> <?php $product = $block->getProduct(); $imageHelper = $this->helper('Magento\Catalog\Helper\Image'); if (!$product->getImage() || $product->getImage() == 'no_selection') { $image = $imageHelper->getDefaultPlaceholderUrl('image'...


0

Now the max image size can be set at Stores > Settings > Configuration > Advanced > System > Images Upload Configuration see https://docs.magento.com/user-guide/catalog/product-image-resizing.html


0

You can Buy Extension available on MP that can clean your unused Catalog Images as well as Duplicate entries You can Clean theme manually or using CRON


0

Not sure how, but on the store level, the images were hidden, so updating them to visible by this query: update catalog_product_entity_media_gallery_value set disabled = 0 where disabled = 1; fixed my issue with the images


0

In magento 2.3.4 i get this like this. You can get all images of the product by gallery ReadHandler <?php namespace Vendor\Module\Controller\Index; class DownloadPictures extends \Magento\Framework\App\Action\Action { protected $_pageFactory; public function __construct( \Magento\Framework\App\Action\...


0

Well, it is also possible using a third-party solution called Skyvia - their free plan should be enough for your task. Skyvia connects via Magento API and imports product images via CSV as paths to them. Here's the link if you're interested.


0

Just excute the sql command in your database SELECT * FROM catalog_product_entity_varchar WHERE value LIKE 'no_selection' For more info check this out https://support.magento.com/hc/en-us/articles/115002446014-Product-images-do-not-display-despite-Product-Edit-image-roles-


0

put your images here at pub\media\wysiwyg and then run this commands php bin/magento catalog:image:resize


Top 50 recent answers are included