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 661 to 680 of 774
18 Feb 2025, 6:33 PM
#661
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

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

I have upgraded my store to Zen Cart v.2.1.0 and am using IH 5.3.5 with pHp v8.3 on my server

Due to a very large image folder, I didn't upload that folder during testing....and now that I'm live and the site is using that folder, I have one weird problem. My additional images are all showing as Large images, not thumbnails with the ability to enlarge them and these additional images are duplicated (showing 2 of them instead of one).

I have tried uninstalling the plugin via Admin->Tools->IH->Uninstall and then reinstalling. I received the confirmation of IH install at the top of my Admin panel when logging into my admin and I then went in to Admin->Images and set the Let IH resize images to true.

When going into the IH in Admin-> Tools, everything is there and working, and there are no Debug Log errors.

Can anyone point me in the right direction on what I've done wrong??

Thanks!

18 Feb 2025, 10:27 PM
#662
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

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

In investigating and trying to debug this LRG duplicate images....when I look at Developer Tools in Firefox to see what is being called, I see this....

<!-- Modal --> <div id="imageModal1" class="imgmodal"> <div id="modalContent1 . '" class="imgmodal-content"> <span onclick="closeModal('imageModal1')"> <img src="bmz_cache/f/fqb_hereandnow_01jpg.image.439x550.jpg" title="FQB - Here And Now Collection" alt="(image for) FQB - Here And Now Collection" width="439" height="550" class="centered-image"> <div class="imgmodal-close"><i class="fa-solid fa-circle-xmark"></i></div> <div class="center">FQB - Here And Now Collection</div> <!-- <div class="imgLink center">--><!--</div>--> </span> </div> </div> <div class="back"> <a id="modalLink1" href="javascript:void(0);" onclick="openModal('imageModal1')"> <img src="bmz_cache/f/fqb_hereandnow_01jpg.image.600x750.jpg" title="FQB - Here And Now Collection" alt="(image for) FQB - Here And Now Collection" width="600" height="750" href="javascript:void(0);" onclick="openModal('imageModal1')"> <br> <!-- <div class="imgLink center">--><!--</div>--> </a> </div>

This is calling the fqb_hereandnow_01.jpg twice....and as I have 4 additional images, it is also calling each of these twice.

Does anyone understand why??

19 Feb 2025, 5:24 AM
#663
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
416
Plugin Contributions:
6

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

Just an idea, but when uninstalling, IH does not delete cache images in bmz_cache folder. Deleting everything in there except '.htaccess' will force IH to recalculate all the different size images.
It might eliminate these duplicates... or not.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

19 Feb 2025, 12:27 PM
#664
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

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

Thanks for your suggestion pilou2....I will give this a try and post back with how it works out!

19 Feb 2025, 4:42 PM
#665
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

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

I have now completely uninstalled IH and everything (except the .htaccess) from the bmz_cache folder. I received the green confirmation in Admin when uninstalling IH that all uninstalled successfully and also verified by going through each folder in my site and comparing them to the IH files to insure they were all removed.

When I go to my site....I still have the exact same issue....duplicate additional images at a large size displaying only 1 image per row, when I have set to display 5. This shows it is not this plugin but something in the stock Zen Cart v.2.1 site. I will post in the General forum to try to get help with it there.

20 Feb 2025, 1:58 PM
#666
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

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

I have now installed IH (and deleted everything from the bmz_cache folder except for the .htaccess file), logged into my Admin panel, received the green Installed Successfully and set the IH Resize Images to Yes. It unfortunately has had no effect on my Additional Images.

I can go to Admin->Tools->IH and successfully use it to add additional images....so the plug in is working on that front....but something in the stock Zen Cart seems to not be relinquishing control over allow IH to resize.

Also, the stock Zen Cart seems to automatically have the LRG image open when going to a product page. When clicking on the main image, is then closes the LRG image window.

Would you be able to decipher this lat9 as to why IH is not being allowed to take over the image sizing control??

