Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2009
    Posts
    5
    Plugin Contributions
    0

    Default how to arrange images directory better?

    I have tree level categories, for example: Wholesale Gucci - Gucci Man Shoes - Gucci sneaker. And I plan to create image directory like this :images/Wholesale Gucci/Gucci Man Shoes/Gucci sneaker, then place the product images in the proper cateory directory.
    I wonder whether this will effect performance ? And image path in the web page is in 'bmz_cache', does this will lower the possibility of being cataloged by google image? How can I avoid it ?

  2. #2
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: how to arrange images directory better?

    If you create subdirectories within your images directory, this should infact improve your performance. The reason for this is that the Zen code checks to see if product images exist, which involves the PHP code iterating through image file within a directory. If there are 2000 images in the directory, this will take longer than if it goes to a specific category directory and then looks through 20 images.

    As for the Google images probloem, you may want to adjust the code in includes/functions/general.php so that the image handler code is only employed when the current user is NOT a spider. Whether or not the user is a spider is already stored in a session variable, and if it is true, then you could simply return the actual image, rather than the cached version. Obviously the new Google search results take site speed into consideration, so it's a choice between site speed results, and getting your original image in the search results.

    Absolute
    Back, after a 4 year absence! Did you miss me?
    Absolute Web Solutions Ltd
    Interested in our work? Take a look at one of our sites - The Tech Store

  3. #3
    Join Date
    Dec 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: how to arrange images directory better?

    Quote Originally Posted by Absolute View Post
    If you create subdirectories within your images directory, this should infact improve your performance. The reason for this is that the Zen code checks to see if product images exist, which involves the PHP code iterating through image file within a directory. If there are 2000 images in the directory, this will take longer than if it goes to a specific category directory and then looks through 20 images.

    As for the Google images probloem, you may want to adjust the code in includes/functions/general.php so that the image handler code is only employed when the current user is NOT a spider. Whether or not the user is a spider is already stored in a session variable, and if it is true, then you could simply return the actual image, rather than the cached version. Obviously the new Google search results take site speed into consideration, so it's a choice between site speed results, and getting your original image in the search results.

    Absolute
    Thanks Absolute for reply.
    By the way,there are still two questions:
    1.Can I create image directory 'Wholesale Gucci' with a blank in it in linux? Or should I replace blank with '-'?
    2.The image path is too long. For example, one product's image path is '/Wholesale Gucci/Gucci Man Shoes/Gucci sneaker/Anna-Wallet-1004.jpg',the path size is 58,while the products_image is varchar(64).Can I change the definition to varchar(100) without other modification?

  4. #4
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: how to arrange images directory better?

    Always avoid spaces in URLs. Every system is different, for example Google etc, and as you don't know how they react to spaces, you want to give them a character they expect, such as an underscore '_' or a dash.

    As for the varchar(64), if you know you are going to be giving image pages long URLs, I would change this to 254. Thats the highest value possible for a varchar field.

    Obviously you have said that you use Image handler, so these huge URLs should never actually make it to a users browser, as they will be replaced with the bmz URL, but with the tweak mentioned earlier, these would then be sent to the Search Engines for indexing.

    Absolute
    Back, after a 4 year absence! Did you miss me?
    Absolute Web Solutions Ltd
    Interested in our work? Take a look at one of our sites - The Tech Store

 

 

Similar Threads

  1. v151 Arrange Product Listing Order - Better Method - like on Etsy
    By shags38 in forum General Questions
    Replies: 9
    Last Post: 12 Nov 2015, 02:49 AM
  2. How to arrange the price, qty, info layout?
    By sgspeer in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 26 Aug 2010, 10:23 PM
  3. How to tidy this up (re-arrange things)?
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Apr 2010, 05:07 PM
  4. how to arrange the middle box
    By thomasjones2002 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Jul 2007, 02:24 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