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

Results 3,541 to 3,560 of 7,094
14 Feb 2009, 2:40 PM
#3541
krazykev avatar

krazykev

New Zenner

Join Date:
Jan 2009
Posts:
59
Plugin Contributions:
1

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

Just to give you some more info, the preview image admin/images/ih-test.png does exist so I do not fully understand why the 3 png files do not show in the IH Admin-> Preview Tab.

I have done a server info - here are the GD bits that you may help you to help me!

GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

Kev

14 Feb 2009, 3:22 PM
#3542
krazykev avatar

krazykev

New Zenner

Join Date:
Jan 2009
Posts:
59
Plugin Contributions:
1

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

OK - slowly but surely I am getting there. I believe the answer is here somewhere but to get the hover image larger I had to change the settings

In admin

Configuartion -> Images

Product Info -> Image Width
Product Info -> Image Height

Can someone tell me please what Zen Cart uses

Product Info - Image Medium Suffix and
Product Info - Image Large Suffix

for please as these are not Image Handler options.

Also, does anyone know why the PNG images do not display in the IH Preview page?

Darn it there is more - I asked before but my images aren't being resized in the IH/Product page where it displays 3 versions of each product image, namely Default Size, Medium Size and Large Size. The dimensions and sizes seem to be getting calculated and displayed correctly but all three images (for one specific image) are all the exact same image on the server.

Sorry for repeat posts - but I will get this to work and publish my findings!!!

Kev

14 Feb 2009, 5:42 PM
#3543
krazykev avatar

krazykev

New Zenner

Join Date:
Jan 2009
Posts:
59
Plugin Contributions:
1

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

Hi all,

me again. I don't like to flood the forum, but equally when I have an update I like to post it in case any of you are actively looking into potential problems.

I am beginning to wonder if there is a bug in the script.

Let me explain what I have.

I have a product with 3 images, called p.jpg, p_b.jpg and p_c.jpg.

When I look at the images in IH/product info I get this table

Image Default size Medium size Large size

p.jpg small p.jpg small p_a.jpg small p_.jpg
48X80 137X240 334X550
2kB 8.32kB 31.16kB

p_b.jpg small p_b.jpg small p_b.jpg small p_b.jpg
47X80 141X240 325X550
2kB 8.45kB 32.1kB

p_c.jpg small p_b.jpg small p_b.jpg small p_b.jpg
45X80 137X240 315X550
2.01kB 8.22kB 30.82kB

The image sizes seem sensible, but why are they all small?

Should I not see medium images in the medium column and large images in the large column?

Also, why in the row for p.jpg does it display p_b.jpg and p_c.jpg?

I am going to carry on my investigation and assume this is a bug and write a patch.

Is this a bug? Does anyone else have the same problem? I have a downloaded an old version of the file even? The file in question is admin/image_handler.php and the version info is

  • @version $Id: image_handler.php,v 1.5 2006/05/01 12:16:43 tim Exp $

Sorry for clogging the thread!

Kev

14 Feb 2009, 6:10 PM
#3544
krazykev avatar

krazykev

New Zenner

Join Date:
Jan 2009
Posts:
59
Plugin Contributions:
1

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

Am going to make this my lsat post for now in case I start looking silly. I don't think I understand Image Handler as well as I should.

Ignore my table above. I was playing with _MED.jpg and _LRG.jpg suffixes. What are these anyway? When you ahve them IH shows a delete button? Can anyone send me some links explaining this?

With regards to IH/product info always showing small images - well I have fixed this in the code if anyone wants it? But is it really a bug or was it by design? Every image was going through this call with the 50 and 40 hard coded (albeit through a define)

get_resized_image(50, 40, [generic]).

THis was producing images 24X20??????

If anyone can silence me, please do!!! :D

Kev

14 Feb 2009, 7:33 PM
#3545
mickmo68 avatar

mickmo68

Zen Follower

Join Date:
Apr 2008
Location:
Boston
Posts:
129
Plugin Contributions:
0

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

I am having a brain block with this. My main image auto sizes just fine - 100x100 - 160x240 - 366x550
so hover works great

However my additional image sizes are too small

_01 53x80 - 53x80 - 53x80

_02 100x100 - 110x73 - 110x73

I'm think it's a Admin/images issue, but I don't know where.

Admin/images
Title Value Action
Small Image Width 100!
Small Image Height 100!
Heading Image Width - Admin 57
Heading Image Height - Admin 40
Subcategory Image Width 300!
Subcategory Image Height 200
Calculate Image Size true
Image Required true
Image - Shopping Cart Status 1
Image - Shopping Cart Width 168
Image - Shopping Cart Height 113
Category Icon Image Width - Product Info Pages 200!
Category Icon Image Height - Product Info Pages 200!
Top Subcategory Image Width 100
Top Subcategory Image Height 100
Product Info - Image Width 300
Product Info - Image Height 240
Product Info - Image Medium Suffix _MED
Product Info - Image Large Suffix _LRG
Product Info - Number of Additional Images per Row 3
Image - Product Listing Width 150!
Image - Product Listing Height 150!
Image - Product New Listing Width 100!
Image - Product New Listing Height 100!
Image - New Products Width 100!
Image - New Products Height 100!
Image - Featured Products Width 100!
Image - Featured Products Height 100!
Image - Product All Listing Width 100!
Image - Product All Listing Height 100!
Product Image - No Image Status 1
Product Image - No Image picture no_picture.gif
Image - Use Proportional Images on Products and Categories 1
IH resize images yes
IH small image filetype no_change
IH small image background 255:255:255
IH watermark small images no
IH zoom small images yes
IH small image hotzone no
IH small image compression quality 85
IH medium image filetype no_change
IH medium image background 255:255:255
IH watermark medium images no
IH zoom medium images no
IH medium image hotzone no
IH medium image compression quality 85
IH large image filetype no_change
IH large image background 255:255:255
IH watermark large images no
IH large image compression quality 85
IH large image maximum width 750
IH large image maximum height 550
IH watermark gravity Center
IH zoom gravity SouthEast

1.3.8
Link to example page:
http://keepsafeco.com/index.php?main_page=product_info&cPath=29_32&products_id=93

Help would be greatly appreciated, Thanks

14 Feb 2009, 8:15 PM
#3546
krazykev avatar

krazykev

New Zenner

Join Date:
Jan 2009
Posts:
59
Plugin Contributions:
1

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

Thats an interesting one! When you hover over your additional image you can see that it is trying to display the large image file

images/large/MG15BMain_01_LRG.gif

Does this file exist? As when the image loads it is displaying

images/MG15BMain_01.gif (which presumably is the 53X80 image)

Kevin

14 Feb 2009, 8:21 PM
#3547
krazykev avatar

krazykev

New Zenner

Join Date:
Jan 2009
Posts:
59
Plugin Contributions:
1

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

I've taken another look at my site - my pages also try to load

images/large/xxxxxx_LRG.jpg and they don't exist.

That is when control gets handed to IH to generate an image and a picture from the bmz_cache folder is displayed. Your site still displays the images\xxxx.gif file leading me to think IH isn't getting the opportunity, or failing, to generate your image. Are all the files there? Are you folder permissions set correctly?

Could be to do with something in Configuration -> Images but that would be beyond my knowledge.

Kevin

14 Feb 2009, 11:14 PM
#3548
tapellus avatar

tapellus

New Zenner

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

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

Hello,

Firstly I would like to thank those responsible for Image Handler, it has been such a useful contribution for me.

I currently have the pop-up images activated and they look great, however I don't want the text indicating the product's name to appear above the pop-up image. Does anyone know how to get rid of it so that it is just an image that pops up when you hover over the small images?

If anyone could help me on this I would be very grateful as I have looked everywhere for this to no avail!

Many Thanks,

Tapellus

15 Feb 2009, 12:43 AM
#3549
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

krazykev:

Hi all,

me again. I don't like to flood the forum, but equally when I have an update I like to post it in case any of you are actively looking into potential problems.

I am beginning to wonder if there is a bug in the script.

Let me explain what I have.

I have a product with 3 images, called p.jpg, p_b.jpg and p_c.jpg.

When I look at the images in IH/product info I get this table

Image Default size Medium size Large size

p.jpg small p.jpg small p_a.jpg small p_.jpg
48X80 137X240 334X550
2kB 8.32kB 31.16kB

p_b.jpg small p_b.jpg small p_b.jpg small p_b.jpg
47X80 141X240 325X550
2kB 8.45kB 32.1kB

p_c.jpg small p_b.jpg small p_b.jpg small p_b.jpg
45X80 137X240 315X550
2.01kB 8.22kB 30.82kB

The image sizes seem sensible, but why are they all small?

Should I not see medium images in the medium column and large images in the large column?

Also, why in the row for p.jpg does it display p_b.jpg and p_c.jpg?

I am going to carry on my investigation and assume this is a bug and write a patch.

Is this a bug? Does anyone else have the same problem? I have a downloaded an old version of the file even? The file in question is admin/image_handler.php and the version info is

  • @version $Id: image_handler.php,v 1.5 2006/05/01 12:16:43 tim Exp $

Sorry for clogging the thread!

Kev

No bug, no patch needed.
This is the way IH works in the admin side.
If the true size of each image was to display in the row, it not would fit on most people monitors. Most people don't like to scroll sideways.
The image being displayed is the sample image to show that the file works, click on that row will now display the medium sized image to the right and then when you click that image the large image will pop up.

15 Feb 2009, 12:51 AM
#3550
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

tapellus:

Hello,

Firstly I would like to thank those responsible for Image Handler, it has been such a useful contribution for me.

I currently have the pop-up images activated and they look great, however I don't want the text indicating the product's name to appear above the pop-up image. Does anyone know how to get rid of it so that it is just an image that pops up when you hover over the small images?

If anyone could help me on this I would be very grateful as I have looked everywhere for this to no avail!

Many Thanks,

Tapellus

Can't get rid of it but you can hide it using the style sheet.
The how to has been posted in this thread.
Hint: search this thread for my name.

15 Feb 2009, 1:04 AM
#3551
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

Mickmo68:

I am having a brain block with this. My main image auto sizes just fine - 100x100 - 160x240 - 366x550
so hover works great

However my additional image sizes are too small

Link to example page:
http://keepsafeco.com/index.php?main_page=product_info&cPath=29_32&products_id=93

Help would be greatly appreciated, Thanks

That is the size of the additional images you uploaded.
http://keepsafeco.com/images/MG15BMain_01.gif
http://keepsafeco.com/images/MG15BMain_02.gif
IH doesn't really like to up size images. This small of images will look really bad if they was up sized.

15 Feb 2009, 1:23 AM
#3552
mickmo68 avatar

mickmo68

Zen Follower

Join Date:
Apr 2008
Location:
Boston
Posts:
129
Plugin Contributions:
0

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

That is the size of the additional images you uploaded.
Yes, of course.
I put them thru an "optimizer". It optimized the h**l out of them.
Thank you Tophand

15 Feb 2009, 7:12 AM
#3553
makenoiz avatar

makenoiz

Zen Follower

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

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

How can I increase the size of the hover image to 250px while keeping product info images at 80? Ive spend much time researching and cannot find the answer. I can see the larger image when I click on "larger image" but I want the larger image to appear in the hover too.

Thank you

15 Feb 2009, 5:07 PM
#3554
krazykev avatar

krazykev

New Zenner

Join Date:
Jan 2009
Posts:
59
Plugin Contributions:
1

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

Hi TopHand,

thanks for the explanation - it makes sense.

Do you know why the PNG file in the Preview tab does not display. The source file is there.

Kevin

15 Feb 2009, 6:51 PM
#3555
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

makenoiz:

How can I increase the size of the hover image to 250px while keeping product info images at 80? Ive spend much time researching and cannot find the answer. I can see the larger image when I click on "larger image" but I want the larger image to appear in the hover too.

Thank you

Rewrite the code.
Maybe start with the jscript.
Search this thread.

15 Feb 2009, 6:52 PM
#3556
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

krazykev:

Hi TopHand,

thanks for the explanation - it makes sense.

Do you know why the PNG file in the Preview tab does not display. The source file is there.

Kevin
Not really.
Had have trouble with 16bit/32bit png files.

15 Feb 2009, 11:26 PM
#3557
makenoiz avatar

makenoiz

Zen Follower

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

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

Hi TopHand,
Thanks for your friendly and thorough response. I had searched the forums for several hours so I took your advice and rewrote the code.

15 Feb 2009, 11:29 PM
#3558
krazykev avatar

krazykev

New Zenner

Join Date:
Jan 2009
Posts:
59
Plugin Contributions:
1

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

Had have trouble with 16bit/32bit png files.
Interesting - but I'm using the samples included with the contrib. Will throw in loads of tracing to see where it is falling over.

K

16 Feb 2009, 3:18 AM
#3559
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
856
Plugin Contributions:
0

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

Hi All,
I would like to change the size of my additional images without changing the size of the small images site wide.

In the includes/templates/mytemp/templates/additional_images.php from row 84-95 there is this

  for ($i=0, $n=$num_images; $i<$n; $i++) {
    $file = $images_array[$i];
    $products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
    $flag_has_large = true;//file_exists($products_image_large);
    $products_image_large = ($flag_has_large ? $products_image_large : $products_image_directory . $file);
    $flag_display_large = (IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE == 'Yes' || $flag_has_large);
    $base_image = $products_image_directory . $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);

I changed the SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT in both locations in this file to HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT.

It works fine but it also breaks IH2 small image handling. They no longer pop up on hover.

I also tried SMALL_IMAGE_WIDTH/2, SMALL_IMAGE_HEIGHT/2

This works too but once again. . . broken IH2.

How can I do this without breaking the IH2?

Thanks in Advance,
John

16 Feb 2009, 3:36 AM
#3560
asiaradiosales avatar

asiaradiosales

New Zenner

Join Date:
Apr 2006
Location:
Hong Kong
Posts:
27
Plugin Contributions:
0

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

I have fixed the problem of the broken page in the index now i have got another issue which is the category products do not open in the IH format. There si no resizing.
Please let me know why.
Thank you