Thank you for your help.

23 Mar 2025, 4:55 PM
#667
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

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

I am about to upload quite a few new products. If I follow the image naming conventions as mentioned in the Wiki for the base images, I believe I can ignore the _LRG and _MED ones correct? I believe that IH should take care of this part. Or am I misunderstanding how this works.

We are naming the image files based on the item number. So base image is 25005.jpg and each additional is 25005_XX.jpg. I think this is all I need to do but before I upload hundreds of new items, I want to make sure it works like I think it does.

23 Mar 2025, 6:00 PM
#668
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

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

Yes g2ktcf....that is correct with your naming and what you need to upload. You just simply upload your image "25005.jpg" to the images folder and Image Handler takes care of the rest of the images.

23 Mar 2025, 6:09 PM
#669
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

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

One thing to add......

Once you have the Image Handler plugin installed, double check that you have gone into Admin->Configuration->Images and set the "IH to resize images" to true.

23 Mar 2025, 9:04 PM
#670
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

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

NWCE:

One thing to add......

Once you have the Image Handler plugin installed, double check that you have gone into Admin->Configuration->Images and set the "IH to resize images" to true.

We already use IH but I have not uploaded new products and images at one time. So it is already activated. Thanks!

24 Mar 2025, 7:33 AM
#671
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

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

I would also say always use subdirectories to subdivide your images/not put them all in one folder. If you don't bother now, you'll maybe have to bother later.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

30 Mar 2025, 9:35 PM
#672
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

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

I planned that from the git go.

Now I have a different issue (and I SWEAR I have seen this before). Some of my images are sideways. None them show sideways in any other view, just in ZC. I do not think this is IH but I figured I would start here.

30 Mar 2025, 10:13 PM
#673
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

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

g2ktcf:

I planned that from the git go.

Now I have a different issue (and I SWEAR I have seen this before). Some of my images are sideways. None them show sideways in any other view, just in ZC. I do not think this is IH but I figured I would start here.

I knew I had done this before! I previously used IrfanView to reset the EXIF data and orientation tag. I ran that as a batch file on the entire directory and, after uploading back the server, all the images are correct.

13 Apr 2025, 9:22 AM
#674
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

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

Hi All,
Running version 1.58a on a linux server running PHP Version: 8.1.31

I get this error when I clear image cache in image handler 5

Couldn't delete /home/xxxx/outdoorking.com.au/bmz_cache/p.

This only just happend after doing the install and I am getting some error logs one of which is below

[13-Apr-2025 14:26:20 Australia/Sydney] Request URI: /trimmers-and-trimmer-parts/petrol-trimmers/mcculloch-trimmers/mcculloch-spare-parts/mcculloch-trimmer-starter-parts/mcculloch-genuine-starter-assembly-575309001?cPath=1796_2154_2163_2164, IP address: 20.171.207.230, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/classes/bmz_image_handler.class.php(513): trigger_error()
#2 /includes/classes/bmz_image_handler.class.php(130): ih_image->calculate_size()
#3 /includes/functions/extra_functions/functions_bmz_image_handler.php(133): ih_image->__construct()
#4 /includes/classes/observers/ImageHandlerObserver.php(82): handle_image()
#5 /includes/classes/traits/NotifierManager.php(87): ImageHandlerObserver->update()
#6 /includes/modules/additional_images.php(113): base->notify()
#7 /includes/templates/bootstrap/templates/tpl_modules_additional_images.php(14): require('/home/xxxx')
#8 /includes/templates/bootstrap/templates/tpl_product_info_display.php(93): require('/home/xxxx')
#9 /includes/modules/pages/product_info/main_template_vars.php(163): require('/home/xxxx')
#10 /includes/templates/bootstrap/common/tpl_main_page.php(233): require('/home/xxxx')
#11 /index.php(94): require('/home/xxxx')
--> PHP Notice: Image Handler, calculate_size for /images/Product images directory/575309001_01.jpg returned false; image is corrupt. in /includes/classes/bmz_image_handler.class.php on line 513.

