سؤال

Where can I define the size of the product image cache?

Our product-image in product image cache now automatically will be scaled down from 1900 pixels to 600 pixels. But I want to keep the original size on product page, because details are important for us.

هل كانت مفيدة؟

المحلول

By default Magento shouldn't resize the zoomed in image on the product detail page, so I'm guessing you are using a default theme so look for a file that replaces the standard Magento app/design/frontend/base/default/template/catalog/product/view/media.phtml file.

There you should have some code that looks like this:

$this->helper('catalog/image')->init($_product, 'image')->resize(600);

Just remove the resize method

نصائح أخرى

Check your product image size in directory media/catalog/product/firstcharacterofimagename/secondcharacterofimagename/ for file imagename.

Then compare the size with the image showing in frontend, if both are not same then check your theme/template/catalog/product/view/media.phtml file for resize() function whether any resizing is applied or not.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top