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

Results 3,461 to 3,480 of 7,094
31 Jan 2009, 9:16 AM
#3461
tophand avatar

tophand

Totally Zenned

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

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

malhyp:

HI there I just wanted to know if Image Handler 2 was the right addon for us.

We have 3 images on each product page. All of them show at 100x100px. When you click on them they show at their original size which is 400x400px

What we are looking for is for:

2 images to show at their standard size 100x100px which is happening now.

--
But the 3rd image we want to show at its original size on the products page which is 400x400px.

Is this possible with Image Handler 2 or should we be looking at some feature in the control panel or even playing with the script.

Cheers
Mal

admin-->Config-->Images
Just change to the size you want displayed on the product page.
You don't need IH for this.

1 Feb 2009, 7:00 AM
#3462
malhyp avatar

malhyp

New Zenner

Join Date:
Dec 2008
Posts:
28
Plugin Contributions:
0

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

Thanks for your reply Tophand.

If I do this through configuration - images, I am under the impression that it changes all images to the size that we nominate.

We have 3 images for each product and wanted to see the following result.

images/img_1.jpg = 100x100 px
images/img_2.jpg = 100x100 px
images/img_3.jpg = 400x400 px

If I change the size in configuration - images I can only nominate 1 size for all 3 of them which would mean;

images/img_1.jpg = 100x100 px
images/img_2.jpg = 100x100 px
images/img_3.jpg = 100x100 px

1 Feb 2009, 8:25 AM
#3463
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

malhyp:

Thanks for your reply Tophand.

If I do this through configuration - images, I am under the impression that it changes all images to the size that we nominate.

We have 3 images for each product and wanted to see the following result.

images/img_1.jpg = 100x100 px
images/img_2.jpg = 100x100 px
images/img_3.jpg = 400x400 px

If I change the size in configuration - images I can only nominate 1 size for all 3 of them which would mean;

images/img_1.jpg = 100x100 px
images/img_2.jpg = 100x100 px
images/img_3.jpg = 100x100 px

Is the 400x400 image your main product image?

1 Feb 2009, 8:37 AM
#3464
malhyp avatar

malhyp

New Zenner

Join Date:
Dec 2008
Posts:
28
Plugin Contributions:
0

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

Sorry, im not 100% sure if I understand your question.

Lets say I have 10 products in the whole website. Each product has 3 images.

The full size for all three of them is 400x400px.

When you are in the product page, you can see 3 images. The 1st one or the main image is; img_1.jpg which shows at 100x100px and expands to 400x400px when you click onto it to see it.

Then below that we have two other images; img_2.jpg = 100x100 px and when you click onto it you see a pic that is 400x400px.

The 3rd image; img_3.jpg = 400x400 px and we would like it to show at 400x400px.

Did that answer your q?

2 Feb 2009, 3:09 AM
#3465
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

malhyp:

Sorry, im not 100% sure if I understand your question.

Lets say I have 10 products in the whole website. Each product has 3 images.

The full size for all three of them is 400x400px.

When you are in the product page, you can see 3 images. The 1st one or the main image is; img_1.jpg which shows at 100x100px and expands to 400x400px when you click onto it to see it.

Then below that we have two other images; img_2.jpg = 100x100 px and when you click onto it you see a pic that is 400x400px.

The 3rd image; img_3.jpg = 400x400 px and we would like it to show at 400x400px.

Did that answer your q?

Trying to find out where you have your 400x400 image at.
So we are talking about Additional Images.

You might want to start here.
http://www.zen-cart.com/forum/showthread.php?t=9114

In a nutshell you will need to create a small, medium and large size file for each of your images. For your Additional images create a small and large file.
For your 400x400 image, just create it at 400x400.

Image Handler does not do this as it get the info from Zen Cart via Admin--.Config-->Images

2 Feb 2009, 3:30 AM
#3466
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

CharInLasVegas:

On this page I have the hover: index page, except for at the bottom for Featured Products.

But here I don't: subcategory product listing page

The index page category images are not being served by ZC, I'm linking to them. Not sure if that is a clue to why it works with them & not with the others or not. I actually don't want the hover there, I only would want it for the small images in the listings.

http://www.zen-cart.com/forum/showpost.php?p=607494&postcount=2981

See link.
The hover is based upon the size you set for small images.
If you don't want the hover, then make the size is different from the small images setting.

Might need to move your category images to the correct folder.
(/store/images)

2 Feb 2009, 4:28 PM
#3467
e81ny avatar

e81ny

New Zenner

Join Date:
Feb 2007
Location:
New York
Posts:
88
Plugin Contributions:
0

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

Hello,

Is there a image file size limit for IH2? A client of mine uploaded some images on his own and now the site shows up broken.. The product image (which he uploaded) won't show up. I looked at the files and most of them are over 1MB. Is that the problem? Also, some image file names content "space" (such as "kk2 8.JPG") Is that a trouble maker as well?

