If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Started by lat9 on 15 Oct 2017, 3:54 PM · Views: 160,515

Results 341 to 360 of 774
19 Mar 2020, 10:59 AM
#341
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

ikirin:

Hello, I installed the "attrib_image_swap_module_v1_5_10 (attribute image replaced the main product image when selecting attributes)" module. The attribute image can replace the main image normally, but the enlarged main image cannot be displayed normally after clicking the main image after replacement.
IH5(V.5.1.8) does not seem to be able to compress attribute images.
Attachment 18902
Image Handler's storefront operation 'intercepts' ***all ***calls to the zen_image function. I'm not familiar with the plugin that you reference, but IH-5 doesn't have any play in the actual display (e.g. <img /> tag manipulation) of the information.

19 Mar 2020, 11:47 AM
#342
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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

lat9:

Image Handler's storefront operation 'intercepts' ***all ***calls to the zen_image function. I'm not familiar with the plugin that you reference, but IH-5 doesn't have any play in the actual display (e.g. <img /> tag manipulation) of the information.

The forum thread associated with the plugin described is: https://www.zen-cart.com/showthread.php?98315-Attribute-image-replaces-main-product-image-on-select-Support-Thread
In that thread, a message had been posted yesterday identifying that without IH, the plugin worked to swap the attribute with the main image and that the swapped image could be clicked to show the large image; however, when IH was in play, the image name included the _LRG suffix and then was not locateable... I advised the OP that I thought I had seen a recent issue of the suffix being added and causing image display issues when IH was in use and recommended reviewing the appropriate IH forum thread for such problem, solution and if necessary to provide more information about the setup. I haven't gone back to identify where I recently saw this issue or what changes were made, if any, but it appeared to me to be related to IH considering that swap module uses javascript to manipulate data already on the page versus recreating any links and if/where it does, it also uses ZC code to do so.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

19 Mar 2020, 3:43 PM
#343
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

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

mc12345678:

The forum thread associated with the plugin described is: https://www.zen-cart.com/showthread.php?98315-Attribute-image-replaces-main-product-image-on-select-Support-Thread
In that thread, a message had been posted yesterday identifying that without IH, the plugin worked to swap the attribute with the main image and that the swapped image could be clicked to show the large image; however, when IH was in play, the image name included the _LRG suffix and then was not locateable... I advised the OP that I thought I had seen a recent issue of the suffix being added and causing image display issues when IH was in use and recommended reviewing the appropriate IH forum thread for such problem, solution and if necessary to provide more information about the setup. I haven't gone back to identify where I recently saw this issue or what changes were made, if any, but it appeared to me to be related to IH considering that swap module uses javascript to manipulate data already on the page versus recreating any links and if/where it does, it also uses ZC code to do so.
The issue you're remembering was due to a SiteMap XML setting, overriding the 'handle_image' function provided by Image Handler.

Since the problem lies with the interaction between your plugin and Image Handler, I'd appreciate it if you could identify the source of the issue. If it's actually a problem with IH, I'll be happy to correct it; I just don't have the time right now to create a separate installation for the investigation.

25 Mar 2020, 4:39 AM
#344
jasonshanks avatar

jasonshanks

Zen Follower

Join Date:
Feb 2009
Location:
atlanta GA
Posts:
297
Plugin Contributions:
0

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

Hello,

