Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 2 (for ZC v1.3.8 ONLY) Support

Image Handler 2 (for ZC v1.3.8 ONLY) Support

Views: 2,510,389

Results 5,861 to 5,880 of 7,094
7 Oct 2010, 3:37 AM
#5861
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Image Handler 2 (for ZC v1.3.8 ONLY) Support

What version of Image handler are you using?

because when I look at the imagehandler js file it is from an extremely old version of IH 2, the latest version is available in the downloads

lvanderb:

I've just upgraded a client's site from 1.3.7 to 1.3.9g.

I had Image Handler2 installed. We used it for the zoom and watermark.

What is strange is that both the watermark and the zoom work everywhere except for the product page. Take a look @ https://www.uncommonscissors.com.

I've done what debugging I could and searched this thread, I've uninstalled, cleared the cache (ftp'd in and removed all the images) and reinstalled IH2.

Mind you, it is working, just not on the product page - well, it does work on the "also purchased" module that is on the product page.

Can anyone help?

Thanks!
Linda

7 Oct 2010, 11:03 AM
#5862
lvanderb avatar

lvanderb

New Zenner

Join Date:
Mar 2006
Posts:
27
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Thanks so much for your response!

I found my brain last night and upgraded to the latest version and all is well.

Linda

8 Oct 2010, 7:01 PM
#5863
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Hi Everyone! I have a question concerning general usage.

my bmz_cache folder has the tendency to get large by itself (150+ MB :shocking:) and I must delete folders to free up some disk space.

How often does one clean out this folder? or do I need to purchase more disk space on my server?

9 Oct 2010, 1:56 AM
#5864
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

dharma:

Hi Everyone! I have a question concerning general usage.

my bmz_cache folder has the tendency to get large by itself (150+ MB :shocking:) and I must delete folders to free up some disk space.

How often does one clean out this folder? or do I need to purchase more disk space on my server?

in admin-tools-imageHandler2->Admin tab, you can clear the bmz_cache, which will delete all images in it, the images will of course be recreated when they are called, but this is good for getting rid of images of products you have deleted, if you regularly delete lots of products.

Another thing to check is the compression setting in admin - images it should be around 80 - 85 any higher is just wasteful

10 Oct 2010, 2:43 AM
#5865
524cw avatar

524cw

New Zenner

Join Date:
Sep 2008
Posts:
53
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I got everything working how I want, fual slimbox is in there and playing nicely with IH2.

My site was running a little slow and I thought maybe it was my IH2 settings, so I had a poke around in the bmz_cache folder. It's writable (777) but nothing has been written to it since I installed IH2. There's a few empty folders inside but no files.

Any ideas what I've done wrong? I have plenty of web space and I would definitely like to cache the resized images to make things as fast-loading as possible.

10 Oct 2010, 3:51 AM
#5866
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

524cw:

I got everything working how I want, fual slimbox is in there and playing nicely with IH2.

My site was running a little slow and I thought maybe it was my IH2 settings, so I had a poke around in the bmz_cache folder. It's writable (777) but nothing has been written to it since I installed IH2. There's a few empty folders inside but no files.

Any ideas what I've done wrong? I have plenty of web space and I would definitely like to cache the resized images to make things as fast-loading as possible.

How do you know imagehandler is working? as image handler should be writing to the bmz-cache,
What errors are you seeing in your /cache file?
A link to your site would make it easy for us to deduce what is going on

You did upload the files in the Your-Template folder to the template you are using
Did you merge the zencart and sliwbox files or did you just overwrite?

10 Oct 2010, 5:24 AM
#5867
524cw avatar

524cw

New Zenner

Join Date:
Sep 2008
Posts:
53
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Looks like you solved the problem. During this testing phase before the store is published, I have to have php safe mode on. I didn't realize it would cause errors for IH2.

[10-Oct-2010 01:08:56] PHP Warning: imagejpeg() [<a href='function.imagejpeg'>function.imagejpeg</a>]: SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /var/www/vhosts/website.com/httpdocs/zencart/bmz_cache/6

This problem should resolve when I move to the live environment with php safe mode off.

Thanks for your help, I appreciate it very much.

10 Oct 2010, 5:27 AM
#5868
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

524cw:

Looks like you solved the problem. During this testing phase before the store is published, I have to have php safe mode on. I didn't realize it would cause errors for IH2.

This problem should resolve when I move to the live environment with php safe mode off.

Thanks for your help, I appreciate it very much.
I believe the readme for the latest version (Rev 8c) covers the non-support for safe mode with this module..

10 Oct 2010, 6:59 PM
#5869
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

DivaVocals:

For those concerned about this, we've covered this in the Rev8c release through an optional directive in the.htaccess file that is in the bmz_cache folder.

<snip>

FYI, though this seems like an issue it is NOT a TRUE security issue at all.. What IS (and has been corrected in Rev 8c) a real concern with regards to IH2 is that the bmz-Cache folders in older version are not fully protected from the upload of potentially malicious scripts.. The Rev 8c .htaccess file addresses this concern. (We are using the same .htaccess that has been added to many folders in the 1.3.9 Zen Cart releases)

Hello,

I just installed IH but at first it didn't show the pictures on my server. I then used the clear cache (which wasn't really created yet, but it worked :smile:)

