0

I just batch imported main image files onto Magento. Is it best to prepare thumbnail size, small size pictures for each item for faster loading? I am not planning to use different images except for product detail pages, because they will be all the same.

But if it makes the difference in loading speed, I will resize the main pictures (800x800) to small size and upload them.They are mostly under 300KB.

Please advise.

  • Magento already does that automatically during its resize and caching, so this would be wheel reinvetion. – Fiasco Labs Aug 11 '14 at 17:21
  • Auto-resizing even when I bulk import all the pictures, and they all reside media\import folder? – Sword123 Aug 12 '14 at 1:21
  • 1
    Magento copies them out of the import folder and stores them in its file system, then upon first call for use, it resizes and stores the resized image in the image cache. You will probably need to clear the import folder after each successful import. – Fiasco Labs Aug 12 '14 at 4:57
  • Please add your comment as and anseer @FiascoLabs and please accept the answer Sword123 to mark this question as resolved. Thanks! :) – Anna Völkl Nov 29 '14 at 16:55
  • @AnnaVölkl - wanted originally to put a bit more information on original image storage location, program code that does the resize and store, and where the cache folder is located. – Fiasco Labs Nov 29 '14 at 17:57
1

Magento copies them out of the import folder and stores them at the imported file size in its file system which is found here:

media/catalog/product/*/*

/*/* represents the first two characters of the image file name so there will be an a directory for all the images starting with a and then another directory under that for the second character

Upon first call for use, Magento uses gd2 to resize and store the resized image in the image cache.

Storage is in subfolders under media/catalog/product/cache that use in the path, a hash identifier, sizing info and a /*/* pattern similar to full size storage

In the templates, the call to do this resize and store is usually something like:

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

You will probably need to clear the import folder after each successful import.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.