I would be very grateful, as a complete novice to Magento 2, if somebody could tell me if and where the phtml? file is to reduce the image upload compression as our images appear blurry / pixelated once uploaded and saved.
Any response would be greatly appreciated.
Here is a small portion of options, there are many more:
<image id="bundled_product_customization_page" type="thumbnail">
<image id="cart_cross_sell_products" type="thumbnail">
<image id="cart_page_product_thumbnail" type="small_image">
<image id="category_page_grid" type="small_image">
<image id="category_page_list" type="small_image">
Thanks Liam that's very helpful. Do you know if there is default compression percentage for all uploaded images as there was with Magento 1? It seems that every image we upload is compressed at least by 25%.
I'm curious about this too. My store has a unique product that requires high quality images because they have a ton of detail. After some research it seems in Magento 1 you did it like this.
echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->resize(42, 50)->setQuality(95);
Right now Magento 2 uses pretty heavy compression though it has pretty good results. I can upload an 800kb JPEG to /media/import/ and it will get reduced to under 200kb. While it doesn't look bad I'd rather be somewhere in the middle of those two numbers for nice speed/quality ratio.
I can't seem to figure out what phtml file and where to add this "->setQuality(95)" in /vendor/magento/module-catalog/view/frontend/templates/product/.
This may help:
I can't believe that after ALL THESE YEARS of too aggressive and harsh image compression from M1, this continues with M2. Unacceptable.