Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [image-resize]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Does any one know why the Image Detail page shows Image Size {0} , Image Resolution {0}^{0} px?

I've been doing work remotely on a huge Magento 2.3.5 project and have recently noticed whenever I'm creating a new page and am adding in my picture, I see the following: I'm wondering if this is ...
user avatar
0 votes
0 answers
23 views

Image resize issue while uploading product images from admin

I have my staging environment setup using docker and the magento setup is in production mode. Now, when I am trying to upload product images from admin, it's not resizing the images. And I cannot ...
user avatar
0 votes
3 answers
113 views

Running Magento bin commands without keeping in terminal

Is there a way to run these commands: php -dmemory_limit=12G bin/magento catalog:images:resize -a or php -dmemory_limit=12G bin/magento queue:consumer:start media.storage.catalog.image.resize without ...
user avatar
0 votes
0 answers
28 views

Magento 2 Catalog Image Resize Replace

I have a Magento 2 installation with CDN to serve images and do image transformations. With this kind of tool, Magento 2 resizer module have no sense. Are there a way to replace it or disable it in ...
user avatar
  • 19
0 votes
2 answers
30 views

magento 2.3.5 image cache being auto generated

Images inside cache folder are being auto generated I've truncate 3 specific folder that I know we don't need it after while checking again it has generated all over again when there hasn't been image ...
user avatar
0 votes
1 answer
311 views

Magento 2: Set an explicit width and height on image elements to reduce layout shifts and improve CLS?

When I run my site through https://developers.google.com/speed/pagespeed/insights/ it shows this error: I have already added image height and width in my view.xml and I also ran catalog:images:resize ...
user avatar
0 votes
0 answers
22 views

Resize custom Image Role

I've added a custom image role via product attribute and set the option to several products. But when I try to resize the output is a placeholder. Standard resizing is working properly: <?php $...
user avatar
0 votes
0 answers
80 views

Product Image Cache - Image Resizing Error

My server admin manually deleted product images cache which cause product images are not showing on product detail page. I am running this command to regenerate product images cache but it is stopped ...
user avatar
0 votes
1 answer
340 views

Image size via view.xml - possible to set up for category specifically and NOT globally only?

For Magento 2 a new feature is the view.xml, which allows me to configure image sizes globally. Image sizes on category, product, and basket pages can all be defined within this xml file by width, ...
user avatar
  • 63
0 votes
1 answer
58 views

How to resize product images without magento resize commands

We have magento setup with magento version 2.3.5-p2. Currently it is showing product broken product images. After running resize command bin/magento catalog:images:resize, product images are working ...
user avatar
0 votes
2 answers
357 views

How to change only a specific image size in magento 2?

I have changed the below section of my custom themes' view.xml <image id="product_page_main_image_default" type="image"> <width>1200</width> <height>...
user avatar
  • 2,577
2 votes
0 answers
62 views

Resize different images to square without white space

I am trying to force all the images in the product grid to square. The database serves images from ultra wide to ultra high ratios. i'm trying the following: $productImage = $imagehelper->init($...
user avatar
0 votes
0 answers
128 views

Magento 2 Change image size of product detail page

Need to change product image size 850 X 750 on the product detail page I made changes in file view.xml but width is taking randomly /app/design/frontend/vendor-name/theme-name/etc/view.xml ...
user avatar
0 votes
1 answer
266 views

Images are not shown on Magento 2.3.5 for the product page

I have an issue with the images. On the category pages images are shown for the products, but on the PDP page the img is missing. Instead i got the placeholder img. On the admin, the img is set to ...
user avatar
  • 3,535
3 votes
1 answer
73 views

Magento 2 image resize command error images are not same

Magento 2.3.4 run image resize command give error images are not same size domain/pub/media/catalog/product/m/e/megilbert.gif @ error/layer.c/OptimizeLayerFrames/1023
user avatar
0 votes
1 answer
362 views

magento 2 : resize image before upload on server

I want to upload images for custom module, so before upload image on media folder I want that resize image. How can I set resize image before upload on media folder ? Here is my code: public function ...
user avatar
1 vote
2 answers
776 views

Can you run a command to re-size only certain image types in Magento2?

The below command will re-size all images based on new specified dimensions: php bin/magento catalog:images:resize Is there a variable to add to run for a certain image type only? For example, ...
user avatar
  • 1,013
5 votes
2 answers
4k views

Wrong File Error Resize Image Magento 2.3

I just migrated from Magento 1.9.3.8 to Magento 2.3.4, then i copied the image from Magento 1.9 media to Magento 2 media, i noticed product images still not showing in my Magento 2 frontend, then i ...
user avatar
  • 167
1 vote
1 answer
130 views

Resize images of Magento 2 doesn't work correct

My product images have size is 600 x 600px. in file view.xml I have configured: <image id="category_page_grid" type="small_image"> <width>300</width> <height>366&...
user avatar
1 vote
1 answer
1k views

catalog:images:resize not working in CLI in 2.3.4

We just upgraded our dev site from 2.3.3 to 2.3.4 and I'm trying to run the bin/magento catalog:images:resize command in CLI in hopes that it will fix some image styling issues I'm trying to resolve (...
user avatar
  • 73
0 votes
1 answer
169 views

Magento 2.3.3. error in command catalog:images:resize

Some images are missing in products, and I have tried running bin/magento catalog:images:resize like this: php -d memory_limit=-1 -d max_execution_time=86400 bin/magento catalog:images:resize after ...
user avatar
  • 117
1 vote
0 answers
56 views

Image Resize Command Issue in Magento 2.2.X

I have Magento 2.2.x running website which is having more than 50K products and each product has up to 27 additional Images. When we run resize command (bin/magento catalog:images:resize), it takes ...
user avatar
1 vote
2 answers
2k views

Magento 2.3.3 can't resize images

I have upgraded my Magento from 2.2.7 to 2.3.3. After I upgrade it, I can't run command line: php -dmemory_limit=2G bin/magento catalog:images:resize It always shows bug: libpng warning: Interlace ...
user avatar
1 vote
2 answers
869 views

How to override or extend etc/view.xml file in custom module in Magento2?

I would like to override or extend some of gallery setting(view.xml) and catalog image size changes with my custom module. I have tried to override in app/code/<vendor>/<module>/etc/view....
user avatar
1 vote
3 answers
3k views

Magento 2.3.2 Remove white background created by Image resize

How can I remove the extra white background added to resized images from Magento? we have setup 700x700 image size for Product main image in view.xml. Image resize is working fine for the images ...
user avatar