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,729

Results 3,721 to 3,740 of 7,094
8 Apr 2009, 6:32 PM
#3721
need_help avatar

need_help

Zen Follower

Join Date:
Feb 2009
Posts:
205
Plugin Contributions:
0

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

I am using Zen Lightbox 4 with Image Handler 2.

I can hover over a small image in Firefox and it shows up large but in Internet Explorer nothing shows and it says there is an error on the page.

The error is this.

Page Y is null or not an object Line24
jscript_imagehover.js

This is located in my template and i use Watermelon template.

How does one fix this issue with Internet Explorer ?

8 Apr 2009, 10:57 PM
#3722
honrheart avatar

honrheart

Zen Follower

Join Date:
Jul 2008
Posts:
139
Plugin Contributions:
0

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

I had to turn mine off because customers were complaining about the Red X's so the link above won't work now. If some can help me please let me know. Someone suggested the problem is that some of my manufacturers have previews that are png while some are jpg and others that are gif. I may just have to kiss this idea goodbye

8 Apr 2009, 11:41 PM
#3723
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

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

yeah, i have toe same problem and no one here had any good suggestions.. all jpg and gif files work fine but png files just don't work with this software.

9 Apr 2009, 6:21 AM
#3724
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

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

honrheart:

Ok I'm giving IH2 one more shot. Some features seems to work but I still have red x's on the images that are PNG files. What can I do to fix this? Here's an example so you see what I mean:

http://treasuredscraps.com/store/index.php?main_page=index&cPath=93_7

tyankee:

yeah, i have toe same problem and no one here had any good suggestions.. all jpg and gif files work fine but png files just don't work with this software.

Is your png files 16 or 32 bits?

Also have you tried to change the png file to gif or jpegs?
Instead of saving image files from your graphic program as png, choose jpeg.

Ok, You did read the manual?
You do know that IH can change the image format for you?
(gif, jpeg, png)
You can select what format for each image size.

9 Apr 2009, 6:24 AM
#3725
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

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

need_help:

I am using Zen Lightbox 4 with Image Handler 2.

I can hover over a small image in Firefox and it shows up large but in Internet Explorer nothing shows and it says there is an error on the page.

The error is this.

Page Y is null or not an object Line24
jscript_imagehover.js

This is located in my template and i use Watermelon template.

How does one fix this issue with Internet Explorer ?

You can try this.
http://www.zen-cart.com/forum/showthread.php?p=517658#post517658

9 Apr 2009, 7:07 AM
#3726
need_help avatar

need_help

Zen Follower

Join Date:
Feb 2009
Posts:
205
Plugin Contributions:
0

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

tophand:

You can try this.
http://www.zen-cart.com/forum/showthread.php?p=517658#post517658

Excellent.

That fixed the issue and it works with Internet Explorer 8 as well as 7 for those that are interested.

Now i just need to get image handler to zoom on the sub categories images if thats possible - Where it says for example showing 5 of 46 products etc etc. I have five images per page and no zoom for them.

Ill try a search of the thread.

9 Apr 2009, 9:22 AM
#3727
need_help avatar

need_help

Zen Follower

Join Date:
Feb 2009
Posts:
205
Plugin Contributions:
0

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

capnhairdo:

Hi,

Just installed IH2 on our 1.3.7.1 cart and it's working great. Brilliant contribution! But I had some minor issues:

  1. couldn't get zooms working on category product listings (but worked on New Products, Featured Products, etc.)
  2. couldn't get zooms working on medium (product page) images

After pulling apart the IH code, I learned some stuff that might be helpful to other IH users, which I couldn't find in the documentation at BreakMyZenCart. (Apologies if this has already been posted...I haven't read through all 215 pages of this thread to find out, and can't seem to find anything relevant by searching.)

Problem #1: ImageHandler handles three "sizetypes" of images: "small", "medium" and "large". It determines which sizetype it's working with in two ways:

  1. for medium and large images, it searches for "_medium" and "_large" in the filenames
  2. for small images, it checks to see if the width and height of the image are IDENTICAL to the "Small Image Width" and "Height" set in Admin > Configuration > Images. If the dimensions are not identical, and the image is not already identified as a medium or large image, it's labelled as "generic", and no zoom behavior can be applied.

