- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2019
01:43 AM
08-31-2019
01:43 AM
calalog:image:resize not all images are resizing
Hello guys,
My magento store (2.3.1) has over 800,000 products. When I try to tun bin/magento image:catalog:resize it does resize only for 206905.
Any solution for this?
Labels:
7 REPLIES 7
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2019
02:06 AM
08-31-2019
02:06 AM
Re: calalog:image:resize not all images are resizing
Hi @ChathuraMK,
calalog:image:resize command resize the images which are associated with the products. There may be rest images are not associated with any product.
Because when you delete any product then product image doesn't delete from file system by default.
You can check associated images count from catalog_product_entity_media_gallery table.
select * from catalog_product_entity_media_gallery;
I hope it will help you!
calalog:image:resize command resize the images which are associated with the products. There may be rest images are not associated with any product.
Because when you delete any product then product image doesn't delete from file system by default.
You can check associated images count from catalog_product_entity_media_gallery table.
select * from catalog_product_entity_media_gallery;
I hope it will help you!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2019
02:24 AM
08-31-2019
02:24 AM
Re: calalog:image:resize not all images are resizing
Did you check the images count in database table?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2019
12:04 AM
09-01-2019
12:04 AM
Re: calalog:image:resize not all images are resizing
Hi @Vimal Kumar ,
thank you for your reply. There are 505652 records in catalog_product_entity_media_gallery table.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2019
12:13 AM
09-01-2019
12:13 AM
Re: calalog:image:resize not all images are resizing
@ChathuraMK,
It means command is showing correct results.
Basically it pick the images:
1. If you imported products which might have variable sized images
2. If images were resized or deleted manually from cache
It means command is showing correct results.
Basically it pick the images:
1. If you imported products which might have variable sized images
2. If images were resized or deleted manually from cache
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2019
12:17 AM
09-01-2019
12:17 AM
Re: calalog:image:resize not all images are resizing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2019
12:42 AM
09-01-2019
12:42 AM
Re: calalog:image:resize not all images are resizing
@chathuramk,
There may be many resons for this. As I mentioned in my previous post.
May be duplicate as well.
Check once real records count with below mysql query.
SELECT * FROM `catalog_product_entity_media_gallery_value_to_entity`
There may be some disabled products as well.
Try once records count with above query, then we can check real records as well after filter with same query for enabled products.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2019
12:48 AM
09-01-2019
12:48 AM
Re: calalog:image:resize not all images are resizing
For enabled product query count for gallery :
SELECT count(*) FROM `catalog_product_entity_media_gallery_value_to_entity` where entity_id not in( SELECT entity_id FROM `catalog_product_entity_int` WHERE attribute_id = ( SELECT attribute_id FROM `eav_attribute` WHERE `attribute_code` LIKE 'status' ) AND `catalog_product_entity_int`.value = 2 )