Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Medium and Large Images not being created

    When i add an image to a product, it creates the image file in the /images folder but does not create an image in the images/medium nor images/large folders.

    I added the plugin Image Handler and this is when the problem started. You can see my problem at http://criticalsystemsincshop.com/di...stub-p-71.html. when you roll over the image, it is looking for the medium image to popup a larger zoomed lightbox image but can't find it.

    My questions are:
    shouldn't medium and large images be created when an image is added to a product? and why aren't they being created for me?

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,154
    Plugin Contributions
    11

    Default Re: Medium and Large Images not being created

    Zen Cart does not automatically create the _med and _lrg images for you. IH4 will do that BUT, your store-bought template is using something other than Image Handler that came with the template.
    You'll need to refer to the documentation that came with the template or consult the author. There is a forum if you google ##########-temp.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Medium and Large Images not being created

    Medium and large images are only placed in those directories when one saves them there, otherwise the same image is presented across the board. Image Handler does "make" the different sized images, but doesn't store them in that directory structure, instead it presents the images (previously) with the image resolution as part of the filename. I haven't looked at the naming convention of the latest version of it as available in github. (see the IH4 forum thread for more on that.) as to your potential javascript that is to present a hovered image or what have you, IH4 will present the applicable image to such a program if the program takes advantage of the ZC zen_image function. If it is otherwise pulling data from the database or other "reference" then it won't work as desired.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Medium and Large Images not being created

    Quote Originally Posted by dbltoe View Post
    Zen Cart does not automatically create the _med and _lrg images for you. IH4 will do that BUT, your store-bought template is using something other than Image Handler that came with the template.
    You'll need to refer to the documentation that came with the template or consult the author. There is a forum if you google ##########-temp.
    thank you..

  5. #5
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Medium and Large Images not being created

    Quote Originally Posted by mc12345678 View Post
    Medium and large images are only placed in those directories when one saves them there, otherwise the same image is presented across the board. Image Handler does "make" the different sized images, but doesn't store them in that directory structure, instead it presents the images (previously) with the image resolution as part of the filename. I haven't looked at the naming convention of the latest version of it as available in github. (see the IH4 forum thread for more on that.) as to your potential javascript that is to present a hovered image or what have you, IH4 will present the applicable image to such a program if the program takes advantage of the ZC zen_image function. If it is otherwise pulling data from the database or other "reference" then it won't work as desired.
    why then are there 2 folders under images called 'medium' and 'large'.. do they come standard with zen cart? and what are they used for?

  6. #6
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Medium and Large Images not being created

    Quote Originally Posted by lidlchris View Post
    why then are there 2 folders under images called 'medium' and 'large'.. do they come standard with zen cart? and what are they used for?
    They do come standard with ZC. The below FAQ implies that they need to be created, but over time they have become standard. With that, may I suggest reviewing the FAQS related to images, one of which is this: https://www.zen-cart.com/content.php...aration-how-to

    There are several others, and while the title may not be applicable to what you may learn about images, I suggest reading as many/much as possible.

    As a side note, iH4 at least historically made its own directory to store the images using its own naming convention. The newer version still does some of that, but I've kind of gotten over reviewing the output of the black box on that one. Follow a few simple standard ZC rules, install it properly, and it works. Yes I dig in the guts every once in a while, but only to achieve a different goal if needed.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Medium and Large Images not being created

    I can see an awful lot of jscripts in your sorce code, it is not too far fetched that some of these scripts may be clashing

    For example, in one file you have

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" type="text/javascript"></script>

    and in another

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

    which is a more recent version of the former. But both are loaded!

    Something to consider....

  8. #8
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Medium and Large Images not being created

    Quote Originally Posted by frank18 View Post
    I can see an awful lot of jscripts in your sorce code, it is not too far fetched that some of these scripts may be clashing

    For example, in one file you have

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" type="text/javascript"></script>

    and in another

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

    which is a more recent version of the former. But both are loaded!

    Something to consider....
    can you tell me which page you saw this on??

  9. #9
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Medium and Large Images not being created

    If using the link provided in the initial post, I see at least 5 different versions of Jquery being loaded.
    Varying from the ancient 1.4.2 version to the more recent 1.10.2

 

 

Similar Threads

  1. Medium and large images show small
    By line1 in forum General Questions
    Replies: 8
    Last Post: 28 Sep 2012, 05:13 PM
  2. Change Dimensions of Large and Medium Images
    By websightdesign in forum General Questions
    Replies: 0
    Last Post: 20 Jan 2010, 02:32 PM
  3. cannot get medium and large images to display correctly
    By darrels in forum General Questions
    Replies: 5
    Last Post: 13 May 2008, 05:22 PM
  4. Large and Medium images
    By benn600 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 Dec 2007, 06:28 PM
  5. no medium and large images
    By maxus in forum General Questions
    Replies: 11
    Last Post: 11 Aug 2006, 07:05 PM

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