Results 1 to 10 of 750

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Re: Image Handler 5 (for v1.5.5) Support Thread

    Quote Originally Posted by mesnitu View Post
    Hi
    This is a general question:
    Is there a simple way to get the IH image ?
    Asking this, because I doing a autocomplete search box and if possible, it would be best to use already resized images.
    I'm following the admin image_handler page, but I guess that's for comparing , etc...

    Thanks
    Is this for a storefront or admin search box?

  2. #2
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Image Handler 5 (for v1.5.5) Support Thread

    In this case Store front

    thanks
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Re: Image Handler 5 (for v1.5.5) Support Thread

    That one's easy, then! When you call the zen_image() function and have IH loaded and enabled, that function (in turn) calls the IH function to handle that image. Net/net, that's the way to get a resized/cached version of the image.

  4. #4
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Image Handler 5 (for v1.5.5) Support Thread

    Thanks
    So I guess the other one it's difficult,... and that's the one I need. I didn't explain myself. The autocomplete is for the store front, but ,(still testing) I'm creating a json file in the admin area, so it's there that I need to get the IH (small) image path.
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Re: Image Handler 5 (for v1.5.5) Support Thread

    Quote Originally Posted by mesnitu View Post
    Thanks
    So I guess the other one it's difficult,... and that's the one I need. I didn't explain myself. The autocomplete is for the store front, but ,(still testing) I'm creating a json file in the admin area, so it's there that I need to get the IH (small) image path.
    The admin-side is a bit more complicated, since that version of the zen_image function doesn't look for/use the IH-supplied re-formatting. Which type of Cache File-Naming Convention are you using?

  6. #6
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Image Handler 5 (for v1.5.5) Support Thread

    Quote Originally Posted by lat9 View Post
    Which type of Cache File-Naming Convention are you using?
    That's a IH5 feature right ? I'm still using IH4, but I intend to move to IH5, but I didn't had the time yet.

    Perhaps I shod upgrade first and ask later ... is this stable now ?
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Re: Image Handler 5 (for v1.5.5) Support Thread

    Quote Originally Posted by mesnitu View Post
    That's a IH5 feature right ? I'm still using IH4, but I intend to move to IH5, but I didn't had the time yet.

    Perhaps I shod upgrade first and ask later ... is this stable now ?
    The GitHub repository is in a bit of flux, but the released version is stable. Since you're using IH4, you're using the hashed version of the cache file naming.

    I'd recently looked this up for a client, so here's the process, assuming that you're using the IH-4/5 default settings.


    1. Take the products_image definition from the products table in the database, let's call this $products_image.
    2. Prepend that value with the images' directory: $image_source = DIR_WS_IMAGES . $products_image;
    3. Append that value with the default settings: $image_source .= ('85' . '255:255:255' . 'Center');
    4. Create an md5-hash of that value: $cache_filename = md5($image_source);


    That $cache_filename now contains the filename portion associated with the cached image. Images are stored in the /bmz_cache/$cache_filename[0]/$cache_filename.image.$dimensions.$extension, where $dimensions = $width . 'x' . $height (of the image) and $extension is the image-file's base extension.

    That description's probably a bit muddy; just post back if you have additional questions.

 

 

Similar Threads

  1. Attribute image replaces main product image on select [Support Thread]
    By exoticcorpse in forum All Other Contributions/Addons
    Replies: 176
    Last Post: 14 Dec 2025, 12:55 AM
  2. v150 Image Handler 4 (for v1.5.x) Support Thread
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1687
    Last Post: 17 Nov 2024, 07:26 PM
  3. v139h Image Handler 3 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1095
    Last Post: 2 Oct 2017, 12:42 PM
  4. v138a Image Handler 2 (for ZC v1.3.8 ONLY) Support
    By timkroeger in forum All Other Contributions/Addons
    Replies: 7098
    Last Post: 12 Oct 2014, 03:48 AM
  5. Image Handler Support Please
    By nadinesky in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Sep 2013, 03:47 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