[13-Apr-2025 14:26:20 Australia/Sydney] Request URI: /trimmers-and-trimmer-parts/petrol-trimmers/mcculloch-trimmers/mcculloch-spare-parts/mcculloch-trimmer-starter-parts/mcculloch-genuine-starter-assembly-575309001?cPath=1796_2154_2163_2164, IP address: 20.171.207.230, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/classes/bmz_image_handler.class.php(513): trigger_error()
#2 /includes/classes/bmz_image_handler.class.php(130): ih_image->calculate_size()
#3 /includes/functions/extra_functions/functions_bmz_image_handler.php(133): ih_image->__construct()
#4 /includes/functions/html_output.php(215): handle_image()
#5 /includes/modules/additional_images.php(119): zen_image()
#6 /includes/templates/bootstrap/templates/tpl_modules_additional_images.php(14): require('/home/xxxx')
#7 /includes/templates/bootstrap/templates/tpl_product_info_display.php(93): require('/home/xxxx')
#8 /includes/modules/pages/product_info/main_template_vars.php(163): require('/home/xxxx')
#9 /includes/templates/bootstrap/common/tpl_main_page.php(233): require('/home/xxxx')
#10 /index.php(94): require('/home/xxxx')
--> PHP Notice: Image Handler, calculate_size for /images/Product images directory/575309001_01.jpg returned false; image is corrupt. in /includes/classes/bmz_image_handler.class.php on line 513.

[13-Apr-2025 14:26:20 Australia/Sydney] Request URI: /trimmers-and-trimmer-parts/petrol-trimmers/mcculloch-trimmers/mcculloch-spare-parts/mcculloch-trimmer-starter-parts/mcculloch-genuine-starter-assembly-575309001?cPath=1796_2154_2163_2164, IP address: 20.171.207.230, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/classes/bmz_image_handler.class.php(513): trigger_error()
#2 /includes/classes/bmz_image_handler.class.php(130): ih_image->calculate_size()
#3 /includes/functions/extra_functions/functions_bmz_image_handler.php(133): ih_image->__construct()
#4 /includes/functions/html_output.php(215): handle_image()
#5 /includes/modules/additional_images.php(130): zen_image()
#6 /includes/templates/bootstrap/templates/tpl_modules_additional_images.php(14): require('/home/xxxx')
#7 /includes/templates/bootstrap/templates/tpl_product_info_display.php(93): require('/home/xxxx')
#8 /includes/modules/pages/product_info/main_template_vars.php(163): require('/home/xxxx')
#9 /includes/templates/bootstrap/common/tpl_main_page.php(233): require('/home/xxxx')
#10 /index.php(94): require('/home/xxxx')
--> PHP Notice: Image Handler, calculate_size for /images/Product images directory/575309001_01.jpg returned false; image is corrupt. in /includes/classes/bmz_image_handler.class.php on line 513.

Any assistance would be a great help.

Outdoorking
Live Site https://www.outdoorking.com.au

13 Apr 2025, 11:21 AM
#675
edjac avatar

edjac

New Zenner

Join Date:
Oct 2008
Posts:
9
Plugin Contributions:
0

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

Hi

zen 2.1.0, IH 5.3.5

Small, medium or large images they all have an option to select an image extension (etc, jpg, webp, png...) but images on product listing pages don't (which ever option is selected, the extension stays the same as original file extension). However, the IH cashes product listing images (which is good). I am trying to have it converted from .jpg to .webp. Is there any option within the code to that quickly or based images would have to be uploaded in .webp format?

I would appreciate any input on that. Thank you.

13 Apr 2025, 11:31 AM
#676
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

Bruce1952:

Hi All,
Running version 1.58a on a linux server running PHP Version: 8.1.31

I get this error when I clear image cache in image handler 5

Couldn't delete /home/xxxx/outdoorking.com.au/bmz_cache/p.

This only just happend after doing the install and I am getting some error logs one of which is below

[13-Apr-2025 14:26:20 Australia/Sydney] Request URI: /trimmers-and-trimmer-parts/petrol-trimmers/mcculloch-trimmers/mcculloch-spare-parts/mcculloch-trimmer-starter-parts/mcculloch-genuine-starter-assembly-575309001?cPath=1796_2154_2163_2164, IP address: 20.171.207.230, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/classes/bmz_image_handler.class.php(513): trigger_error()
#2 /includes/classes/bmz_image_handler.class.php(130): ih_image->calculate_size()
#3 /includes/functions/extra_functions/functions_bmz_image_handler.php(133): ih_image->__construct()
#4 /includes/classes/observers/ImageHandlerObserver.php(82): handle_image()
#5 /includes/classes/traits/NotifierManager.php(87): ImageHandlerObserver->update()
#6 /includes/modules/additional_images.php(113): base->notify()
#7 /includes/templates/bootstrap/templates/tpl_modules_additional_images.php(14): require('/home/xxxx')
#8 /includes/templates/bootstrap/templates/tpl_product_info_display.php(93): require('/home/xxxx')
#9 /includes/modules/pages/product_info/main_template_vars.php(163): require('/home/xxxx')
#10 /includes/templates/bootstrap/common/tpl_main_page.php(233): require('/home/xxxx')
#11 /index.php(94): require('/home/xxxx')
--> PHP Notice: Image Handler, calculate_size for /images/Product images directory/575309001_01.jpg returned false; image is corrupt. in /includes/classes/bmz_image_handler.class.php on line 513.

[13-Apr-2025 14:26:20 Australia/Sydney] Request URI: /trimmers-and-trimmer-parts/petrol-trimmers/mcculloch-trimmers/mcculloch-spare-parts/mcculloch-trimmer-starter-parts/mcculloch-genuine-starter-assembly-575309001?cPath=1796_2154_2163_2164, IP address: 20.171.207.230, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/classes/bmz_image_handler.class.php(513): trigger_error()
#2 /includes/classes/bmz_image_handler.class.php(130): ih_image->calculate_size()
#3 /includes/functions/extra_functions/functions_bmz_image_handler.php(133): ih_image->__construct()
#4 /includes/functions/html_output.php(215): handle_image()
#5 /includes/modules/additional_images.php(119): zen_image()
#6 /includes/templates/bootstrap/templates/tpl_modules_additional_images.php(14): require('/home/xxxx')
#7 /includes/templates/bootstrap/templates/tpl_product_info_display.php(93): require('/home/xxxx')
#8 /includes/modules/pages/product_info/main_template_vars.php(163): require('/home/xxxx')
#9 /includes/templates/bootstrap/common/tpl_main_page.php(233): require('/home/xxxx')
#10 /index.php(94): require('/home/xxxx')
--> PHP Notice: Image Handler, calculate_size for /images/Product images directory/575309001_01.jpg returned false; image is corrupt. in /includes/classes/bmz_image_handler.class.php on line 513.

[13-Apr-2025 14:26:20 Australia/Sydney] Request URI: /trimmers-and-trimmer-parts/petrol-trimmers/mcculloch-trimmers/mcculloch-spare-parts/mcculloch-trimmer-starter-parts/mcculloch-genuine-starter-assembly-575309001?cPath=1796_2154_2163_2164, IP address: 20.171.207.230, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/classes/bmz_image_handler.class.php(513): trigger_error()
#2 /includes/classes/bmz_image_handler.class.php(130): ih_image->calculate_size()
#3 /includes/functions/extra_functions/functions_bmz_image_handler.php(133): ih_image->__construct()
#4 /includes/functions/html_output.php(215): handle_image()
#5 /includes/modules/additional_images.php(130): zen_image()
#6 /includes/templates/bootstrap/templates/tpl_modules_additional_images.php(14): require('/home/xxxx')
#7 /includes/templates/bootstrap/templates/tpl_product_info_display.php(93): require('/home/xxxx')
#8 /includes/modules/pages/product_info/main_template_vars.php(163): require('/home/xxxx')
#9 /includes/templates/bootstrap/common/tpl_main_page.php(233): require('/home/xxxx')
#10 /index.php(94): require('/home/xxxx')
--> PHP Notice: Image Handler,** calculate_size for /images/Product images directory/575309001_01.jpg returned false; image is corrupt**. in /includes/classes/bmz_image_handler.class.php on line 513.

