Small, medium, large versions of product images--I've gotten mixed messages
Ok I know that Zen Cart supports sm/med/lrg image sizes for products, but I've seen differing explanations of how to do it.
One is to use different folders (medium, large, and I guess the product folder is where the small one goes? Let me know).
One is to use _MED and _LRG suffixes to the filenames.
I tried the different folders, though I had also added the suffixes... anyway it didn't work. Neither did putting all the files with suffixes in the same folder.
Am I supposed to put the images with the same filenames (no suffixes) in the different folders by size?
What is the final, real answer here? I'm confused :(
Thanks in advance for your help!
(Oh, and does the same apply for the additional product images? (_01, _02, etc)?
Re: Small, medium, large versions of product images--I've gotten mixed messages
Your \images directory is the starting point for your small images, \images\medium is the starting point for your medium images and \images\large is the starting point for your large images. The _MED and _LRG suffixes are the default values; you can change them in your admin's Configuration->Images.
Let's say that you have a product with an image file named my_picture.jpg. That would result in you having the following files:
Code:
\images\my_picture.jpg
\images\medium\my_picture_MED.jpg
\images\large\my_picture_LRG.jpg
If you wanted to have another image for that product, you'd pick another suffix, like _00. Then you'd also have the following files:
Code:
\images\my_picture_00.jpg
\images\medium\my_picture_00_MED.jpg
\images\large\my_picture_00_LRG.jpg
Re: Small, medium, large versions of product images--I've gotten mixed messages
Ok, but when I upload images via the products editing page it puts them in the TG_products folder--is that a problem? Should I be having them all in the base images folder?
Re: Small, medium, large versions of product images--I've gotten mixed messages
That defaults to starting with the base /images/ folder. but you can choose any of the subfolders of /images/ to put the file in when you upload it through the product page. (If you have used other than the regular default once, you should pay close attention to what folder you are using the next time, as it may default to the previous subfolder instead of /images/.)
You do need to be sure that medium images go in the /medium/ folder and large images in the /large/ folder.
Quote:
TG_products folder
Is this a custom subfolder you created or use for certain products? Unless you want/need separate subfolders for different groups of product images, you would be best off just using the base /images/. If you do use custom subfolders, they must be organized like
/images/TG_products/
/images/medium/TG_products/
/images/large/TG_products/
Re: Small, medium, large versions of product images--I've gotten mixed messages
Yes, it is a custom folder I created to keep the product images separated out from the other images I'm using on the site. I'll try that directory structure and see if it works. thanks!
Re: Small, medium, large versions of product images--I've gotten mixed messages
Since the principal function of the /images/ folder is product images, I would suggest you use the base /images/ for product images and make a subfolder for other images.
If your other images are for use in your template (like fixed images, box corners or backgrounds), they really belong in /includes/templates/your_template/images/.
Re: Small, medium, large versions of product images--I've gotten mixed messages
Most of the other images are for the informational pages that I have, as illustrations of various things. This site manufactures re-engineered, upgrade parts for a popular piece of exercise equipment, and we have pictures of the old (original) parts, the equipment itself, what kind of damage to look for, etc.
Re: Small, medium, large versions of product images--I've gotten mixed messages
Then I would advise using a folder like /images/info/ for these images, and let the product images use the base /images/ and /images/medium/ and /images/large/ folders unencumbered.
Re: Small, medium, large versions of product images--I've gotten mixed messages
Hi. I have bit different problem. Not all additional images show up on the product pages.
I've set blank suffixes for medium and large images, and store large images only allowing system to shrink them as necessary.
So, now I've uploaded product image ob-oks5-18-1.jpg to /images/mcl/ folder using product edit page in admin panel, and
ob-oks5-18-1_all.jpg
ob-oks5-18-1_front.jpg
ob-oks5-18-1_rear.jpg
ob-oks5-18-1_side.jpg
into the same folder using ftp.
When I visit the product page http://rafcamera.com/movie-cameras/l...lock-oks5-18-1, I can see 4 images only instead of 5. Missing one is ob-oks5-18-1_front.jpg
Similar thing are with other products.
I've tried to rename problem image. _front2 doesn't show; _fr or _fron so show. I supposed that problem may be due to length of the name, but in the other product _side shows, _rear (same length) - doesn't. I'm frustrated...
Any ideas why this may happen?
Thanks
Re: Small, medium, large versions of product images--I've gotten mixed messages
I thought it only looked for _01, _02, _03 etc at the end of filenames. How about renaming them
ob-oks5-18-all_1.jpg
ob-oks5-18-all_2.jpg
ob-oks5-18-all_3.jpg
ob-oks5-18-all_4.jpg
(assuming your main product image is ob-oks5-18.jpg)
True, you won't know by the filename which is front/rear/side, etc, but the software will know what to do with them.