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 581 to 600 of 774
30 Aug 2023, 12:42 PM
#581
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

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

That appears to fix it. Wonder what went wrong? Oh, well. Thanks so much for the help!

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

30 Aug 2023, 2:22 PM
#582
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

@delia, it could have been a way-old version that the IH auto-update didn't "know from". I'm glad that resetting the configuration so that all the keys are now available corrected your issue.

18 Feb 2024, 6:53 PM
#583
andy_77 avatar

andy_77

New Zenner

Join Date:
Apr 2023
Location:
UK
Posts:
64
Plugin Contributions:
0

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

Is there an option with this plugin to resize existing images?

Looking at having set image sizes for mobile, and desktop, and then specifying which size should be loaded depending on device, with some css, to help with website speed, rather than just the one size image which is uploaded with v1.5.8.

Kind Regards,

Andy

2 Apr 2024, 9:47 AM
#584
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

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

At admin-> images you can set another image size. Then clear the IH cache. This will create new images with the desired size.

roller-aus-blech.de
Selling on eBay? Use the fee calculator: https://webconcept.one/en/ebay-fee-calculator/

2 Apr 2024, 11:28 AM
#585
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

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

andy_77:

Is there an option with this plugin to resize existing images?

Looking at having set image sizes for mobile, and desktop, and then specifying which size should be loaded depending on device, with some css, to help with website speed, rather than just the one size image which is uploaded with v1.5.8.

Kind Regards,

Andy

This plugin resizes a single 'large' image depending on where it is shown within the website i.e. small (product listing..), medium (product page image) and large (enlarged product page image). It will not resize images depending on device.

Simon

2 Apr 2024, 12:37 PM
#586
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

andy_77:

Is there an option with this plugin to resize existing images?

Looking at having set image sizes for mobile, and desktop, and then specifying which size should be loaded depending on device, with some css, to help with website speed, rather than just the one size image which is uploaded with v1.5.8.

Kind Regards,

Andy
@andy_77, what template is in use? IH's image-sizing depending on the height and width being requested by the function zen_image. When IH is present, that function passes the image-tag creation request on to IH and the cached image of the requested size is automatically created.

It'll be easier to do what you want if your site is based off of the built-in responsive_classic template, since that template is aware of whether it is formatting for a phone, tablet or desktop device.

5 Apr 2024, 1:09 PM
#587
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

Has this been tested with ZC2.0.rc2? I am assuming that this should be the FIRST plugin after a clean install. Is that correct?

5 Apr 2024, 2:06 PM
#588
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

g2ktcf:

Has this been tested with ZC2.0.rc2? I am assuming that this should be the FIRST plugin after a clean install. Is that correct?
Tested w/ zc200-rc2 (plus changes as of this posting)!

I suppose the IH installation should be one of the early ones to be installed post-zc_install/upgrade so that it can start "chewing" on the images' resizing.

7 Apr 2024, 12:13 PM
#589
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

Thank you!

7 Apr 2024, 12:23 PM
#590
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

lat9:

Tested w/ zc200-rc2 (plus changes as of this posting)!

Are these changes posted? The plugin was last updated in 2023 and the version on Github did not show anything recent both for v5.4.3. Or am I looking in the wrong place? Sorry for stupid questions this morning.

7 Apr 2024, 1:02 PM
#591
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

g2ktcf:

Are these changes posted? The plugin was last updated in 2023 and the version on Github did not show anything recent both for v5.4.3. Or am I looking in the wrong place? Sorry for stupid questions this morning.
That comment was referring to the Zen Cart 2.0.0-rc2 release (https://github.com/zencart/zencart%29; IH v5.4.3 is what I've validated on that forthcoming release.

7 Apr 2024, 2:16 PM
#592
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

lat9:

That comment was referring to the Zen Cart 2.0.0-rc2 release (https://github.com/zencart/zencart%29; IH v5.4.3 is what I've validated on that forthcoming release.

Got it! Thank you.

12 Apr 2024, 8:06 PM
#593
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

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

IH 5.3.1 on ZC 1.5.7. Can I

a) Disable the image (additional replaces main on hover).
b) Display additional images as full size images just like the main image
c) Fix the issue where a trailing %27 instead of single quote causes the popup to fail.

Thanks!

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

30 Apr 2024, 6:49 PM
#594
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

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

I'm primarily interested in (b)

b) Display additional images as full size images just like the main image

I have received a few inquiries about this and haven't figured out how to tweak it.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

30 Apr 2024, 7:00 PM
#595
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

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

IH is truly superiour!

One thing I am working at is a mobile solution for lists.
I have set 240x180px at the moment (for 360px viewport).
Modern smartphones with smaller displays uses small viewports but have a real high resolution.
So 240x180px "fit" but don't look good as expected.

For the main (large) image I set up a high resolution which I reduced via CSS for Desktop.
This allows me to display brilliant images for mobile and as expected images for desktop.