Found out that the clear cache also deletes the .keep and the .htaccess files in that folder. When i reuploaded the .htaccess file... beng, pictures not available anymore.

Am i the only one running into this?
I use mainly .jpg files on my server.

Thanks,
Jeroen

10 Oct 2010, 7:13 PM
#5870
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

thanx for revamping this in a workable version, really a very useful add-on for my shop and it will be a timesaver for me.

if someone is bored i would really love

  • option to make small/medium square so the product listings layout won't be affected by either the landscape or portrait layout of the picture. (ie 100x100, 200x200 resizes)

  • additional image with different format not recognised.
    this is minor, i know: if base image is image.jpg and you add say image_1.jpg via ftp, then adding another image via gui will be image_01.jpg. They will still both show as additional images, not sure if it may create a problem.

  • no link from product page.
    should be easy to make a link from product page to IH page with the actual product allready selected. I just hate that little scroll-box for navigating...

anyway, great effort, great module, THANKS!
Jeroen

10 Oct 2010, 8:42 PM
#5871
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

nagelkruid:

Hello,

I just installed IH but at first it didn't show the pictures on my server. I then used the clear cache (which wasn't really created yet, but it worked :smile:)Not clear here what you mean.. Are the images not showing in your store or are you saying it's not caching JPG images..

nagelkruid:

Found out that the clear cache also deletes the .keep and the .htaccess files in that folder.I've confirmed this is indeed what happens.. Not sure what the solution is, but this is indeed the behavior..

nagelkruid:

if someone is bored i would really love

  • option to make small/medium square so the product listings layout won't be affected by either the landscape or portrait layout of the picture. (ie 100x100, 200x200 resizes)

While it might be a great feature, Image Handler still doesn't provide this functionality. Perhaps someone will decide they are bored and add this feature..

In the menatime, the easiest way to get square images like you want is to edit your large product images and category images with equivalent dimensions before uploading them and IH2 will take care of sizing the small and medium images accordingly. There are a number of programs that will edit aspect ratios for a batch of images. Picassa being one such program..

nagelkruid:

  • additional image with different format not recognised.
    this is minor, i know: if base image is image.jpg and you add say image_1.jpg via ftp, then adding another image via gui will be image_01.jpg. They will still both show as additional images, not sure if it may create a problem.FYI.. Zen Cart without IH2 doesn't support product images and additional images with mixed filetypes types. (main image JPG, additional images GIF)
10 Oct 2010, 10:37 PM
#5872
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

nagelkruid:

Found out that the clear cache also deletes the .keep and the .htaccess files in that folder. When i reuploaded the .htaccess file... beng, pictures not available anymore.

Am i the only one running into this?
I use mainly .jpg files on my server.

Thanks,
Jeroen

I have the version before all the revamping of it and do not have either the .htaccess nor the .keep

never had them at all and it works beautifully.

10 Oct 2010, 10:56 PM
#5873
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

DarkAngel:

I have the version before all the revamping of it and do not have either the .htaccess nor the .keep

never had them at all and it works beautifully.
The .htaccess file is important as it includes important security directives which provide important protections to the bmz_cache folder.. (which is why the same .htaccess file has been included in many of the folders for the new version of Zen Cart)It was an important part of the last release, and I do not recommend to ANYONE foregoing this file..

Admittedly I've never been entirely sure of the purpose of the .keep file.. My guess is this is another piece of leftover legacy stuff from the original IH2 release and it's importance is negligible.. (I would need to test to be VERY sure of this..)

11 Oct 2010, 8:03 AM
#5874
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

DivaVocals:

Not clear here what you mean.. Are the images not showing in your store or are you saying it's not caching JPG images..

The images are cached, but it appears the .htaccess is preventing them from being shown in the store. (i just see empty places where the pictures should be) Once i remove the .htaccess, the pictures do show up again.

DivaVocals:

In the menatime, the easiest way to get square images like you want is to edit your large product images and category images with equivalent dimensions before uploading them and IH2 will take care of sizing the small and medium images accordingly. There are a number of programs that will edit aspect ratios for a batch of images. Picassa being one such program..
Thanks, but after 4 years of handcrafting aprox. 2500 images (times 3 for small/med/large) i am very determined to never touch a picture editor again if we have software that can do it for us ;) Thats why i would also love to have a minimum function for the large pictures, so when they are not meeting these requirements the image gets scaled up to the min requirement.

11 Oct 2010, 10:07 AM
#5875
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

DarkAngel:

I have the version before all the revamping of it and do not have either the .htaccess nor the .keep
never had them at all and it works beautifully.

Thanks, works better without the files than with them. yes :cool:

Anyone still actively coding this module?
I have a working concept of "squaring" the images in my test.

11 Oct 2010, 2:31 PM
#5876
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

nagelkruid:

The images are cached, but it appears the .htaccess is preventing them from being shown in the store. (i just see empty places where the pictures should be) Once i remove the .htaccess, the pictures do show up again.Then it sounds like it's a matter of modifying the directive in the .htaccess..

nagelkruid:

Thanks, works better without the files than with them. yes :cool:Just wanted to post this for folks who follow this thread.. Deleting the .htaccess file in the bmz_cache folder is not a recommended course of action.. The commands in the htaccess file are to ensure that other files cannot be written to your bmz_cache folder.. With regards to jpg files, the .htaccess file includes filters for jpeg, jpeg, JPG, or JPEG files..

That said it's possible that your host's Apache implementation is not correctly reading the regular expression correctly. Why not try modifying the directive to EXPLICITLY filter for jpg or JPG instead of deleting the .htaccess file??

This is the line you should modify:

<FilesMatch ".*\.(jpe?g|JPE?G|gif|GIF|png|PNG|swf|SWF)$" >
```Try changing it to this:

<FilesMatch ".*.(jpg|JPG|gif|GIF|png|PNG|swf|SWF)$" >

> **nagelkruid:**
>
> Thanks, but after 4 years of handcrafting aprox. 2500 images (times 3  for small/med/large) i am very determined to never touch a picture  editor again if we have software that can do it for us ;) Thats why i  would also love to have a minimum function for the large pictures, so  when they are not meeting these requirements the image gets scaled up to  the min requirement.Only made the suggestion since what you are asking for is not in the immediate plans for those of us working on IH2

> **nagelkruid:**
>
> Anyone still actively coding this module?
> I have a working concept of "squaring" the images in my test.There are three of us who have been "tending to" and caring for this module (as demonstrated by the last few releases).. Would love to see your conceptual version..
11 Oct 2010, 5:53 PM
#5877
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

DivaVocals:

Only made the suggestion since what you are asking for is not in the immediate plans for those of us working on IH2

There are three of us who have been "tending to" and caring for this module (as demonstrated by the last few releases).. Would love to see your conceptual version..

ill drop it in pm, mind you it is programmed very conceptual and the comments are in dutch :smartalec:

12 Oct 2010, 2:08 AM
#5878
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I'm back...

Diva are you there?

Okay, I've downloaded WinMerge....question is, how do I know which files to merge? Follow Fual Slimbox php code or IH2 code? I'm not very familiar with a lot of php especially the "if" and all those php rules...

Also, in review, the two should be able to work together seamlessly. In both read me files for Fual Slimbox and IH2 they don't mention the need of merging files so I don't know where to start.

I also tried to do an update to IH2 as it's been updated recently. Broke my cart. I'm currently doing a backup. :frusty:

I was fine with IH2, the only reason that I added Fual Slimbox was because I prefered the overlay type of popup vs. the windows popup that IH2 offers. So sad!

12 Oct 2010, 5:10 AM
#5879
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

deleted

12 Oct 2010, 5:18 AM
#5880
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

joyjoy:

Okay, I've downloaded WinMerge....question is, how do I know which files to merge? Follow Fual Slimbox php code or IH2 code? I'm not very familiar with a lot of php especially the "if" and all those php rules...What you need to do is look at the files for BOTH modules.. look for the files they both have in common and using your file comparison tool, you'll need to merge the code from BOTH Fual Slimbox and IH2 into one merged file.. You need BOTH the Fual Slimbox code and the IH2 code in order for BOTH modules to work together.. I hope that's a little clearer..

*ETA: I took a QUICK look at IH2 and Fual Slimbox.. There is one file in common between these two modules:
includes/modules/YOUR_TEMPLATE/additional_images.php

Use your file comparison tool and merge the Fual Slimbox code into the includes/modules/YOUR_TEMPLATE/additional_images.php from your IH2 files and BOTH should work together..*

joyjoy:

Also, in review, the two should be able to work together seamlessly. In both read me files for Fual Slimbox and IH2 they don't mention the need of merging files so I don't know where to start.They DO work together, but that requires that the files shared in common by both modules have to be merged so that the code for BOTH IH2 and Fual Slimbox are in ONE file.

joyjoy:

I also tried to do an update to IH2 as it's been updated recently. Broke my cart. I'm currently doing a backup. :frusty:Not sure how this happened.. Installing IH2 should work without breaking anything.. That said IF you have installed other modules which modify files also used by IH2 and you do not file merge them that could create issues.. This is why I ALWAYS make a backup of my store (files as well as the DB) BEFORE I install any modules so that if I am installing a module and anything goes wrong I can EASILY roll back to the last working state..

joyjoy:

I was fine with IH2, the only reason that I added Fual Slimbox was because I prefered the overlay type of popup vs. the windows popup that IH2 offers. So sad!There are many shopowners who use both IH2 with either Fual Slimbox or Zen Lightbox together.. But you MUST take the time to merge the common files so that they will work together..

I hope this helps..:smile: