Questions tagged [image-resize]
The image-resize tag has no usage guidance.
24
questions
0
votes
0
answers
11
views
Product Image Thumbnail Size
The thumbnail image of some products are not uniform leading to weird size differences that throw them off. Here's an example to see it:
https://www.jadeed.store/categories/books/dictionaries.html
...
2
votes
0
answers
399
views
Images Resize bin/magento catalog:images:resize too slow
Magento 2.4.5 on 4GB RAM 2 CORE CLOUD SERVER
Hi
When running this command bin/magento catalog:images:resize
it has taken 2 days which is 48 hours to complete 50% so another 2 days are needed to ...
4
votes
3
answers
1k
views
imagecolorsforindex(): Argument #2 ($color) is out of range when running bin/magento catalog:images:resize
I recently upgraded from 2.4.4 to 2.4.5. While placing the images in pub/media folder and running bin/magento catalog:images:resize, I am getting the following error
imagecolorsforindex(): Argument #2 ...
0
votes
2
answers
1k
views
Magento 2.4 libpng warning: iCCP: known incorrect sRGB profile, Wrong file, file does not exist
I'm getting this error "libpng warning: iCCP: known incorrect sRGB profile"
when running php bin/magento catalog:image:resize.
Please is there anyone who could help me get this fixed? Thank ...
0
votes
3
answers
464
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 ...
0
votes
2
answers
129
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 ...
0
votes
1
answer
891
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 ...
0
votes
1
answer
1k
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, ...
0
votes
1
answer
141
views
How to resize product images without the magento resize commands
We have magento setup with magento version 2.3.5-p2. Currently it is showing broken product images. After running the resize command bin/magento catalog:images:resize, product images are working fine.
...
0
votes
2
answers
902
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>...
2
votes
0
answers
229
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($...
0
votes
0
answers
639
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
...
0
votes
1
answer
402
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 ...
3
votes
1
answer
227
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
0
votes
1
answer
761
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 ...
1
vote
2
answers
1k
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, ...
5
votes
3
answers
5k
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 ...
1
vote
1
answer
396
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&...
2
votes
3
answers
2k
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 (...
0
votes
1
answer
283
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 ...
1
vote
0
answers
87
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 ...
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 ...
1
vote
2
answers
1k
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....
1
vote
3
answers
4k
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 ...