Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2012
    Posts
    27
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Images - slow page loads

    Quote Originally Posted by saftek View Post
    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
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2012
    Posts
    27
    Plugin Contributions
    0

    Default Re: Images - slow page loads

    Quote Originally Posted by DrByte View Post
    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.

  4. #4
    Join Date
    Oct 2011
    Location
    AZ
    Posts
    384
    Plugin Contributions
    0

    Default 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.

  5. #5
    Join Date
    Apr 2012
    Posts
    27
    Plugin Contributions
    0

    Default Re: Images - slow page loads

    Quote Originally Posted by joejoejoe View Post
    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.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Images - slow page loads

    It's all explained in the FAQ article on that topic: http://www.zen-cart.com/content.php?...s-to-a-product
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jun 2011
    Posts
    72
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. IE8 Slow page loads need help!
    By matchlock in forum General Questions
    Replies: 4
    Last Post: 20 Oct 2011, 02:55 AM
  2. Extremely slow page loads on MediaTemple...
    By Ravyn in forum General Questions
    Replies: 8
    Last Post: 26 Mar 2011, 10:29 PM
  3. Storefront loads fast; admin loads very slow
    By TheHYPO in forum General Questions
    Replies: 4
    Last Post: 28 Sep 2008, 04:19 AM
  4. My Page Loads Real Slow
    By larryhyman in forum General Questions
    Replies: 5
    Last Post: 27 May 2007, 03:12 AM
  5. Very Slow Page Loads... ZC 1.3.0.2
    By Picci in forum General Questions
    Replies: 14
    Last Post: 7 Feb 2007, 05:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR