Page 51 of 59 FirstFirst ... 414950515253 ... LastLast
Results 501 to 510 of 583
  1. #501
    Join Date
    Apr 2011
    Posts
    369
    Plugin Contributions
    0

    Default Re: Hover image alignment

    As per curiosity, it seems that .webp is becoming more and more like suggested by google pagespeed.

    Would IH support .webp format eventually? or even .avif

    thank you

  2. #502
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Hover image alignment

    Quote Originally Posted by nicksab View Post
    As per curiosity, it seems that .webp is becoming more and more like suggested by google pagespeed.

    Would IH support .webp format eventually? or even .avif

    thank you
    Probably not, those files are already somewhat compressed and there are no built-in PHP function(s) to handle any re-sizing.

  3. #503
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: Hover image alignment

    Hello Lat9! Love the mod. I am starting to add more pictures to products and am noticing that the additional pictures are not being covered by the watermark as well as the regular picture (watermark much smaller). Can this be changed easily? The hover over has great watermarking but the small image without hover does not show the watermarking well.

  4. #504
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Hover image alignment

    Quote Originally Posted by shrimp-gumbo-mmmhhh View Post
    Hello Lat9! Love the mod. I am starting to add more pictures to products and am noticing that the additional pictures are not being covered by the watermark as well as the regular picture (watermark much smaller). Can this be changed easily? The hover over has great watermarking but the small image without hover does not show the watermarking well.
    What dimensions are you using for your small images? Is the dimension of the small-image watermark the same?

  5. #505
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Hover image alignment

    I've just submitted v5.3.0 of Image Handler for the Zen Cart moderators' review; I'll post back here when it's available for download.

    Note: This version of Image Handler requires Zen Cart 1.5.7 or later and has been tested with the current alpha version of Zen Cart 1.5.8 as well as PHP 8.1.

    This release contains changes associated with the following GitHub issues:

    #248: Correcting PHP 8.0+ Fatal error; casting requires correction.
    #251: Correcting products' dropdown sorting for zc158; always sort by products' names.
    #252: Correcting PHP Fatal error: Uncaught TypeError: imagecolorallocatealpha(); inputs need to be integers, not floats.
    #254: Move installation files to branch root, removing 'Installation Files' sub-directory.
    #256: Drop support for Zen Cart versions prior to 1.5.7.
    #258: Properly handle corrupt file.

  6. #506
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Hover image alignment

    Quote Originally Posted by lat9 View Post
    I've just submitted v5.3.0 of Image Handler for the Zen Cart moderators' review; I'll post back here when it's available for download.

    Note: This version of Image Handler requires Zen Cart 1.5.7 or later and has been tested with the current alpha version of Zen Cart 1.5.8 as well as PHP 8.1.

    This release contains changes associated with the following GitHub issues:

    #248: Correcting PHP 8.0+ Fatal error; casting requires correction.
    #251: Correcting products' dropdown sorting for zc158; always sort by products' names.
    #252: Correcting PHP Fatal error: Uncaught TypeError: imagecolorallocatealpha(); inputs need to be integers, not floats.
    #254: Move installation files to branch root, removing 'Installation Files' sub-directory.
    #256: Drop support for Zen Cart versions prior to 1.5.7.
    #258: Properly handle corrupt file.
    Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2169

  7. #507
    Join Date
    Apr 2011
    Posts
    369
    Plugin Contributions
    0

    Default Re: Hover image alignment

    I am getting the following error when IH encounter a .webp file.

    [27-Oct-2022 00:18:57 UTC] PHP Notice: Image Handler, calculate_size for /images/90674z_11zon.webp returned false; image is corrupt. in /includes/classes/bmz_image_handler.class.php on line 484
    This is just an example as i am getting the same log for several other .webp file.

    I tried to clear the cache thru the admin interface but no change. I understand IH is not compatible with .webp but i thought it would ignore it instead of throwing an error.

    Thank you

  8. #508
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Hover image alignment

    Quote Originally Posted by nicksab View Post
    I am getting the following error when IH encounter a .webp file.



    This is just an example as i am getting the same log for several other .webp file.

    I tried to clear the cache thru the admin interface but no change. I understand IH is not compatible with .webp but i thought it would ignore it instead of throwing an error.

    Thank you
    I would have thought the same. I'm in the middle of a lot of other stuff right now, but when I get back to IH I will certainly look at this.

  9. #509
    Join Date
    Apr 2009
    Posts
    416
    Plugin Contributions
    2

    Default Re: Hover image alignment

    This is a work around that will allow you to use webp images and not get the error. While lat9 is busy. It is not intended as a final fix.


    Modify \includes\classes\observers\ImageHandlerObserver.php
    Code:
     public function update(&$class, $eventID, $p1, &$p2, &$p3, &$p4, &$p5, &$p6) 
        {
            switch ($eventID) {
    to
    Code:
     public function update(&$class, $eventID, $p1, &$p2, &$p3, &$p4, &$p5, &$p6) 
        {
            if (strtolower(right($p1,-5)) == '.webp') {
                return;
            }
            switch ($eventID) {
    This will stop image handler processing your webp images.
    Last edited by brittainmark; 27 Oct 2022 at 01:11 PM. Reason: change to lower
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

  10. #510
    Join Date
    Apr 2009
    Posts
    416
    Plugin Contributions
    2

    Default Re: Hover image alignment

    Just found thad does not work if you have multiple images. This does
    Code:
     public function update(&$class, $eventID, $p1, &$p2, &$p3, &$p4, &$p5, &$p6) 
        {
            if (strtolower($p3) == '.webp') {
                return;
            }
            switch ($eventID) {
    Assumes that all images for a product have same extension.
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

 

 
Page 51 of 59 FirstFirst ... 414950515253 ... LastLast

Similar Threads

  1. v150 Image Handler 4 (for v1.5.x) Support Thread
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1684
    Last Post: 2 Oct 2022, 06:55 AM
  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