Please help. Thank you!

2 Feb 2009, 5:33 PM
#3468
jjdoench avatar

jjdoench

New Zenner

Join Date:
Feb 2008
Posts:
41
Plugin Contributions:
0

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

I've not previously used any additional images, so I didn't notice this problem creep in until now.

When I include an additional image, the product info page layout breaks. The right column is gone, and the footer floats up on top of the main portion of the page.

Also, underneath the additional image, instead of a "larger image" link, I get:

larger image'); //-->

I'm thinking that it may have something to do with the additional_images.php file, around line 94, Link Preparation.

Link to an example:
http://www.bestfriendsquilts.com/index.php?main_page=product_info&cPath=1168_1280_1451&products_id=30792

I use ZenCart 1.3.8. My Product Info page is modified a little, and I use Image Handler.

Thanks,
Jessica
https://www.bestfriendsquilts.com

2 Feb 2009, 10:27 PM
#3469
e81ny avatar

e81ny

New Zenner

Join Date:
Feb 2007
Location:
New York
Posts:
88
Plugin Contributions:
0

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

Hello everyone,

During the process when I was trying to figure out what's wrong and fix the problems, I noticed that when I switched off "IH resize images", all the images will show up but of course the enlarged images are the original file size (whatever was uploaded). When I switched ON "IH resize images", lots of images (both small and medium) just won't show up.

It seems that my client has accidently "removed IH from database" and uploaded some product images. Later he installed the IH again. That's when he noticed that the new product images won't show up.

I have tried removing IH from database, clear image cache, install IH again and then re-upload product image. But product image still won't show up...

What else can I do to fix the situation?

Thanks for any help!

3 Feb 2009, 2:16 AM
#3470
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

e81ny:

Hello,

Is there a image file size limit for IH2? A client of mine uploaded some images on his own and now the site shows up broken.. The product image (which he uploaded) won't show up. I looked at the files and most of them are over 1MB. Is that the problem? Also, some image file names content "space" (such as "kk2 8.JPG") Is that a trouble maker as well?

Please help. Thank you!

IH doesn't have a file size limit per say but IH uses server side software GD libraries or ImageMagick which can timeout on processing large files.
Yes, having a space in the file name can cause problems.

3 Feb 2009, 2:35 AM
#3471
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

JJDoench:

I've not previously used any additional images, so I didn't notice this problem creep in until now.

When I include an additional image, the product info page layout breaks. The right column is gone, and the footer floats up on top of the main portion of the page.

Also, underneath the additional image, instead of a "larger image" link, I get:

larger image'); //-->

I'm thinking that it may have something to do with the additional_images.php file, around line 94, Link Preparation.

Link to an example:
http://www.bestfriendsquilts.com/index.php?main_page=product_info&cPath=1168_1280_1451&products_id=30792

I use ZenCart 1.3.8. My Product Info page is modified a little, and I use Image Handler.

Thanks,
Jessica
www.bestfriendsquilts.com

Compare a fresh copy of additional_images.php with yours.

Use a tool like WinMerge.

3 Feb 2009, 2:44 AM
#3472
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

e81ny:

Hello everyone,

During the process when I was trying to figure out what's wrong and fix the problems, I noticed that when I switched off "IH resize images", all the images will show up but of course the enlarged images are the original file size (whatever was uploaded). When I switched ON "IH resize images", lots of images (both small and medium) just won't show up.

It seems that my client has accidently "removed IH from database" and uploaded some product images. Later he installed the IH again. That's when he noticed that the new product images won't show up.

I have tried removing IH from database, clear image cache, install IH again and then re-upload product image. But product image still won't show up...

What else can I do to fix the situation?

Thanks for any help!

Good chance that 1 of the images your client uploaded is corrupt and is breaking the page.
If you want to find which one, delete each image (client uploaded) one at a time and then clear the bmz_cache and check the site.
You can delete all the clients image and start fresh with images that has no space in the file name.

3 Feb 2009, 2:12 PM
#3473
jjdoench avatar

jjdoench

New Zenner

Join Date:
Feb 2008
Posts:
41
Plugin Contributions:
0

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

My code differs from the original like so:

Original:

$thumb_slashes = zen_image($base_image, addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
    $thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
    $large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);

    // Link Preparation:
    $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';

My file:```
$thumb_slashes = zen_image($base_image, addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
// remove additional single quotes from image attributes (important!)
$thumb_slashes = preg_replace("/([^\\])'/", '$1\'', $thumb_slashes);
$thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);

// Link Preparation:
// bof Zen Lightbox v1.4 aclarke 2007-09-22
if (ZEN_LIGHTBOX_STATUS == 'true') {

$script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" title="' . addslashes($products_name) . '">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';

} else {
		
$script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';

}
// eof Zen Lightbox v1.4 aclarke 2007-09-22


So, it would seem it is something to do with Zen Lightbox?  I had tried to install this, but it didn't work, so I thought I had uninstalled it.  However...

When I replace my file with the clean version, it has no effect.  So, I guess it isn't this file after all.  I will compare my product_info file against the original again and see if I can come up with anything.

Thanks,
Jessica
<https://www.bestfriendsquilts.com>

> **tophand:**
>
> Compare a fresh copy of additional_images.php with yours.
> 
> Use a tool like WinMerge.
3 Feb 2009, 6:02 PM
#3474
e81ny avatar

e81ny

New Zenner

Join Date:
Feb 2007
Location:
New York
Posts:
88
Plugin Contributions:
0

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

tophand:

Good chance that 1 of the images your client uploaded is corrupt and is breaking the page.
If you want to find which one, delete each image (client uploaded) one at a time and then clear the bmz_cache and check the site.
You can delete all the clients image and start fresh with images that has no space in the file name.

Thank you very much for your suggestion. My client uploaded almost 100 new products and most of them have problems. Delete them all and re-upload them will take quite some work..

I tried to delete some of the images my client uploaded and, without deleting the product, I uploaded new images. The images show up on the product list page but the product info page is still broken..

see here: http://s266460223.onlinehome.us/shop/index.php?main_page=index&cPath=7

If you would click on the first product, you can see the product info page does not display correctly..

What should I do? Delete the product and re-setup the product again? Is there no other easier way to solve the problem?

3 Feb 2009, 10:28 PM
#3475
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

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

typo here, sorry

4 Feb 2009, 4:04 AM
#3476
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

e81ny:

Thank you very much for your suggestion. My client uploaded almost 100 new products and most of them have problems. Delete them all and re-upload them will take quite some work..

I tried to delete some of the images my client uploaded and, without deleting the product, I uploaded new images. The images show up on the product list page but the product info page is still broken..

see here: http://s266460223.onlinehome.us/shop/index.php?main_page=index&cPath=7

If you would click on the first product, you can see the product info page does not display correctly..

What should I do? Delete the product and re-setup the product again? Is there no other easier way to solve the problem?

Did you clear the bmz-cache after uploading the new images?
Sometime it is better to ftp or use your control panel and delete all the sub-folders in bmz-cache folder.

Most of the site works fine, it is the Floor Lamp category that has the problem. How did the client upload the images?
How many new images did you upload, 12?

4 Feb 2009, 8:41 PM
#3477
samortensen avatar

samortensen

New Zenner

Join Date:
Jan 2008
Location:
Minnesota
Posts:
87
Plugin Contributions:
0

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

My problem with image handler is when it is installed it pushes my header down the page a bit, and then when you place your cursor on the + sign of the image, the image appears in the upper left corner of the screen, so I am assuming that this has something to do with why my header is being pushed down -

can someone help with this?

Above is a screenshot of the site and my site is:
Knot & Bauble so you can see for yourself what I am talking about.

I hope someone has an idea why this is doing this because it has me scratching my head.

4 Feb 2009, 8:45 PM
#3478
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

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

SaMortensen:

My problem with image handler is when it is installed it pushes my header down the page a bit, and then when you place your cursor on the + sign of the image, the image appears in the upper left corner of the screen, so I am assuming that this has something to do with why my header is being pushed down -

can someone help with this?

Above is a screenshot of the site and my site is:
Knot & Bauble so you can see for yourself what I am talking about.

I hope someone has an idea why this is doing this because it has me scratching my head.Make sure the style_imagehover.css is in your templates css folder.

That'll get you every time.
JOhn ><>

4 Feb 2009, 9:45 PM
#3479
samortensen avatar

samortensen

New Zenner

Join Date:
Jan 2008
Location:
Minnesota
Posts:
87
Plugin Contributions:
0

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

It is in the templates/css folder, and as a precaution, I went and added the folders with their files to my current template but it makes no difference it is still doing this.

4 Feb 2009, 9:57 PM
#3480
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

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

SaMortensen:

It is in the templates/css folder, and as a precaution, I went and added the folders with their files to my current template but it makes no difference it is still doing this.Ok, to be a little more clear, I looked at your home page source code:

<link rel="stylesheet" type="text/css" href="includes/templates/clean_business/css/stylesheet.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/clean_business/css/stylesheet_css_buttons.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/clean_business/css/stylesheet_dotline.css" /> <link rel="stylesheet" type="text/css" media="print" href="includes/templates/clean_business/css/print_stylesheet.css"

and it is not loading.

Double check, it looks like it needs to be in THIS folder:
includes/templates/clean_business/css/

Try that.
JOhn ><>