DrByte:
Zen Cart handles 3 sizes of images:
Small images / thumbnails ... are used in product/category listings and for the additional-image thumbnails on the product pages.
The Medium Image (only one) is used as the main image of the product on the product page. If none is specified, the thumbnail image is used.
The Large Images are used only when clicking on a smaller image that says Click for Larger Image.
If you wish to change the size of the additional images shown on the product page to use the Medium Images and display in Medium Size, edit your /includes/modules/additional_images.php and save it as /includes/modules/YOUR_TEMPLATE/additional_images.php
around line 88 you have these 2 lines:
DrByte:
This seems to work
perfectly : The additional photo is the correct one, and it is displayed as a MED-sized image.
/IMAGES/image.jpg
/IMAGES/image_01.jpg
As I understand it, with IMAGE.JPG and IMAGE_01 as the sole image files,
ZenCart sources the smaller thumbnail (category listing) images from the larger IMAGE file. I know this is bad practice, as it makes the page load slower because the smaller images are still hi-res.
So I tried adding the _MED files at the _MED resolution, as well as reducing the IMAGE files to my small (catogory listing) image size..............
/IMAGES/image.jpg
/IMAGES/MED/image_MED.jpg
/IMAGES/MEDimage_01_MED.jpg
when I add Image_01_MED file to the /IMAGES/MEDIUM/ dir, and remove the IMAGE_01.JPG from the /IMAGES/ dir, *NO* additional photos will display. SO I assume I *NEED* the base IMAGE_xx file in the /IMAGES/ dir if I want *ANY* associated MED or LRG files to be recognized. So ZC will only recognize LRG and MED files that have a base file in the /IMAGES/ dir???
Next....
/IMAGES/image.jpg
/IMAGES/image_01.jpg
/IMAGES/MED/image_01_MED.jpg
If I remove the Image_01_MED.JPG file from the /IMAGES/MEDIUM/ dir
I end up with *BOTH* photos being the correct ones, but *BOTH* display in the thumbnail-sized format. So that isn;t good........
/IMAGES/image.jpg
/IMAGES/image_01.jpg
/IMAGES/MED/image_MED.jpg
If I remove the Image_01_MED.JPG file from the /IMAGES/MEDIUM/ dir, but leave IMAGE_01.JPG file in /IMAGES/ and IMAGE_01_MED file in /IMAGES/MEDIUM/, both the product photo AND the additional photo will display in medium size...
*BOTH* will be the IMAGE_MED.JPG file!!
Without the additional _MED file, I thought that Zen Cart would be able to display the small images as additional images if it doesn't find any _MED files associated with that additional image file. But when the base image has a _MED file associated with it, and there's no _MED file for the additional image, it seems to not work.
How does Zen Cart find the images? What are the steps involved?
when I put in *ALL* the necessary files:
/IMAGES/image.jpg
/IMAGES/image_01.jpg
/IMAGES/MED/image_MED.jpg
/IMAGES/MED/image_01_MED.jpg
what happens is *VERY ODD*!!!!!!!!!!
I would expect this combination to work, just as using SOLELY the base images worked, but it doesn't!
What I get is an additional photo displayed as a MED-sized image, but...
It is, again, just the IMAGE_MED file and *NOT* the IMAGE_01_MED file.
Will this work? Or should I just save the IMAGE.JPG file at the resolution I have my MED files set at, and let ZC resize, keeping the LRG files so that the IMAGE file in /IMAGES/ isn't *TOO* big?? I need a little help understanding why this is happening.
Thank you.
Donn