Any assistance would be a great help.
In all cases, IH is reporting that the image is corrupt. It'll need to be re-generated.

13 Apr 2025, 11:39 AM
#677
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

edjac:

Hi

zen 2.1.0, IH 5.3.5

Small, medium or large images they all have an option to select an image extension (etc, jpg, webp, png...) but images on product listing pages don't (which ever option is selected, the extension stays the same as original file extension). However, the IH cashes product listing images (which is good). I am trying to have it converted from .jpg to .webp. Is there any option within the code to that quickly or based images would have to be uploaded in .webp format?

I would appreciate any input on that. Thank you.
You don't say what template is in use, but for most templates the product-listing pages use the 'base' product's image for display (as you've identified).

I'm not aware of any option (although web-searches can be your friend) to convert a set of .jpg images into their .webp format.

13 Apr 2025, 1:54 PM
#678
edjac avatar

edjac

New Zenner

Join Date:
Oct 2008
Posts:
9
Plugin Contributions:
0

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

Thank you for your answer. I am using my template which is based on responsive classic template.
My thinking was if product listing images are cashed (in the same way as small, medium and large images) then maybe changing the code or passing an argument to a function would allow for generating it as webp. I think there must be a way of doing it as the conversion from jpg to webp works. I would rather avoid changing the images off-side (time consuming). Having said that, my only option is to analyze the code. Or maybe somebody has done it before and can shed some light on it.

24 Apr 2025, 4:04 AM
#679
nldav avatar

nldav

New Zenner

Join Date:
Jan 2005
Posts:
55
Plugin Contributions:
0

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

NWCE:

I have upgraded my store to Zen Cart v.2.1.0 and am using IH 5.3.5 with pHp v8.3 on my server

[..]

Can anyone point me in the right direction on what I've done wrong??

Thanks!

Did this ever got solved?

I notice people talk about Zen Cart v.2.1.0 in correlation with this plugin but it's mentioned nowhere that its actually compatible with Zen Cart v.2.1.0. Its not being mentioned in the first topicpost neither on Github. I'm sort of ready to upgrade our shop from 1.5.7 (now finally running on PHP 8.0) but quite unsure to do this directly to v.2.1.0 due to the various development states of plugins.

30 Apr 2025, 12:26 AM
#680
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

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

Hi All,

Running version 1.58a on a linux server running PHP Version: 8.1.31

Template Bootstrap Version 3.7.4

CKEditor version 5

Image Handler version 5

Australia Post Shipping Module V2.5.7a

I don't know if I am doing something wrong or not and would like to know please.

  1. This is the product that I have two of under different Brands links below:
    https://www.outdoorking.com.au/murray-genuine-pulley-092852MA

https://www.outdoorking.com.au/brand-index-generic-and-genuine-a-to-z/masport-new-parts/masport-genuine-pulley-jackshaft-rideon-092852ma

  1. Note that I have one of the pulley box on the first link loaded as 092852MA.jpg

  2. On the second link I have loaded image of the pulley as 092852MA_01.jpg

  3. I thought that image 092852MA_01.jpg would also show up on the first link or am I wrong in assuming that?

Now to my second issue is with the water mark size.

In order to get it to show in a larger size do I have to save the image in different sizes for small, medium and large.

Some guidence on this would be appreciated as I don't want to start playing with it until I know what I should do.

Once again thank you for any assistance.,

Outdoorking
Live Site https://www.outdoorking.com.au