I am testing out IH5 on my test site ( https://www.salvagecrate.com - php 7.0 - ZC 1.5.6). I want it mainly for the hover / mouse over function. I can get that to work on items in the featured and new product side boxes. But it won't work on the category pages or more importantly The product pages. Can IH5 do this ? Or am i maybe using the wrong plug. Below are examples of what I want to do.

https://www.amazon.com/LOCKED-T-Mobile-LG-K7-screen/dp/B01M4KSH0F/ref=olp_product_details?ie=UTF8&me=
( notice how when you mouse over the phone image you get that zoomed in photo on the product page ? )

https://www.ebay.com/itm/Replacement-14-1-Laptop-Screen-For-LTN141AT16-Dell-Latitude-E6410-E5410-Matte/114138315767?_trkparms=aid%3D111001%26algo%3DREC.SEED%26ao%3D1%26asc%3D20180105095853%26meid%3D65fc270d0d2e41e1a60876403f9ce003%26pid%3D100903%26rk%3D1%26rkt%3D6%26mehot%3Dnone%26sd%3D114138315767%26itm%3D114138315767%26pmt%3D1%26noa%3D1%26pg%3D2510209&_trksid=p2510209.c100903.m5276
( Same as above )

Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online https://www.missingcord.com

25 Mar 2020, 12:16 PM
#345
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

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

That product-page plugin you're looking for could be based on this (https://mark-rolich.github.io/Magnifier.js/). I "know" there's a prepackaged version out there somewhere but can't find it quickly.

The image-zoom provided by IH5 (to be removed in the v5.2.0) isn't working on the by-category products' listing since you're (apparently) using a product's medium-sized images for that display and the image-zoom is applied only to small images.

25 Mar 2020, 7:18 PM
#347
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

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

MagicThumb will do the attribute swap for a little less money.

Example - https://allpecans.com/index.php?main_page=product_info&cPath=32&products_id=133

As you select a second or third flavor, the image changes.

https://allpecans.com/index.php?main_page=product_info&cPath=31&products_id=135 shows just one of the items changing the image.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

26 Mar 2020, 1:34 AM
#348
jasonshanks avatar

jasonshanks

Zen Follower

Join Date:
Feb 2009
Location:
atlanta GA
Posts:
297
Plugin Contributions:
0

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

dbltoe:

MagicThumb will do the attribute swap for a little less money.

Example - https://allpecans.com/index.php?main_page=product_info&cPath=32&products_id=133

As you select a second or third flavor, the image changes.

https://allpecans.com/index.php?main_page=product_info&cPath=31&products_id=135 shows just one of the items changing the image.

Thank you very much to both of you. I had no idea what to even call it or what to search for till LAT9 showed me what that type of effect was called. I am driving over my ebay traffic , so i think I will go with the more expensive one. It looks so nice.

Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online https://www.missingcord.com

26 Mar 2020, 2:19 PM
#349
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

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

lat9:

The issue you're remembering was due to a SiteMap XML setting, overriding the 'handle_image' function provided by Image Handler.

Since the problem lies with the interaction between your plugin and Image Handler, I'd appreciate it if you could identify the source of the issue. If it's actually a problem with IH, I'll be happy to correct it; I just don't have the time right now to create a separate installation for the investigation.
OK, since you apparently don't have the time to see what's going on, I've created a zc156c test site with attrib-image-swap, IH5 and Colorbox and have successfully reproduced the issue identified by @ikirin.

When all three of those plugins are enabled (and using the /includes/modules/YOUR_TEMPLATE/additional_images.php provided by IH5), the 'swapped' attribute images display properly with Colorbox. When Colorbox is disabled, the issue occurs (image-not-found).

To correct the interoperation between the image-swap plugin and IH-5, you'll need to edit /includes/classes/ajax/zcAttrib_prod_info.php, starting at line #87:

      } else {
//-bof-20200326-lat9-IH5 interoperation
        // hook for handle_image() function such as Image Handler etc
        if (function_exists('handle_image')) {
            $newimg = handle_image($products_image_large, $alt, $width, $height, $parameters);
            list($products_image_large, $alt, $width, $height, $parameters) = $newimg;
        }
//-eof-20200326-lat9
        // Generating only the javascript version of the link, because if javascript is disabled on the client side, then none of this is executed.
        $image_return = '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'products_image_large_additional=' . $products_image_large) . '\')">' . $image . '<br /><span class="imgLink">' . $larger_text . '</span></a>';
      }
27 Mar 2020, 12:13 PM
#350
hasher avatar

hasher

New Zenner

Join Date:
Sep 2011
Posts:
77
Plugin Contributions:
0

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

Hi all , Having problems with certain categories in my database. Some ImageHandler works fine with . Others it says "*Product is Disabled" .

Tried reinstalling IH as advised on a thread here.

Seems to be products I have imported from Database I/O manager. Is there a field I am setting the incorrect value .

Any Help appreciated :)

Attachment 18907

27 Mar 2020, 12:35 PM
#351
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

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

Are there products in that /Lawn category? That "Product is disabled" is shown when a category has no products.

29 Mar 2020, 1:35 PM
#352
hasher avatar

hasher

New Zenner

Join Date:
Sep 2011
Posts:
77
Plugin Contributions:
0

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

Hey Lat9

I reimported products and IH doesn't seem to be working site wide. So I tried reinstalling IH with no results. Any tips ?

29 Mar 2020, 1:39 PM
#353
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

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

Hasher:

Hey Lat9

