3 votes
Accepted

Running Magento bin commands without keeping in terminal

Simple solution – append & to the command for it to detach from the terminal and run in the background. You'd have to monitor its completion using process monitoring tools like ps and may want to ...
user avatar
3 votes
Accepted

Deleted the Product image, but still the image exists in the product grid in magento 2

Magento stores information about product image in 2 places In Gallery the list of available images for product with properties In catalog_product_entity_varchar the value selected for image type ...
user avatar
2 votes
Accepted

how to delete media image after we delete product in magento2?

There are some extensions available on a marketplace like an Image Cleaner Here you can Find All unused Images for a Product and can be deleted easily if you want to create one you can compare all the ...
user avatar
  • 2,089
1 vote

Magento2 Product Gallery Images

You can do it Magento OOTB functionality https://docs.magento.com/user-guide/catalog/product-video.html
user avatar
1 vote

Magento 2.4.3-p1 i can't upload images, The file was not uploaded

After trying it in several ways without success, I found a possible solution, although I don't know if it is a definitive solution. I had to modify the php.ini file for the version of php I'm using. ...
user avatar
1 vote

Remove all Product images on one click of button in admin

Create Custom Module First of all get all images of products then use below Dependency Injection Magento\Catalog\Model\Product\Gallery\Processor Here there is method RemoveImage where you need ...
user avatar
1 vote

Running Magento bin commands without keeping in terminal

Your best option is to make use of the Linux tool "screen". You might need to install it though. It might not be part of the default Linux installation. To start a new screen session, simply ...
user avatar
1 vote

Running Magento bin commands without keeping in terminal

It looks like I might be able to use nohup to do this: https://linuxhint.com/how_to_use_nohup_linux/ Something like this: nohup bash -c 'php -dmemory_limit=10G bin/magento catalog:images:resize -a &...
user avatar
1 vote

How to get cache images path

If you want to get the cache path (hash) of the small_image on PLP then you can get the following way. Need to get the size of the small_image from view.xml. Need to generate the directory hash. ...
user avatar
1 vote

How does Magento 2 process & compress product images

In recent (at least 2.4.3) versions of Magento the quality is a configurations setting under: Stores > Configurations > Advanced > System > Image upload configuration: Quality (Jpeg ...
user avatar
  • 11
1 vote

All product images missing from admin but show in DB and front end

I was having the same issue after migrating from Magento 1 to OpenMage. In Magento 1, images are showing without any issues, but when switching to OpenMage with PHP8, the media gallery was not loading....
user avatar
  • 140
1 vote

How to change div fotorama__stage height on product view page

Place this script in gallery.phtml file just after your code in <script> require(['jquery', 'mage/gallery/gallery'], function($, gallery){ $(document).on('click', function() { if (!$(...
user avatar
1 vote

How to delete unused images from my media folder?

The easier method that I found is installing the module below and running these commands. composer require ekouk/imagecleaner "dev-master" bin/magento setup:upgrade bin/magento setup:di:...
user avatar
1 vote

How to get product image and URL in Magento 2?

To get the cached image url: Construct /** * @var \Magento\Catalog\Helper\Image */ private $imageHelper; /** * @var \Magento\Store\Model\App\Emulation */ protected $appEmulation; /** * ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible