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 361 to 380 of 774
3 Apr 2020, 6:42 PM
#361
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

meksicus:

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;

:
What I'm saying is (performance issues aside) that files with the same names in different sub-directories aren't overwritten using the 'hashed' method.

4 Apr 2020, 6:08 AM
#362
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

Yes, you are right. I found naming difference.

I made this change in bmz_image_handler.class.php (5.0.0 line 286)
// $image_dirname = basename($image_path['dirname']);
$image_dirname = str_replace(DIR_WS_IMAGES,'',$image_path['dirname']);

It seems its ok now - i dont have conflicts, file names are readable, performance great.
I will put it now in my production envs.

4 Apr 2020, 11:35 AM
#363
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:

Yes, you are right. I found naming difference.

I made this change in bmz_image_handler.class.php (5.0.0 line 286)
// $image_dirname = basename($image_path['dirname']);
$image_dirname = str_replace(DIR_WS_IMAGES,'',$image_path['dirname']);

It seems its ok now - i dont have conflicts, file names are readable, performance great.
I will put it now in my production envs.
Thanks, @meksicus, I'll give that a look-over!

6 Apr 2020, 11:49 PM
#364
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 Mekicus , Lat9.

I store my Images like /Images/[Model Number]/[Model Number].jpg , _1.jpg etc. For the sake of organisation it has been great.

Current problem is I have had 2 product imports both produced by the same script. The first was 8000 line and next 2000. So the first 8000 works fine with IH5 but the next does not. I had a look within phpadmin to see if I could see a difference between imports but it looked all normal. Thinking of a third import to see what happens.

Will play with it some more today.

19 May 2020, 5:56 PM
#365
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

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

Hello!

If I am upgrading this module from v. 5.1.2 to the current version should uninstall the whole thing and then reinstall as new or just overwrite the files (I do not have any mods to merge in)?

Thanks for any advice!

Ellie Armsby

19 May 2020, 6:42 PM
#366
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

Your question indicates that you may be going about this the wrong way. Best practice is to not touch the current site and create a new test site.

Since many of your current mods might not work with the newer version, might be totally different versions, or may have been incorporated in the latest version; it's recommended to create a whole new test site.

If you have cPanel, there are instructions at https://docs.zen-cart.com/user/first_steps/how_do_i_install/#b-installing-the-zen-cart-fileset-using-cpanel

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

19 May 2020, 6:47 PM
#367
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

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

dbltoe:

Your question indicates that you may be going about this the wrong way. Best practice is to not touch the current site and create a new test site.

Since many of your current mods might not work with the newer version, might be totally different versions, or may have been incorporated in the latest version; it's recommended to create a whole new test site.

If you have cPanel, there are instructions at https://docs.zen-cart.com/user/first_steps/how_do_i_install/#b-installing-the-zen-cart-fileset-using-cpanel

Thanks for this. This is a test site. I created this a year ago for a client to test some things but just realized that there was a newer version of this plug in. Are you suggesting that I create a third copy of the the entire store just to upgrade this one plug in?

As I mentioned, I have not made any mods to the files involved in this plug-in.

Ellie Armsby

19 May 2020, 6:51 PM
#368
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

You may want to wait a few days for 1.5.7 but, I would never consider changes without "new" case being the number one consideration. There were lots of changes between 1.5.# And 1.5.6. Many more in the upcoming 1.5.7.

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

19 May 2020, 6:58 PM
#369
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

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

dbltoe:

but, I would never consider changes without "new" case being the number one consideration

I'm sorry if I am being dense, but I don't understand what you mean by this. Can you explain?

Thanks!

Ellie Armsby

19 May 2020, 7:01 PM
#370
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

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

dbltoe:

You may want to wait a few days for 1.5.7 but, I would never consider changes without "new" case being the number one consideration. There were lots of changes between 1.5.# And 1.5.6. Many more in the upcoming 1.5.7.

Also, I'm confused about your statement about version 1.5.6 and waiting for 1.5.7. The version I just downloaded from the plug-ins section is version 1.5.8 according to the read me.

Ellie Armsby

19 May 2020, 7:22 PM
#371
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

earmsby:

Also, I'm confused about your statement about version 1.5.6 and waiting for 1.5.7. The version I just downloaded from the plug-ins section is version 1.5.8 according to the read me.
@dbltoe was referring to the Zen Cart version, not that of Image Handler.

19 May 2020, 7:26 PM
#372
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

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

lat9:

@dbltoe was referring to the Zen Cart version, not that of Image Handler.

Oh, I see. thanks for that. I got my digits confused. 1.5.6 vs. 5.1.8 :smile:

I answered my own question about updating by (um...) finishing reading the installation read me :blush:

All set now.

Ellie Armsby

3 Jun 2020, 4:58 AM
#373
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

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

Hello, I couldn't find any Q like this so...

I want to have my images converted to Progressive Jpeg images not regular Jpeg, does anybody knows where can I find the file which should be changed and eventualy what should be changed.

I have found a method for that here https://stackoverflow.com/questions/41732652/convert-jpeg-to-a-progressive-jpeg-in-php

Thanks everybody!

My most recent work: magprom.net

3 Jun 2020, 10:58 AM
#374
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

perfumbg:

Hello, I couldn't find any Q like this so...

I want to have my images converted to Progressive Jpeg images not regular Jpeg, does anybody knows where can I find the file which should be changed and eventualy what should be changed.

I have found a method for that here https://stackoverflow.com/questions/41732652/convert-jpeg-to-a-progressive-jpeg-in-php

Thanks everybody!
That's going to be somewhere in /includes/classes/bmz_image_handler_class.php. Unfortunately, I don't have time to delve into more details at this time.

19 Jun 2020, 1:14 AM
#375
leon2lil avatar

leon2lil

New Zenner

Join Date:
Jan 2012
Posts:
38
Plugin Contributions:
0

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

Hi,
I've installed IH5 on a fresh 156c install minimal plugins and 1 template fluorspar.
It seems to be installed correctly but when I turn on resize images.
In admin, the base image goes blank and on the website, the image disappears but a link remains when I click on the link, it says image not found.
When I add a second image, the second image seems to work perfectly.
Any help with this please

Thanks in advanced

19 Jun 2020, 11:47 AM
#376
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

leon2lil:

Hi,
I've installed IH5 on a fresh 156c install minimal plugins and 1 template fluorspar.
It seems to be installed correctly but when I turn on resize images.
In admin, the base image goes blank and on the website, the image disappears but a link remains when I click on the link, it says image not found.
When I add a second image, the second image seems to work perfectly.
Any help with this please

Thanks in advanced
It sounds like there might be two issues at play on your site, the first (I'm guessing) to be a permissions' issue of some type to cause the admin base image to "go blank". That could also be affecting the storefront operation, but let's see what's up in the admin first.

Are there any myDEBUG-adm-*.log files present in the site's /logs directory? If so, could you find one that occurred during the image_handler.php's execution and post that here within the "CODE" tags (that big # in the menu bar while your writing your post)? Remember, too, to xxx-out the name of your admin sub-directory as it'll be present as part of the log's data.

What version of PHP is being run?

When you inspect the site's /bmz_cache sub-directory, what permissions does it have? Are the permissions the same as those associated with the site's /logs sub-directory?

3 Jul 2020, 11:44 PM
#377
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

Not certain this is a bug but I wanted to report it just in case. includes/modules/YOUR_TEMPLATE/main_product_image.php sets $products_image_large, then calls the notifier. The notifier returns $main_image_handled = true, so the original definition of $products_image_large isn't changed. But that file does not exist! and because $main_image_handled = true, the branch that checks if $products_image_large actually exists is skipped.

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.

13 Jul 2020, 5:14 PM
#378
clam_man avatar

clam_man

New Zenner

Join Date:
Jun 2019
Location:
Austin TX
Posts:
65
Plugin Contributions:
0

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

I've been having an issue with ImageHandler5 for quite a while now. I wonder if anyone has run into a similar problem. I'm using ImageHandler 5.1.4 on ZC version 1.5.6b and the carousel works very rarely on few products. It used to work great on older versions of both ImageHandler and ZenCart but no more. I checked to see if there were any errors in the console and none are any different between pages with carousels that do work and those that don't. Has anyone come into an issue similar to this in the past?

14 Jul 2020, 10:56 AM
#379
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

clam_man:

I've been having an issue with ImageHandler5 for quite a while now. I wonder if anyone has run into a similar problem. I'm using ImageHandler 5.1.4 on ZC version 1.5.6b and the carousel works very rarely on few products. It used to work great on older versions of both ImageHandler and ZenCart but no more. I checked to see if there were any errors in the console and none are any different between pages with carousels that do work and those that don't. Has anyone come into an issue similar to this in the past?
Sorry you're having issues. Which carousel and what template is in use?

14 Jul 2020, 11:08 AM
#380
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:

Not certain this is a bug but I wanted to report it just in case. includes/modules/YOUR_TEMPLATE/main_product_image.php sets $products_image_large, then calls the notifier. The notifier returns $main_image_handled = true, so the original definition of $products_image_large isn't changed. But that file does not exist! and because $main_image_handled = true, the branch that checks if $products_image_large actually exists is skipped.
If the observer of that notification has indicated that it has handled that main-image, then it's that observer's responsibility to ensure that those image-related variables are 'sane'.