The handling for list images comes next.
This is just a suggestion of mine.
Please don't feel annoyed.

roller-aus-blech.de
Selling on eBay? Use the fee calculator: https://webconcept.one/en/ebay-fee-calculator/

30 Apr 2024, 7:20 PM
#596
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

swguy:

I'm primarily interested in (b)

b) Display additional images as full size images just like the main image

I have received a few inquiries about this and haven't figured out how to tweak it.
That will require a change to a site's template's version of modules/additional_images.php

30 Apr 2024, 7:29 PM
#597
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

swguy:

IH 5.3.1 on ZC 1.5.7. Can I

a) Disable the image (additional replaces main on hover).
b) Display additional images as full size images just like the main image
c) Fix the issue where a trailing %27 instead of single quote causes the popup to fail.

Thanks!
a) Sounds like an update to the site's modules/main_product_image.php is in order.
b) Answered above.
c) Why would an image-file's name end with a single-quote (')?

30 Apr 2024, 8:36 PM
#598
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

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

c) Why would an image-file's name end with a single-quote (')?

It doesn't but the end quote in the function call is somehow converted to %27 when the page is rendered. I think this is a bug in an older version of Zen Cart (which this is) but I can't remember the fix.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

30 Apr 2024, 9:36 PM
#599
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

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

swguy:

IH 5.3.1 on ZC 1.5.7. Can I

a) Disable the image (additional replaces main on hover).
b) Display additional images as full size images just like the main image
c) Fix the issue where a trailing %27 instead of single quote causes the popup to fail.

Thanks!

modules/additional_images.php - about line 30
$thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)

2.00 lists it as medium size - I changed that to small due to the new image modals popups.

full size? Dunno. That would be a php task to determine the image size first. There may be code in the mod that determines the actual size - I don't recall ever seeing it. But actual size could lead to disastrous effect. The main product image size is the medium size by the way so one can use the medium width and make sure the sizing of the product image is adequate. I can't image one would put up addtional images way larger than the product main image. Though folks do get creative sometimes.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

4 Jun 2024, 4:00 PM
#600
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

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

PHP 8.3.7 // ZC 2.0.1 // Image Handler 5.3.4 (as last available in the plugin directory)

Installation went fine But noticed that when I visit the admin landing page of Image Handler 5, with nothing selected, I'm given the following error messages:

[04-Jun-2024 11:56:29 America/New_York] Request URI: /justuptown/justoffice/index.php?cmd=image_handler, IP address: 127.0.0.1, Language id 1
#0 \justoffice\includes\modules\products_previous_next.php(94): zen_debug_error_handler()
#1 \justoffice\includes\ih_manager.php(64): require('E:\\xampp\\htdocs...')
#2 \justoffice\image_handler.php(98): require('E:\\xampp\\htdocs...')
#3 \justoffice\index.php(16): require('E:\\xampp\\htdocs...')
--> PHP Warning: Undefined variable $previous in \justoffice\includes\modules\products_previous_next.php on line 94.


[04-Jun-2024 11:56:29 America/New_York] Request URI: /justuptown/justoffice/index.php?cmd=image_handler, IP address: 127.0.0.1, Language id 1
#0 \justoffice\includes\modules\products_previous_next_display.php(24): zen_debug_error_handler()
#1 \justoffice\image_handler.php(195): require('E:\\xampp\\htdocs...')
#2 \justoffice\index.php(16): require('E:\\xampp\\htdocs...')
--> PHP Warning: Undefined variable $position in \justoffice\includes\modules\products_previous_next_display.php on line 24.


[04-Jun-2024 11:56:29 America/New_York] Request URI: /justuptown/justoffice/index.php?cmd=image_handler, IP address: 127.0.0.1, Language id 1
#0 \justoffice\includes\modules\products_previous_next_display.php(30): zen_debug_error_handler()
#1 \justoffice\image_handler.php(195): require('E:\\xampp\\htdocs...')
#2 \justoffice\index.php(16): require('E:\\xampp\\htdocs...')
--> PHP Warning: Undefined variable $previous in \justoffice\includes\modules\products_previous_next_display.php on line 30.


[04-Jun-2024 11:56:29 America/New_York] Request URI: /justuptown/justoffice/index.php?cmd=image_handler, IP address: 127.0.0.1, Language id 1
#0 \justoffice\includes\modules\products_previous_next_display.php(47): zen_debug_error_handler()
#1 \justoffice\image_handler.php(195): require('E:\\xampp\\htdocs...')
#2 \justoffice\index.php(16): require('E:\\xampp\\htdocs...')
--> PHP Warning: Undefined variable $next_item in \justoffice\includes\modules\products_previous_next_display.php on line 47.

I've since reinstalled and cleared the add on, but still am treated to the same error message. I'm 99% sure this is because I'm running PHP 8 but don't know what change to make here to make this PHP 8 safe.

Any help here with this warning debug message I've received?