Thread: EZ thumbnails

Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 48
  1. #11
    Join Date
    Jul 2005
    Posts
    29
    Plugin Contributions
    0

    Default Re: EZ thumbnails

    Hiya will this work with 1.37? Im interested in an IH replacement as it never seems to work right for me.

    Thanks

  2. #12
    Join Date
    Jul 2005
    Posts
    29
    Plugin Contributions
    0

    Default Re: EZ thumbnails

    This seems to work on a clean install of 1.37 but doesnt seem to work with sefu that just works html_output file. Anyone else get this to work.

  3. #13
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: EZ thumbnails

    With "sefu" you mean a sefu mod? If so, do you have a link?

    (not promising anything, but i am suprised something like sefu influences this mod so I *might* take a look)

  4. #14
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: EZ thumbnails

    Hi,

    I received your modified html_ouput.php file but it appears not to be up to date with 1.3.5/1.3.6/1.3.7! An important part of the 1.3.5+ code is missing in your html_ouput file.

    After this part
    Code:
        if (!file_exists($src)) {
          $src = str_replace(DIR_WS_TEMPLATES . $template_dir, DIR_WS_TEMPLATES . 'template_default', $src);
        }
    There should be this:
    Code:
        // hook for handle_image() function such as Image Handler etc
        if (function_exists('handle_image')) {
          $newimg = handle_image($src, $alt, $width, $height, $parameters);
          list($src, $alt, $width, $height, $parameters) = $newimg; 
        }
    
        // Convert width/height to int for proper validation.
        // intval() used to support compatibility with plugins like image-handler
        $width = empty($width) ? $width : intval($width);
        $height = empty($height) ? $height : intval($height);
    I won't guarantee it will work after adding it, since I have no idea about the other 25 differences in the file you sent compared to the standard 1.3.7 version of html_ouput.php.

  5. #15
    Join Date
    Jul 2005
    Posts
    29
    Plugin Contributions
    0

    Default Re: EZ thumbnails

    I added this bit into the html_output and it now seems to work.

    It appears to generate the thumbnails on the fly as they are requested, does it do this just the first time an image is asked for? ( this might be a dumb question )

    Thanks again!

  6. #16
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: EZ thumbnails

    Yep, it creates the thumbnails on the fly, and only if the thumbnail does not exist yet. If the thumbnail already exists the script won't create one.

    And it's not a stupid question (unless the readme or this thread already explains but I don't remember if I explained it here or in the readme)

  7. #17
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: EZ thumbnails

    Uploaded v1.01 to the downloads.

    Uploaded to "Other Modules":
    http://www.zen-cart.com/index.php?ma...roducts_id=704

  8. #18
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: EZ thumbnails

    Quote Originally Posted by paulm View Post
    Uploaded v1.01 to the downloads.

    Uploaded to "Other Modules":
    http://www.zen-cart.com/index.php?ma...roducts_id=704
    Can you please explain the upgrade path from IH2 to this mod? It will also help to explain the difference between how this work versus IH2. I really like that your version does not mess with a lot of core file like IH2 does.

    Currently with IH2 images are uploaded to the image folder and IH2 does the rest. IH2 also handles things like image.gif, image_01.gif, image_02.gif. By this I mean if this 3 images are uploaded to the image folder on the server, image handler with automatically assign image.gif as the default image and the other two images as additional images. How does this mod work.

    How does this mod affects Medium and Large image folder. Currently IH2 doesn't use Zen Cart logic for Medium and Large image folder. A store owner simply need to upload their biggest image to image folder and IH2 handles the rest. How does this mod handle medium and large image?

    How is this going to affect various mods like google base, ebay turbo lister, that needs to generate image url.

    The readme file doesn't have much in it for explanation of the logic behind this mod.

    Thanks for this contribution. This might be a nice replacement since Tim is no longer here to support IH2.

  9. #19
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: EZ thumbnails

    Can you please explain the upgrade path from IH2 to this mod?
    I don't know IH2 very well, and I think "upgrade" would not be the right word. To swap I would totally remove IH2 (don't ask me how) first, then check that everyting works normal again, and then install this contribution.
    image handler with automatically assign image.gif as the default image and the other two images as additional images. How does this mod work
    Someone reported that this mod does not support the Zen extra images logic. I don't use the Zen extra images code myself because the way it works is not practical in my case, I disabled it a long time ago to prevent issues (not with this mod, but other unrelated issues I had with the naming convention). So I don't have any experience with the combination of the Zen extra images and this script.

    How does this mod affects Medium and Large image folder. Currently IH2 doesn't use Zen Cart logic for Medium and Large image folder. A store owner simply need to upload their biggest image to image folder and IH2 handles the rest.
    It's about the same with EZ thumbnails. Al thumbnails are saved into a subfolder of images/ (images/thumbnails/ for products, images/thumbnails/categories/ for categories). The Zen folders are not being used. The store owner only uploads the large images (which will be used without modification). Note that the thumbnails folder has to be writable for this, and I am not sure about the security issues this might invoke. On shared servers it might be a bad idea to leave the folder writable?

    How is this going to affect various mods like google base, ebay turbo lister, that needs to generate image url.
    I don't know. The the url's of the original images stay the same, so I guess the mods will continue to work.

    The readme file doesn't have much in it for explanation of the logic behind this mod.
    That's true. It's mainly because I wrote it for my own usage. I just like to share code (most of the time), but I don't like writing readme's and I don't always have time and/or feel like supporting it fully. But I am glad you asked these questions, and I hope this helps others to understand what the script does.

    This might be a nice replacement since Tim is no longer here to support IH2.
    For some it may. IH2 has lots of features and does a lot more than this mod does. So this mod wil certainly not be a nice IH2 replacement for everyone. EZ Thumbnails only creates thumbnails on the fly automaticly, that's all. Also my support will probably be very limited and is certainly not guaranteed.

    An avarage PHP coder should however be able to figure out any issues him/her self, the code is short, simple and documented :-)

    Also it might be a nice basic script to start with for someone that wants to write a more advanced automatic thumbnail creation script.
    Last edited by paulm; 25 Aug 2007 at 10:20 PM.

  10. #20
    Join Date
    May 2007
    Posts
    17
    Plugin Contributions
    1

    Default Re: EZ thumbnails

    First off, thank you very much for this contribution paulm. :-) This is just what I need.

    However, I found something, not sure if it's a bug or intentional. When I set "Image - Use Proportional Images on Products and Categories" to false in the backend, then EZ thumbnails does not seem to kick in.

    Anyways, thanks again.

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. thumbnails issue..
    By deboud in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Feb 2010, 12:41 PM
  2. Thumbnails
    By karazy in forum General Questions
    Replies: 5
    Last Post: 8 Jan 2010, 10:42 PM
  3. Thumbnails
    By UPromo in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 24 Oct 2007, 09:41 PM
  4. thumbnails
    By mipavluk in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 5 Aug 2007, 07:16 PM

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