Therefore, to enable zoom behavior on ALL images (e.g., category product listings, "new product" listings, "featured product" listings, etc.), you first need to make sure that the following options MATCH the "Small Image Width" and "Height" in Admin > Configuration > Images:

Image - Product Listing
Image - Product Listing
Image - Product New Listing
Image - Product New Listing
Image - New Products Width
Image - New Products Height
Image - Featured Products Width
Image - Featured Products Height
Image - Product All Listing Width
Image - Product All Listing Height

Problem #2: I discovered that the IH get_additional_parameters() function in includes\classes\bmz_image_handler.class.php, which adds the zoom behavior to images, checks to see if the current image sizetype allows zooming (an option set for small and medium images in Admin > Configuration > Images). However, it's limited to sizetype == 'small' on the previous line, excluding the possibility that medium images can have zooms.

I changed this sizetype != 'large', so that the only images that are excluded from having zooms are large ones.

Once that was working, and I had zooms on both small and large images, I realized it was pretty silly to zoom the "No picture available" pictures. I made some minor tweaks in the IH files to prevent zooms on these default pictures. I also tweaked the main_product_image template so that if a zoom is applied to a medium image, it does not also show the default ZenCart "larger image" caption and link to the popup (which seems redundant).

Here's my tweaks as a patch. Would love it if somebody could download and test these changes and let me know what they think!

Fabulous work.

My medium images on the product info page now zoom to full size without using Lightbox and i can still use lightbox for the additional images and it will zoom it to full size or people can zoom the additional images to medium using image handler.

Also got the subcategories zooming although it's unfortunate i need to set them at the same size as the small image but hey nothing's perfect.

Great work and extremely useful and it works in both Internet Explorer 8 and Firefox 3.

Now all we need is for someone to figure out how to enable image handler to work with the Opera web browser.

9 Apr 2009, 3:42 PM
#3728
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

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

watermark trouble.

i have zc 1.3.8a, ih2 and jqlightbox installed (among many other mods).

all of my images are in the /images folder.

i uploaded all of my images via ftp using the zc naming convention name.jpg, name_01.jpb, name_02.jpg, etc.

i have watermark_MED.png in the /images/medium folder
I have watermark_LRG.png in the /images/large folder

bmz_cache and images folder match permissions.

watermark medium images and large images set to yes

when i go to ih2 manager, it shows the product default size, medium size and large size images with the watermark.

when i check preview it shows the stock image in each file type and size with the watermark.

but... when i view the image in the cart, the watermark is not there???

what did i miss?

do i have to copy all of the images in the /images folder into the images/large folder and images/medium folder?

thanks!

9 Apr 2009, 3:56 PM
#3729
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

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

No, if you copy the images to the medium and large folders you will end up overriding image handler functions completely for those images.

9 Apr 2009, 4:19 PM
#3730
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

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

thanks for the quick reply.

hmmm...

test site: http://tinyurl.com/5fbh7b

any ideas? :frusty:

9 Apr 2009, 5:50 PM
#3731
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

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

i'm not sure if my files are 16 or 32 bit - does that matter?? and yes if i change them to jpg or gif they work fine.

tophand:

Is your png files 16 or 32 bits?

Also have you tried to change the png file to gif or jpegs?
Instead of saving image files from your graphic program as png, choose jpeg.

Ok, You did read the manual?
You do know that IH can change the image format for you?
(gif, jpeg, png)
You can select what format for each image size.

9 Apr 2009, 9:15 PM
#3732
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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

Just installed this on an existing site and it's screwed up the size of all my large images.

Is there a way to quickly set the default large image size to 450x675 ???

Quite like the mod but don't want to have to edit every single existing ad to set large image default :-(

9 Apr 2009, 10:16 PM
#3733
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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

OK, got it sorted out... but now I notice all my product pages in IE7 are giving the yellow exclaimation mark in the status bar, "Error on page"

Error: Object Expected.

Anyone else get this after installing IH?

10 Apr 2009, 1:40 AM
#3734
need_help avatar

need_help

Zen Follower

Join Date:
Feb 2009
Posts:
205
Plugin Contributions:
0

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

tophand:

You are still missing a file!
This one, jscript_imagehover.js
Should be here:```
includes/templates/zj_silver/jscript/jscript_imagehover.js


Limelite read Tophands reply above.

That should help you.  Just make sure jscript_imagehover.js is installed.  Check a few posts up and you will see a revised version that fixes issues with the medium zoom which i downloaded earlier today.
10 Apr 2009, 2:23 AM
#3735
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

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

Hello there,

Just need some help on how can I increase the image quality of the small images on this page http://www.animeheavens.co.uk/shop/index.php?main_page=index&cPath=7_604 without having to set "Resize Images" to false/0 under Config/Images?

I have also tried setting the compression quality to 100 but that didnt made any difference.

Thank you

10 Apr 2009, 2:33 AM
#3736
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

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

tyankee:

i'm not sure if my files are 16 or 32 bit - does that matter?? and yes if i change them to jpg or gif they work fine.

I think 16 bit png files will not correctly.

tophand:

Is your png files 16 or 32 bits?

Also have you tried to change the png file to gif or jpegs?
Instead of saving image files from your graphic program as png, choose jpeg.

Ok, You did read the manual?
You do know that IH can change the image format for you?
(gif, jpeg, png)
You can select what format for each image size.

Have you tried this? ^^^

10 Apr 2009, 9:49 AM
#3737
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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

need_help:

Limelite read Tophands reply above.

That should help you. Just make sure jscript_imagehover.js is installed. Check a few posts up and you will see a revised version that fixes issues with the medium zoom which i downloaded earlier today.

Thank you, saved me a couple of hours of reading the rest of this thread as simply copying jscript_imagehover.js over into my custom template subfolder has taken away the .js error in IE7. Thanks :-)

10 Apr 2009, 9:53 AM
#3738
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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

Berserker:

Hello there,

Just need some help on how can I increase the image quality of the small images on this page http://www.animeheavens.co.uk/shop/index.php?main_page=index&cPath=7_604 without having to set "Resize Images" to false/0 under Config/Images?

I have also tried setting the compression quality to 100 but that didnt made any difference.

Thank you

Hi, where are you generating your thumbnails from (what software)? Are the original images on your HDD pretty good quality? How are you re-sizing them before uploading them exactly?

Images this small will definitely look better if they're not sasved as .jpg compressed files. Consider using .png 24 files for such small thumbs and although the image size will increase, the quality will be so much better.

However, if the full size images on your product pages are the best quality version of these images then you will not be able to improve the 45px; thumnails any as the original quality just isn't good enough to produce a thumb this small. If this is the case then consider increasing the dimensions of your thumbnails to at least 100px; wide.

10 Apr 2009, 10:54 AM
#3739
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

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

Hello,

All images are pretty good quality and resized using Photoshop. When uploaded to the site, IH2 creates the small thumbnails and the only way I can increase its quality without creating small thumbnails separately is by changing the setting of "Resize Images" to NO. The problem with this is that all thumbnails will have a file size of 12-15K bytes and that is a bit too much.

10 Apr 2009, 11:28 AM
#3740
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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

Berserker:

Hello,

All images are pretty good quality and resized using Photoshop. When uploaded to the site, IH2 creates the small thumbnails and the only way I can increase its quality without creating small thumbnails separately is by changing the setting of "Resize Images" to NO. The problem with this is that all thumbnails will have a file size of 12-15K bytes and that is a bit too much.

So your current image settings are IH small image compression quality 100. If so then this is the same quality you'd get re-sizing the images yourself in Photoshop. Compare and contrast both methods (those from IH at 45px wide against Photoshop rendered at the same width) You'll see they're aesthetically the same.

Can you send me one of your best quality, original images and I'll play with it and see what I can come up with?

  • What dimensions are your original images?
  • Are your original images .jpg?

P.S., I notice you have a 'larger image' text under your main product image which suggest the images click to enlarge but they don't?