Page 4 of 40 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 392
  1. #31
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

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

    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
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  2. #32
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,934
    Plugin Contributions
    75

    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?

  3. #33
    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

  4. #34
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,934
    Plugin Contributions
    75

    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.

  5. #35
    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

  6. #36
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,934
    Plugin Contributions
    75

    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?

  7. #37
    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

  8. #38
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,934
    Plugin Contributions
    75

    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.

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

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

    Thank you! I'll be looking if I can do this.
    It would be a nice addition to IH.
    Recently I made some changes how to handle images with ep4bookx ( import addition to deal with bookx product type using EP4).
    And basically, it allows to rename, resize, download books images or authors images from a temp folder, to the destination folders.
    I had to search for some script to use GD, since I didn't manage to use IH. ( maybe my fault).
    Another thing that I'm planing to do, is to create export newsletter to MailChimp ( html format).
    And it would be nice to use IH.
    What I'm trying to say, is that IH could be a "library" to image handling, globally.
    But, I do understand the amount of work and that somebody has to pay the bills.
    Thanks
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  10. #40
    Join Date
    Jul 2012
    Posts
    15,368
    Plugin Contributions
    17

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

    Quote Originally Posted by mesnitu View Post
    Thank you! I'll be looking if I can do this.
    It would be a nice addition to IH.
    Recently I made some changes how to handle images with ep4bookx ( import addition to deal with bookx product type using EP4).
    And basically, it allows to rename, resize, download books images or authors images from a temp folder, to the destination folders.
    I had to search for some script to use GD, since I didn't manage to use IH. ( maybe my fault).
    Another thing that I'm planing to do, is to create export newsletter to MailChimp ( html format).
    And it would be nice to use IH.
    What I'm trying to say, is that IH could be a "library" to image handling, globally.
    But, I do understand the amount of work and that somebody has to pay the bills.
    Thanks
    Umm... Do you need just the filename or do you need the html <img> tag that provides the image? (or even from that to pull the filename?) If you use the zen_image function to return the generated value, then you will receive the html tag that should contain all that is necessary to display the image. If it is the directory path only needed then the string can be parsed from the content (src parameter), if it is an image tag, then it is the entire returned value from the function.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

 

 
Page 4 of 40 FirstFirst ... 2345614 ... LastLast

Similar Threads

  1. v150 Image Handler 4 (for v1.5.x) Support Thread
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1677
    Last Post: 1 Oct 2020, 08:28 PM
  2. Attribute image replaces main product image on select [Support Thread]
    By exoticcorpse in forum All Other Contributions/Addons
    Replies: 158
    Last Post: 24 Aug 2020, 05:07 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

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