What size were your images (before you resized them)?
Printable View
Straight from the camera. Big - 1-2meg
I've used 1-2 meg files on my localhost with IH2 before and had no problems. At first the GD2 libraries were not enabled on my localhost, so that meant that IH2 did not work and all the images on my website took a long time to load and looked very 'jagged' around the edges!
I verified through godaddy that my GD2 libraries were current and running... still I get ()imagedestroy.
I've just installed IH2 and got it working. Seems good - but I'm curious about a couple of things.
1 - The main reason I installed it was to get the benefit of reduced image space on the server. It seems, to me, that loading only the large image and not the medium and small ones (in my case 1/4 and 1/16 the sizes of the large) would buy me some time before I need to find another host (or another solution). The cache will offset this - my first thought is that once all the images have been cached I'll end up using the same as I would have without IH2.
I see there's an admin option to clear the cache. Could this be called from a cron job - once a week, say, flipping the site into maintenance mode (if necessary), clearing the cache, then flipping it back to normal?
I seem to recall there's an option to set expiry dates on UNIX files. Or maybe that was an old ICL mainframe thing .... If it exists can this be used to give the cached files a shelf life after which they're automatically removed? If I'm thinking about a real feature would the hosts have to set anything up, or would I need to set up a cron job to do the housekeeping?
2 - With image security in mind - can IH2 pull its source images from a directory away from public access?
This error is to do with the file name itself...I tested it with file names without spaces and it worked. try it and let me know. tested on apache on windows and apache on linux. so basically change your file names so that it doesn't include any spaces and it will work 100%
Hope this helps you all
Sorry if this question has been asked lately, I searched and read about 20 pages of this thread and did not find an answer.
I installed IH on www.stuff4toys.com and it works GREAT, THANKS for all your hard work.
Now my question...
I have these two other sites in my tagline. I have an extensive collection of _LRG and _MED files in their appropriate folders.
Now I would like to install IH for two reasons
Will IH still take advantage of my existing _LRG & _MED files or do I have to go through all my products and re-assign images?
- Watermarking of the currently displayed images
- Future product images
Thanks
JOhn ><>
It works, I answered my own question
JOhn ><>
Hello,
I Can you please help me to use IH2? I have zen cart v1.3..
I installed IH2 to my local computer and transfer that to include/my template/css. (only style_imagehover.css). I don't think I did right. Can you give me some instructions for which file goes to where?
Please help me.
Thank you
Hello,
I Can you please help me to use IH2? I have zen cart v1.3..
I installed IH2 to my local computer and transfer that to include/my template/css. (only style_imagehover.css). I don't think I did right. Can you give me some instructions for which file goes to where?
Please help me.
Thank you:wacko:
How do I set up IH2 so that I get the Java Popups on my small images, but NOT change the Annimation?
See www.bulklights.com look near the bottom at the 'Featured Products" if I enable Zoom the GIFs stop annimating.
JOhn ><>
I have image handler on all 3 sites now. The site that NEVER had _MED & _LRG files works GREAT, but the sites that have some _MED & _LRG files will Re-Size the images, and watermark the java pop-up images, BUT no watermark on the actual Medium and Large files.
Check out www.stuff4toys.com never had a _LRG image and every image is watermarked as prescribed.
Now check this out
http://www.liberty-flag.com/index.ph...x&cPath=98_102 Click on the Buffalo Bills helmet.
All 5 items have the zoom.png and all 5 items have a watermarked Pop-Up image. The Auto Shade and the Yard Light do not have _MED or _LRG. Click on the item and see - NO watermark, Enlarge, still no watermark.
Is there a fix or work-around for this? I would like to keep making only one image in the future without Re-Imaging 2500+ items.
Thanks
JOhn ><>
How Can I make it zoom?
I have read a lot of this thread. But i am very confused.
Hope someone can help me.
THank you.
:frusty:
do you mean the hover effect?
In IH you just upload one default image, and set the settings for small, medium and large in the Admin.
If that doesn't work there is some conflict with the imagehover.js script.
Check if there is any other javascript in custom_template/jscript.
If there is, it will override the IH script.
I put in jscript_imagehover.js in my own template/jscript.
There are jscript_imagehover.js and jscript_dynamic_window_popup.js at the moment.
Then the result is that the small image can zoom but the middle image can not zoom.:no:
:frusty: How can I make the middle image to zoom as well? Thank you.
remember that there is no medium image in IH, you just upload one default image (the largest one), IH does all the resizing.
I have set all images to 80 x 80, except product info, that is set to 100 x 100 and zooms (or hovers), if you click the large (default) image appears.
You can check my site for the effect, but no criticisms please, as my sig says, I'm working on it.
To ckosloff and tophand:
:smile:thanks for your help.
I am wondering where I can change the images' size. I mean how can I change the image size I want when it zoom. My setting is default size 80x80, medium size 120x120 and large size 550x550. Because I would like it can be bigger when it zoom. Where can I change it?
To ckosloff:
I looked at your website. It is great. I have one question about your template. I am using my own template. However, my template only can show one image per row in main page new product. It only can show many products images in categories per row. I am wondering how I can change to show many products images in main page new products/further products.
I authored a mod for this, I don't take any credit, it was done with the help of gjh42.
It is in the downloads/templates section, I think it is in second place, the support thread info is in the mod.
Regarding the "medium" image, I already answered, there is no medium image.
Just tweak the settings of product info in Configuration --> Images.
I set it to 100 x 100 but you can do whatever you like within the limits of IH.
helloUK,
read the support thread, the answer is there.
http://www.zen-cart.com/forum/showth...t=69672&page=5
But, to put more additional images you simply use IH!
ALL of my images are in ../images/product on all 3 sites.
JOhn ><>
Still no change.Quote:
Now check this out
http://www.liberty-flag.com/index.ph...x&cPath=98_102 Click on the Buffalo Bills helmet.
All 5 items have the zoom.png and all 5 items have a watermarked Pop-Up image. The Auto Shade and the Yard Light do not have _MED or _LRG images. Click on the item and see - NO watermark, Enlarge, still no watermark.
all my normal size Product Images are in ../images/product so I copied my watermark_MED.png and watermark_LRG.png to ../images/medium/product and ../images/large/product thinking that might help because alll my _MED & _LRG images are in those folders.
Still no resolution to this issue.
JOhn ><>
Image Handler is a very tricky mod. One little thing can mess up lots of other things.
I noticed that you have a zoom image for your product info pictures, telling me you have "IH zoom medium images" set to on. That doesn't work at all in IH2, so turn that off. Also, what do you have listed for: Product Info - Image Width and Product Info - Image Height?
I tried many times using IH to add additional images but not successful. Sigh.:frusty:
Can I ask you few question?
1. http://www.u-fashion.net/1/q/01.jpg
I pressed the new file.
2. http://www.u-fashion.net/1/q/02.jpg
Did I type in correct detail? Especially, I am not sure Medium and Large Image because I used a different name.
3. http://www.u-fashion.net/1/q/03.jpg
After typing these images detail, then it shows 1, 2 and 3.
4. http://www.u-fashion.net/1/q/04.jpg
Then I would like to add more images for a product but I could not figure out how to do it. I tried many times. I typed suffix "test" and default image is used same as before but I changed the new medium and large images. However, it does not show additional images in my website.
How can I add more images by using IH?
*Before I worked out how to add additional images in a product by manually FTP, but now after reading the instruction, I still can not do it...:frusty:
Why are you uploading three sizes? Just upload the largest size you want, and IH2 will do the rest. When uploading additional files,just click new file, and just upload one image in the default image box. IH2 will name it for you, so don't worry about the name. When you want to add another one, click "New file" again, and again, upload ONE and ONLY ONE image. Don't enter a suffix.
Thank you for your help.
I still can not do it.:no: It still can not show additional images under the product info. I only uploaded only one image in default each time.
http://u-fashion.net/1/q/05.jpg
Should I set any special thing? Image setting etc.
Thank you again.
I have just installed image handler version 2.0 on my site. but after installing I am facing problem that image on Product Info Page is not showing and browser is showing error.
you can check it on
http://www.fbriders.com/ver08/index....&products_id=4
Please help me to solve this problem.
Thanks
That's what one would like to think, but Template monster may have forcibly removed the code for the additional images. They have a tendency to do such things. Do none of them show up?
Does your includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php have this section of code?
Code:<!--bof Additional Product Images -->
<?php
/**
* display the products additional images
*/
require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
<!--eof Additional Product Images -->
Could be by having an image in the medium/large folder and/or _MED/_LG files turns off IH for those images.
Try renaming one of the product image that your having trouble with in all the folders or end with _MED/_LG and upload "1" "Large" product image.
Use IH admin panel and be sure to clear cache.
Mark
why won't this delete?
I might be blind but i dont see an option to change the size of medium images
My site was running with Scrolling Features without anyproblem with IE & Firefox. Today I installed IH and now I have a problem with IE. Text are scrolling but the pictures out of place in scroll. is there a fix?
Yeah I have these code in my template. I sent my question to template monster yesterday. They gave me a link to teach me. I am not sure whether it works or not. When I have time, I will go to text it.
http://info.template-help.com/files/..._a_product.swf
Also when I am using back Classic template, but not template monster one. It can show many images. Sigh ..what's wrong about template from monster?:no:
Product Info pages use (IH) Medium size images so...
Configuration --> Images --> Product Info--Image Width
And
Configuration --> Images --> Product Info--Image Height
You can set either width/height with a "0" which will allow the image to scale proportional.
M
I have annimated GIF's on www.bulklihgts.com. I understand that overlaying the zoom.png creates a new file that is not annimated.
Is there a way to get the hover effect without overlaying the file? And without the watermark. And without destroying the annimation?
JOhn ><>
Hello, I've started customising a Zen Cart a few weeks ago and just now i installed Image Handler 2 and I get several errors with it, and being only in the beginner area at PHP and JS I am compelled to ask for help here.
(Also for the one who need it check the newly added contribution at http://www.zen-cart.com/index.php?ma...roducts_id=682 )
The shop I am working on is at http://www.abcplus.ro
I saw the Image Handler Support thread but it has 111 pages and I am very afradi that I won't find exactly my problem in there, therefore I am posting it here, maybe someone has an idea about what's not working
Some other information about other mod's installed:
Yahoo Categories
DHTML Tabs Lite
Sideboxes
(...many other sidebox related)
and I modified a lot many pages for proper html output.
The errors I get:
In the first screenshot firebug tells me that the JS events aren't defined.
That event is related with the second and third screenshot of errors that I get inside the admin.
And the other problem in the Admin =>Tools => IH2 is that instead of categories I see only *(in fact the categories are showing only in IE with Romanian Language, weirddd), atm that is not a problem, but after a few weeks the shop will have around 1000 products... and that will become a problem, any suggestion on the category displaying issue is very welcome .
Also when I try to see what the Preview menu I get the 2nd screenshot error(which i don't get no more, the only thing i get is the default image, no preview no watermark).
I am making screenshots to be fully comprehended, my english isn't that good at such late hours and after 15 hours of work :).
Thanks in advance for all the help.
Best regards, Arthur.]
This is an extremely long thread, it should be separated in topic of issues(for whom has the patience to do that :) )
the pictures are cached, the code is correct:
<img width="80" height="80" onmouseout="hidetrail();" onmouseover="showtrail('bmz_cache/b/b5885531bc18f08695fd2c8e036fa951.image.120x120.gif','Nokia 6230i',80,80,120,120,this,0,0,80,80);" style="position: relative;" title=" Nokia 6230i " alt="Nokia 6230i" src="bmz_cache/2/2cd05f5832be99927a7ce6f7a86f40ab.image.80x80.gif"/>
the b5885531bc18f08695fd2c8e036fa951.image.120x120.gif is where it's supposed....
Should the problem in the JS? and if there.. what could be it?
In the other thread, in which i decided not to write anymore, someone said that I most surely didn't copied right some files.....
Now I double and triple cheched everything....
and only one directory was out of it's place... copied it in the right place.
Still image zoom isn't working and no watermark and no aditional images :(
Edit: Now i get the same as the first time
Fatal error: imagepng() [<a href='function.imagepng'>function.imagepng</a>]: gd-png: fatal libpng error: zlib error in /home/xlips/public_html/abcplus/includes/classes/bmz_image_handler.class.php on line 646
I have read manyy posts from this thread and I want to say that I didn't touched the css.... and no file was deleted from my server. Sorry for so many posts, but i keep on reading and those 7 minutes for editing pass.
m3s_4ev3r,
Perhaps this is of any help:
http://www.zen-cart.com/forum/showpo...postcount=1146
Nope, didn't help, I think that is another problem....thanks for answering :)
I have a correction to make.. I can upload aditional images from IH2.
I was stupid and tried to upload to Large.. but to default it works perfectly :D
Still no zoom and watermark.
OK , There's only zoom left... the other issues were related to my stupidity.
EDIT: The zoom related issues i'm 100% sure it's not human error from my side. I read and read and read, and tried different things, I crashed the catalog, I restore the backup, i reinstalled IH2, and the Zoom won't work.
Do you have jscript_imagehover.js in
includes/templates/YOUR_TEMPLATE/jscript/jscript_imagehover.js ?
Looking at your source code you are missing this line.
Means that you don't have the jscript_imagehover.js file in the right place or is missing.Code:<script type="text/javascript" src="includes/templates/classic/jscript/jscript_imagehover.js"></script>
As Rik pointed out you need to look here,
includes/templates/classic/jscript/
M
Agreed. m3s_4ev3r you have the tab lite jscript in your template's jscript folder so the image handler jscript must go in there too.
Also, off topic, it's a bad idea to use "classic" as your template directory name as many of your changes will get over-written when you next upgrade. I'd recommend renaming them all and then re-setting your template in the Admin.
Oh my good, you were right, the hover js file was only in the template_default directory, i copied it in the classic directory and now everything works, AMAZING, and i spent hours reading and looking to the code. I remember checking the html output and seeing the hover js file in the head section but you are right.
Working at night isn't that good :)). Thanks a lot, and I will create a new theme name so at the next release i don't get all my design and settings screwed up. I was thinking on making some designs improvements anyway.
Thank you very much Zen Cart community :).
Hi,
I've just installed IH2 and I have got it working to some extent. It does a really nice job of resizing the images, very nice!
I am having a few problems most probably something to do with the way I have installed it.
I'm running my setup locally using WAMP. And I have my zencart installed in the directory zencart. So under zencart I have admin, images , includes etc...
I've copied all the directories for IH into the zencart directory.
There's a few strange things that are not working but most noticeably When I go to:
Tools->Image handle 2->preview
I cannot see any of the preview images..
when I click to view image my browser tells me:
The requested URL /zencart/zencart/admin/images/ih-test.png was not found on this server.
It seems that somehow IH2 thinks that there is another dir called zencart in my original zencart directory.
I'm sure this is simple to fix but I'm not sure where to look.
Any help would be great.
Thanks.
I've trying to figure out this for a couple of days, i searched the forum but i could not find a problem similar to mine or at least i did not see one.
My problem is: i have this mod installed on a testing site and i am able to add an image from the IH2 under the Admin, the site however is using the Zen Cart mechanism of displaying the same image with different dimensions and the same size, the only thing this mod does is displaying a medium image size when hover with mouse over the small image.
Is there a way to force Zen Cart to use this mod? as i said it is installed and partially working (the hover part).
Other things that is not working:
The Zoom image is not displaying
the images are not resizing
I appreciate any help to get me started. Thanks.
Ok, it is working now and beautifully if i may say.
I think what happened is the following:
I tried to use the admin to clear the cache from bmz_cache the i got an error that the files were not deleted, i checked the permission for that directory and it was 777 however the sub folder with only read/execute permission, i deleted the sub folders manually and wallah, it is working.
Well another thing i did, I cut the grass (usually do that when i get frustrated) maybe it has something to do with it. :lamo:
As anyone else seen this problem?
In the admin pages in Tools->Image handle 2->preview
The images are not showing up. I've looked at the code and found that in
image_handler.php it seems to be adding the extra zencart directory in here
one of the lines of code looks like this:
<td><img style="border: 1px solid #000000; background:url(images/checkpattern.gif)" src="<?php echo HTTP_SERVER . DIR_WS_CATALOG . $images['pngsource']?>" /></td>
if I remove the DIR_WS_CATALOG and replace it with '//' it sees the image but I'm not sure that this is the correct solution.
If anyone as seen this or knows how to fix it please let me know.
Thanks
I do not see any images in the preview either, all i see 9 blocks with different sizes for gif, jpg and png, there is not hotspot to click on. (I thought this what i suppose to see! isn't it?
Did you check your zen cart configuration files?
Now that you mention it, I noticed that I am showing the same thing.
I never paid attention to it because it wasn't affecting functionality.
Yes, I did check configuration files and DIR_WS_CATALOG is defined with a trailing slash like so:
define('DIR_WS_CATALOG', '/haiswigs/');
Hi all,
Thanks for the replies it's good to know others might have seen this as well.
To get and idea of what the preview should look like look here:
http://breakmyzencart.com/image-handler
there's a small image in the left that should give you and idea of what it looks like when it's working.
for me it's not a problem with the number of slashes it's the fact that an extra dir is inserted into the path. So the path to the image is:
/zencart/zencart/admin/images/ih-test.png
whereas it should be something like:
/zencart/admin/images/ih-test.png
so if i remove DIR_WS_CATALOG form the php code it seems to get the correct path.(Since it is defined as /zencart/ i have to replace is with a single / hence '//' (two slashes because you have to escape it first, otherwise php throws an error).
It doesn't really stop me using IH2 but it would be nice if the preview worked as it would help with tweaking compression, sizing etc.. At least this is what it think it is supposed to be used for if it works.
I found the path to the broken images by right clicking on them and clicking on view image (in firefox).
it could be that the string that is returned by $images['pngsource'] is not being formed correctly? i.e. in my case it's adding an extra zencart directory.
I don't know what you mean by the double definition, please elaborate.
I tried the fix outlined above, so now the functions_bmz_image_handler.php reads:
$ihConf['dir']['admin'] = end(explode("/", trim( (($request_type == 'SSL') ? DIR_WS_HTTPS_ADMIN : DIR_WS_ADMIN) ,"/") ))."/";
I do see .jpg and .gif, no png.
Worse than that I get error message:
Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in C:\xampp\htdocs\haiswigs\includes\classes\bmz_image_handler.class.php on line 646
Until a fix is found I am returning to old version of file, since this only affects admin preview.
GD Version bundled (2.0.34 compatible)
I think by double definition testuser is refering to the path to the broken images in the preview:
in my case:
/zencart/zencart/admin/images
whereas it should be more like:
/zencart/admin/images
so zencart has been added to the path twice instead of once...
Don't know what errors you've got so i can't help there.. But you have to be careful editing these files, I think even some white space in the wrong place could cause an error.
Had this problem - my fix was fairly simple... my ZEN CART version is 1.3.7.
MY SOLUTION...
I uninstalled the image handler that came with version 1.3.7 and then uploaded a fresh copy and reinstalled it.
Next, I reinstalled IH2... and all was well.
My only comment to the solution was I think I had corrupted my initial IH.
This solution was my last resort - I had worked the problem for a few weeks - frustrated to no end - but the reload of the original IH and then loading and installing IH2 was smooth as glass.
jund
I've got this same problem but there's no spaces in the file name. Running on a Win Server, full permissions on the cache and images folder.Quote:
Quote:
Originally Posted by mrmarcus66 http://www.zen-cart.com/forum/images...s/viewpost.gif
I am still getting the error, it seems to be intermittant. Can anyone help me work out why I am getting this error. I am using zen-cart 1.3.0.1
Error!
Unable to determine the page link!
Function used:
zen_href_link('', '', 'NONSSL')
This error is to do with the file name itself...I tested it with file names without spaces and it worked. try it and let me know. tested on apache on windows and apache on linux. so basically change your file names so that it doesn't include any spaces and it will work 100%
Hope this helps you all
Any ideas?
Well I think you have to make sure that you deleted the original line of text there. And then make sure you are editing it with a plain text editor like notepad or something.
The fix that you tried was for the double definition. Like I said it worked for me apart from the PNG images.
If i find anything more I'll post it here.
Yes, of course I made sure, and I know about plain text.
What is strange is that I now have the modified file working (with the original file conveniently renamed in same folder), but nothing happens.
Same as before I have no previews, but there are no errors either, so I'll just leave it there until somebody comes up with a fix for this.
It's not a critical issue for me, so I'll test for a while and if anything goes awry, I'll go back to original.
Thanks.
Hi, ckosloff - my, oh my, you are a busy beaver!!
I too have had numerous problems with IH2, not least of which it seems to me that it is quite difficult to find an 'authoritative' working, up-to-date version. I think that it is about time someone grabbed this mod by the scruff of its neck and rationalised the versions, because, as far as I recall, the version on the Author's web site differs from that in the ZC downloads section!! (Of course, this won't mean that the AUthor's version will correspond with the version in the download section, but, perhaps, if the 'read me' file were to state in no uncertain terms, and truthfully, that the version there is THE definitive, accept no substitutes blah-di-blah...)
I have encountered the absent preview images problem, and have found that reverting to a 'clean' install of Zen Cart, followed by installation of IH2, checking to see that it works as expected - once it is up and working correctly, it can be followed by all the other mods that you require. Of course you need to pay careful attention when and where 'merges' are necessary. This process has fixed the problem for me - I know it's SUCH a pain, but do you really NEED the preview images?
As you know, I have NEVER been able to get the 'hover' to work, but that doesn't particularly bother me!
the original filename must not have any spaces in it or any brackets "(" ")". the problem, in my experience, occurs when the script trries to rename the new file name to the old one and add the varient number on the ed so its all to do with the old file name, ie the filename that the original product image is.
Does anyone know how to config image size when i move mouse to ?Now,my shop just show small image when i move mouse to product....
Thanks you!
When hovering small image, your medium image is shown. If you have all your images set to the same size under Configuration :: Images you won't notice a difference.
Remember the easiest way to use Image Handler is not to get carried away with it's own Image Functions and just let it do it's work. In other words, just upload your "Highest Quality" image when adding or editing a product - then let IH do the work.
Hi blag,
Not really that busy, we just happen to be in same threads.
I am well aware of the discrepancy between the download section and the author's site.
I decided to go with the latter, the downloads section is still very disorganized, maintainers know it but they don't have time to fix it now, this is free software so we have to bear with them.
Regarding your fix, no I don't need the preview images that bad, I might wait for an important upgrade in the software to reload everything.
Regarding the hover effect, you know what the fix is, only you don't want to apply it, with IH2 you have to forget about _MED, _LRG, naming the files, etc. You just upload a base image and let the program do the rest.
Cheers!.
I was try to change many dimensions but it seem it not work....
This is image :D
http://www.handicraft-vn.com/gallery...OM+PROBLEM.JPG
I upload bigest image in 1600x1200 but i just setup in 450x350
This is another image:
http://www.handicraft-vn.com/gallery...M+PROBLEM2.JPG
This is my means:
http://www.handicraft-vn.com/gallery...M+PROBLEM3.JPG
and i don't know how to config this .....:cry:...i use paint and it is ugly :D