I reimported products and IH doesn't seem to be working site wide. So I tried reinstalling IH with no results. Any tips ?
Based on your posting in the DbIo support thread, it didn't look like there were products in that /Lawn category. Click that category dropdown to find one that has products (the category name has an asterisk after it).

29 Mar 2020, 9:03 PM
#354
phillyphoto avatar

phillyphoto

New Zenner

Join Date:
Oct 2009
Location:
Philly
Posts:
8
Plugin Contributions:
0

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

IH 5 is on site Version 1.5.5c is working correctly for every page BUY if I add something to a cart and then delete it, a New Items page starts to load but only the text is displayed and just see spinning circles where the images should be.
Site: https://phillyphotosupply.com
Using Numinix Tableau 2 Template. An suggestions to a solution would be great.

30 Mar 2020, 11:12 AM
#355
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

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

That template's using a lazyloading script for the images, changing from src="image_name" to data-src="image_name" but the shopping_cart page doesn't load the actual script itself.

1 Apr 2020, 12:03 PM
#356
hasher avatar

hasher

New Zenner

Join Date:
Sep 2011
Posts:
77
Plugin Contributions:
0

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

lat9:

Based on your posting in the DbIo support thread, it didn't look like there were products in that /Lawn category. Click that category dropdown to find one that has products (the category name has an asterisk after it).

I don't get it Lat9. I see categories with Asterisks and can see all the usual products in admin. In public side no products have IH active . Not sure how to activate.!

1 Apr 2020, 12:34 PM
#357
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

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

Hasher:

I don't get it Lat9. I see categories with Asterisks and can see all the usual products in admin. In public side no products have IH active . Not sure how to activate.!
Did you enable IH5's ability to resize images? See Configuration->Images->IH resize images.

2 Apr 2020, 7:45 PM
#358
meksicus avatar

meksicus

New Zenner

Join Date:
Jul 2015
Location:
Warsaw
Posts:
16
Plugin Contributions:
0

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

Hi All.
I found small problem with performance. For one product i have 4,5,6 additional pictures with underline, after main image name. They are stored in catalogue with manufacturer name.
For example /manu/pict.jpg, /manu/pict_1.jpg and soon.
In one catalogue i can have more than 1000 images like this.
When IH is looking for additional images for product, is scanning directory /manu/.
In case on displayed page we have 10 products from same manufacturers, its scanning 10.000 times :(
So, i made subdirs named with first letter of images.
It works excellent, but - image name in bmz_cache is made without /manu/ element as file name.
Then, in case i have 2 images with same name in 2 different /manu/ directory, i got a conflict.
I think is important thing to consider in next release.
Regards.
Meksicus

3 Apr 2020, 10:13 AM
#359
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

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

meksicus:

Hi All.
I found small problem with performance. For one product i have 4,5,6 additional pictures with underline, after main image name. They are stored in catalogue with manufacturer name.
For example /manu/pict.jpg, /manu/pict_1.jpg and soon.
In one catalogue i can have more than 1000 images like this.
When IH is looking for additional images for product, is scanning directory /manu/.
In case on displayed page we have 10 products from same manufacturers, its scanning 10.000 times :(
So, i made subdirs named with first letter of images.
It works excellent, but - image name in bmz_cache is made without /manu/ element as file name.
Then, in case i have 2 images with same name in 2 different /manu/ directory, i got a conflict.
I think is important thing to consider in next release.
Regards.
Meksicus
Yes, I wasn't a big fan of the readable-cache-image names when I inherited IH. That filename conflict won't exist if the hashed filenames are used.

I'll consider a page-by-page cache of the images found and also consider using the /images sub-directory names when creating the bmz_cached readable images.

3 Apr 2020, 6:36 PM
#360
meksicus avatar

meksicus

New Zenner

Join Date:
Jul 2015
Location:
Warsaw
Posts:
16
Plugin Contributions:
0

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

lat9:

Yes, I wasn't a big fan of the readable-cache-image names when I inherited IH. That filename conflict won't exist if the hashed filenames are used.

I'll consider a page-by-page cache of the images found and also consider using the /images sub-directory names when creating the bmz_cached readable images.

Are you sure ?
Making md5 from same path + image name gives same result ... i think so.
md5 is made from target filename, not from source.

protected function getCacheName($data, $ext='') 
{
    $md5  = (IH_CACHE_NAMING == 'Hashed') ? md5($data) : $data;
    $file = $GLOBALS['bmzConf']['cachedir'] . '/' . $md5{0} . '/' . $md5 . $ext;

: