Zen Cart Logo
Forums / General Questions / Images - slow page loads

Images - slow page loads

Views: 1,473

Results 1 to 7 of 7
10 Oct 2012, 6:28 AM
#1
saftek avatar

saftek

New Zenner

Join Date:
Apr 2012
Posts:
27
Plugin Contributions:
0

Images - slow page loads

We have over 20,000 product images. Initially, we loaded 640x480px images into the images directory and let zc do the work adjusting. All page load speeds EXCEPT the product detail page were acceptable. But product detail pages would sometimes reach 1 minute or time out.

We built medium (250px) and large (400px) images and loaded them into the large and medium directories... page load speeds remained the same. We replaced the 640px images with 400 px images... still very slow product detail page loads... 30+ sec.

We deleted all the images from the main images directory, kept the large and medium images in their folders. Now page loads speeds for product pages are reasonable. But, of course, there are no thumbnails for the products.

Do I need to make small images and load them into the -images- directory? Will I still have problems due to the number of images? Should I split the images into categories to reduce the single folder size?

We have two other smaller stores which run satisfactorily with about 1000 products each.

10 Oct 2012, 6:35 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Images - slow page loads

saftek:

Should I split the images into categories to reduce the single folder size?
That is probably best, since it sounds like your performance problem is simply the load caused by too many files in one folder.

/images/**a/**apple.jpg
/images/**b/**banana.jpg
/images/medium/**a/**apple_MED.jpg
/images/medium/**b/**banana_MED.jpg
/images/large/**a/**apple_LRG.jpg
/images/large/**b/**banana_LRG.jpg

11 Oct 2012, 1:08 AM
#3
saftek avatar

saftek

New Zenner

Join Date:
Apr 2012
Posts:
27
Plugin Contributions:
0

Re: Images - slow page loads

DrByte:

That is probably best, since it sounds like your performance problem is simply the load caused by too many files in one folder.

/images/**a/**apple.jpg
/images/**b/**banana.jpg
/images/medium/**a/**apple_MED.jpg
/images/medium/**b/**banana_MED.jpg
/images/large/**a/**apple_LRG.jpg
/images/large/**b/**banana_LRG.jpg

I don't understand which size image to place in the /images folder... for example suppose I have 640px, 400px, 250px and 150px...

Thanks.

11 Oct 2012, 1:20 AM
#4
joejoejoe avatar

joejoejoe

Zen Follower

Join Date:
Oct 2011
Location:
AZ
Posts:
383
Plugin Contributions:
0

Re: Images - slow page loads

I use:
smallest (thumbnails) in the /images
images/medium for the mid-sized image (the "small" image that shows up on a product page)
images/large for the full-sized, biggest pic you've got of the product (shows up when someone clicks on the mid-sized image).

When I add a product I link the smallest via the product add-on page in admin, and then ftp the medium and large into their respective folders. Then - if I understand it correctly - the product page doesn't even try to load the large image until a customer clicks on the medium to enlarge it.

11 Oct 2012, 1:25 AM
#5
saftek avatar

saftek

New Zenner

Join Date:
Apr 2012
Posts:
27
Plugin Contributions:
0

Re: Images - slow page loads

joejoejoe:

I use:
smallest (thumbnails) in the /images
images/medium for the mid-sized image (the "small" image that shows up on a product page)
images/large for the full-sized, biggest pic you've got of the product (shows up when someone clicks on the mid-sized image).

When I add a product I link the smallest via the product add-on page in admin, and then ftp the medium and large into their respective folders. Then - if I understand it correctly - the product page doesn't even try to load the large image until a customer clicks on the medium to enlarge it.

Thanks! That is exactly what I needed to know. Cheers.

21 Feb 2014, 4:05 AM
#7
brian70809 avatar

brian70809

New Zenner

Join Date:
Jun 2011
Posts:
85
Plugin Contributions:
0

Re: Images - slow page loads

I found for me to turn off the additional images go rid of the slow load problems... Go to Admin->Catalog->-Product Types-> Modify Layout and Turn off the additional images..

I think it's going to the image directory and indexing it into an array to find additional images.. It eats up a lot of time doing that.

Good luck!

Brian