Zen Cart Logo
Forums / General Questions / Question about the differnet image sizes in filenames SMALL MED etc

Question about the differnet image sizes in filenames SMALL MED etc

Views: 1,260

Results 1 to 11 of 11
10 Jul 2012, 6:14 AM
#1
creamcrackers avatar

creamcrackers

Zen Follower

Join Date:
May 2009
Posts:
228
Plugin Contributions:
1

Question about the differnet image sizes in filenames SMALL MED etc

Hi
I have a site which ive just put all the images in as the largest image by default which is 300X300

So this image is shrunk by ZC to show the small and medium images.

I didnt know, when setting up ZC that you needed different size images.

So now - ive decided i want to make smaller images so the med and small images
I dont want to change all the image names in ZC admin /product

So am i right in understanding that I need to make smaller images than the default ones ive already got

So if i had mypicture.jpg as the main large one and thats whats set in the product

I just need to make mypicture_small.jpg and mypicture_med.jpg and it will show those for the smaller images?

Or am i doing this backwards and the image stated in the product in ZC should be the SMALL image and i need to make larger ones. In which case i need to change every product image referenced for each product in ZC?

Hope that makes sense?

10 Jul 2012, 6:42 AM
#2
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: Question about the differnet image sizes in filenames SMALL MED etc

Three different sizes for images - small, medium, large - is the default system. But I don't know that anyone uses it any more with Image Handler on the scene.

Here is the link for Image Handler 4 for Zencart 1.5:

http://www.zen-cart.com/showthread.php?194740-Image-Handler-4-%28for-v1-5-x%29-Support-Thread

Link should have another link to the download.

All you need do is upload your largest image, and then enter the settings for the small and medium images in admin. In our case, our large image is usually 800px high. Image Handler then takes care of the small and medium sizing.

Also, in my experience it really doesn't work to upload a small image expecting it to be resized larger. Going with the large image and resizing down works best. And be reasonable on the size of your large image.

10 Jul 2012, 6:49 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Question about the differnet image sizes in filenames SMALL MED etc

SPH:

But I don't know that anyone uses it any more with Image Handler on the scene.

We have always used IH, and as SPH says, you don't need to bother about Small Med Lrg anymore.

Just load up OPTIMALLY-COMPRESSED jpg's of your product(s), measuring:

Landscape: 850px wide by 750px deep
Portrait: 650px wide by 750px deep

... into the general IMAGES folder.

13 Jul 2012, 6:47 AM
#4
creamcrackers avatar

creamcrackers

Zen Follower

Join Date:
May 2009
Posts:
228
Plugin Contributions:
1

Re: Question about the differnet image sizes in filenames SMALL MED etc

Thanks but im not sure if i want to put another plugin on my site since it can be problem when upgrading ZC

If the picture i already put into ZC are the LARGE ones.. how do i then make the small and med ones? I think my sites set up wrong and i should have put the small thumbs in by default?

Thanks

13 Jul 2012, 2:40 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Question about the differnet image sizes in filenames SMALL MED etc

Presuming you still have all of your images on your pc, rename them all with the _LRG suffix, make copies at the small and medium sizes with no suffix and with the _MED suffix, and then upload (by FTP) all of them to the correct folders (/images/, /images/medium/, /images/large/). The new small image files will overwrite the old large files with the same names, so you won't need to change anything in admin.

If you have a large number of images, you may want to consider IH, as it will eliminate the need to do this, now and for the future. If your image needs are simple, you can avoid the added mod complex ity by doing it yourself.

16 Jul 2012, 3:47 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Question about the differnet image sizes in filenames SMALL MED etc

And there's only ONE "medium" image that's ever used for a product: the one that matches the thumbnail specified as the main product image, but following the _MED naming rule and placed in the medium folder, of course.

16 Jul 2012, 4:06 AM
#7
creamcrackers avatar

creamcrackers

Zen Follower

Join Date:
May 2009
Posts:
228
Plugin Contributions:
1

Re: Question about the differnet image sizes in filenames SMALL MED etc

DrByte:

And there's only ONE "medium" image that's ever used for a product: the one that matches the thumbnail specified as the main product image, but following the _MED naming rule and placed in the medium folder, of course.

I still dont understand this :(

So the image ive put in ZC admin should be the medium one.. but ive put the large one.

So i should download all my images from images folder

Then resize them all to the medium size and upload with same filename. So thats my medium images taken care of.

The large images i have on my computer i should change name sto _LARGE and put them in /large folder

and then also make _SMALL images and put them in a small folder?

16 Jul 2012, 4:33 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Question about the differnet image sizes in filenames SMALL MED etc

Let me re-state it all over again:

If you give your product an image whose filename is "abc.jpg" then the following applies:

MAIN (thumbnail) image: /images/abc.jpg
MEDIUM image: /images/medium/abc_MED.jpg ..... and since there is ONLY ever ONE medium image, this is the ONLY medium image you need for that product
LARGE image: /images/large/abc_LRG.jpg

If the following example filenames exist, they will be treated as additional images (thumbnails and large, respectively) for that product:
/images/abc1.jpg /images/large/abc1_LRG.jpg
/images/abc003.jpg /images/large/abc003_LRG.jpg
/images/abc_4.jpg /images/large/abc_4_LRG.jpg

16 Jul 2012, 7:13 AM
#9
creamcrackers avatar

creamcrackers

Zen Follower

Join Date:
May 2009
Posts:
228
Plugin Contributions:
1

Re: Question about the differnet image sizes in filenames SMALL MED etc

DrByte:

Let me re-state it all over again:

If you give your product an image whose filename is "abc.jpg" then the following applies:

MAIN (thumbnail) image: /images/abc.jpg
MEDIUM image: /images/medium/abc_MED.jpg ..... and since there is ONLY ever ONE medium image, this is the ONLY medium image you need for that product
LARGE image: /images/large/abc_LRG.jpg

If the following example filenames exist, they will be treated as additional images (thumbnails and large, respectively) for that product:
/images/abc1.jpg /images/large/abc1_LRG.jpg
/images/abc003.jpg /images/large/abc003_LRG.jpg
/images/abc_4.jpg /images/large/abc_4_LRG.jpg

Ah ok thanks

So with your example

MAIN (thumbnail) image: /images/abc.jpg

The image /images/abc.jpg i currently have is the LARGE image. Ive got the large image in /images and ive already got 450 products set up like that so what should i do?

16 Jul 2012, 8:07 AM
#10
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Question about the differnet image sizes in filenames SMALL MED etc

creamcrackers:

... so what should i do?

Install Image Handler 4.

The time you've spent (a week) grappling with this would not have happened if you installed IH 4.

With IH, you just load ONE image - quite a large one - in the main images folder.

IH takes care of everything else...

16 Jul 2012, 2:22 PM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Question about the differnet image sizes in filenames SMALL MED etc

You didn't say before how many images you had. With 450 images and more to go, installing IH is the only sensible way to go.