-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Yeah, as a result I went into my products database to see how many had the all uppercase extension. (From whence this came I don't know.) Don't have too many and was considering using a RegEx expression with a SQL query to replace it, but almost seems like it would take me longer to "remember" how to construct the two attributes than it would be for me to manually modify them. Fortunately our store isn't large; however, I do need to figure out how to not have this happen again after I have fixed them and then restore the .htaccess file to only address lower case extensions.
Yup, definitely faster to manually modify in this case. Wondering if the capitalization comes from when I uploaded a photo from my cell phone. :/
I know that I had tried renaming the files to .jpeg, but of course that was one of the options in my htaccess file either, so all around in that case was not going to work then. Didn't try lowercase jpg when I was uploading and revising yesterday. Gotta keep all things working together and oh yeah, adopt and stay with standard rules. :)
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Going back and looking at my configuration->images settings, had (purposefully at the time) settings for small, medium, and large extensions set as no change.
Do I understand the help file correctly that if I had set those to any of the three values that upon upload of a file with the incorrectly all capitalized extension all will be "okay"? Or am I too wishful?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Going back and looking at my configuration->images settings, had (purposefully at the time) settings for small, medium, and large extensions set as no change.
Do I understand the help file correctly that if I had set those to any of the three values that upon upload of a file with the incorrectly all capitalized extension all will be "okay"? Or am I too wishful?
No.. please re-review the readme for a detailed explanation of what those settings are really meant to do.. In short they have everything to do with setting the filetype of uploaded images..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
I have a question. I LOVE IH. I use it with about 900 products. It's a HUGE time-saver.
I have it installed on a custom template, and I would like to switch templates. IH is of course installed under the template I'm currently using. If I were to switch templates, I would need to re-install IH on the new template, correct? Would it recognize the images already on my server (as they were created with IH)? Would thumbnails, etc. be lost?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
meljen
I have a question. I LOVE IH. I use it with about 900 products. It's a HUGE time-saver.
I have it installed on a custom template, and I would like to switch templates. IH is of course installed under the template I'm currently using. If I were to switch templates, I would need to re-install IH on the new template, correct?
In effect, yes it would need to be incorporated into your new template (See the readme).
Quote:
Originally Posted by
meljen
Would it recognize the images already on my server (as they were created with IH)?
Absolutely should. (See the readme)
Quote:
Originally Posted by
meljen
Would thumbnails, etc. be lost?
Anything that is/was generated by IH will not be lost, now if your "custom template" does something special outside of what IH handles/provides then that is outside the scope of this thread. But again, see the readme.
I would advise that you test your new template on a "offline" store before making the change. Don't want to lose business because of something that might be wrong in your new template. I will say it is somewhat exciting to make a switch like that and see that it works, while being concerned that it might not. A sort of stage fright.
-
Image Handler 4 - Important security update
We have been informed of a minor XSS flaw that exists within the IH4 code for v1.5.x
Mitigation for the flaw has been posted to the IH4 code in the plugins. Please go to the plugins page to download and update your store..
thanks to PaulM for notifying us about the flaw.
-
Re: Image Handler 4 Support Thread
Mozilla doesn't like the unbalanced tree being generated via: document.write(); in imagehover.js. This:
document.write('<div id="trailimageid">');
document.write('</div>');
Should be this:
document.write('<div id="trailimageid"></div>');
Is there a reason for breaking it out into two statements?
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
mrbojangles
Mozilla doesn't like the unbalanced tree being generated via: document.write(); in imagehover.js.
Can you explain how you came to that conclusion? What were the symptoms that caused you to investigate? What were the findings that brought you to the conclusion you posted?
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
DrByte
Can you explain how you came to that conclusion? What were the symptoms that caused you to investigate? What were the findings that brought you to the conclusion you posted?
Mozilla gave warning in console. I did not notice behavior which would indicate a problem, but Mozilla does not recommend it as it can potentially cause unwanted behavior.
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
mrbojangles
Mozilla doesn't like the unbalanced tree being generated via: document.write(); in imagehover.js. This:
document.write('<div id="trailimageid">');
document.write('</div>');
Should be this:
document.write('<div id="trailimageid"></div>');
Is there a reason for breaking it out into two statements?
Quote:
Originally Posted by
mrbojangles
Mozilla gave warning in console. I did not notice behavior which would indicate a problem, but Mozilla does not recommend it as it can potentially cause unwanted behavior.
Thanks for clarifying.
They might have been split up just as a matter of inheritance from previous versions of the plugin.
No reason not to close them up, besides it'll run faster as one statement anyway.
-
Re: Image Handler 4 Support Thread
How do I tell what version of the Image Handler I have installed on my Zen Cart site? My site is at horse-logos.com
Also does the Image Handler have any effect on SEO and customer sales compared to using zen cart without Image Handler?
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
jonisolis
How do I tell what version of the Image Handler I have installed on my Zen Cart site? My site is at horse-logos.com
Look in admin panel (Tools > Image Handler)
-
Re: Image Handler 4 Support Thread
Hi, I have a question about IH4.
Will google and other search engines be able to find out my uploaded images without water mark? Or they can find out the images with water mark created by IH4?
Thanks for your reply!
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Hi, I have another question. How to upgrade from IH4 version 4.2 to 4.3.1? You did not mention this in your readme file . Should I uninstall 4.2 first and then install 4.3.1?
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
asdfwen
Hi, I have a question about IH4.
Will google and other search engines be able to find out my uploaded images without water mark? Or they can find out the images with water mark created by IH4?
Thanks for your reply!
The watermark does not affect Google finding your images..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
ok. However, you did not answer my second question:
How to upgrade IH4 version4.2 to IH4 version4.3.1? Should I unintall 4.2 first?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
asdfwen
ok. However, you did not answer my second question:
How to upgrade IH4 version4.2 to IH4 version4.3.1? Should I unintall 4.2 first?
Follow the regular install instructions.. there's no specific "upgrade" instructions..
-
Re: Image Handler 4 Support Thread
I checked and I have Image Handler4 Version: 2.0. So I tried to download the latest version and I keep getting this message:
"Message
Slow Down! You are trying to download files too quickly. You must wait 25 seconds before you may download another file."
http://www.zen-cart.com/downloads.ph...52876ad656c698
So how do I download the file?
-
Re: Image Handler 4 Support Thread
What would you charge me to update my Image Handler addon and add the Lightbox addon? You can email me at: info at horse-logos.com. Thanks!
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jonisolis
I checked and I have Image Handler4 Version: 2.0. So I tried to download the latest version and I keep getting this message:
"Message
Slow Down! You are trying to download files too quickly. You must wait 25 seconds before you may download another file."
http://www.zen-cart.com/downloads.ph...52876ad656c698
So how do I download the file?
This isn't a IH issue, but related to Zen-Cart.com. I think the timer is set for about a minute between downloads. Wait at least that long before trying your next download.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Yes, I see that this is not a IH issue. I have tried and tried to download the newest version of IH4 but keep getting the message below no matter when I try or how long I wait between trying to download:
"Message: Slow Down! You are trying to download files too quickly. You must wait 26 seconds before you may download another file."
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jonisolis
Yes, I see that this is not a IH issue. I have tried and tried to download the newest version of IH4 but keep getting the message below no matter when I try or how long I wait between trying to download:
"Message: Slow Down! You are trying to download files too quickly. You must wait 26 seconds before you may download another file."
Then you will need to contact the site admins as I have no control over how the module downloads section functions..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Sorry, how do I contact the site admins? Thanks!
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jonisolis
Sorry, how do I contact the site admins? Thanks!
Bottom of the web page (contact us) or this link: http://www.zen-cart.com/sendmessage.php
-
Re: Image Handler 4 (for v1.5.x) Support Thread
-
Main Product Image Does Not Display
I wonder if anyone can help me with this issue that I have never been able to solve since installing Image Handler.
I am using image handler with Zen Lightbox on v1.5.0.
I have uploaded an image to my 'furniture' image directory within the Image Handler admin. This all works fine, and within the admin I can see that small, medium and large images have been successfully created. However when I go to my product detail page the main product image is missing, and instead just the image name is displayed as a hyperlink. If I click this hyperlink my image is displayed in Zen Lightbox correctly.
I have used Firebug and have discovered that my product detail page is looking for an image with the same name that I have uploaded using Image Handler but with a _MED suffix and within images/medium/furniture rather than images/furniture which is the directory I chose in the Image Handler admin.
I have been playing around with this for months but cannot work out why it is exhibiting this behaviour, and wondered whether anyone could point me in the right direction for a fix? The only way I have found to workaround this issue is to create an image with a _MED.jpg suffix and manually upload this to the location my product info page is expecting it to be, but obviously this is not ideal.
An example of a page where this is happening can be found here
I would appreciate any pointers anyone can give me.
Many thanks
-
Re: Main Product Image Does Not Display
Quote:
Originally Posted by
OLCS
I wonder if anyone can help me with this issue that I have never been able to solve since installing Image Handler.
I am using image handler with Zen Lightbox on v1.5.0.
I have uploaded an image to my 'furniture' image directory within the Image Handler admin. This all works fine, and within the admin I can see that small, medium and large images have been successfully created. However when I go to my product detail page the main product image is missing, and instead just the image name is displayed as a hyperlink. If I click this hyperlink my image is displayed in Zen Lightbox correctly.
I have used Firebug and have discovered that my product detail page is looking for an image with the same name that I have uploaded using Image Handler but with a _MED suffix and within images/medium/furniture rather than images/furniture which is the directory I chose in the Image Handler admin.
I have been playing around with this for months but cannot work out why it is exhibiting this behaviour, and wondered whether anyone could point me in the right direction for a fix? The only way I have found to workaround this issue is to create an image with a _MED.jpg suffix and manually upload this to the location my product info page is expecting it to be, but obviously this is not ideal.
An example of a page where this is happening can be found
here
I would appreciate any pointers anyone can give me.
Many thanks
SOmething in your store/install is screwy which explains the issue.. IH4 is a straighforward install even with ZLB.. You should double check your install and make sure all the right modifications are in place and that, other image add-ons which don't play so nicely with IH4, or your template itself aren't the cause of the issue.. Wish I had more to offer in the way of help..
-
Re: Main Product Image Does Not Display
Quote:
Originally Posted by
DivaVocals
SOmething in your store/install is screwy which explains the issue.. IH4 is a straighforward install even with ZLB.. You should double check your install and make sure all the right modifications are in place and that, other image add-ons which don't play so nicely with IH4, or your template itself aren't the cause of the issue.. Wish I had more to offer in the way of help..
Hi DivaVocals,
Many thanks for taking the time to respond. I did a new install last night of Image Handler and still no joy. I don't have any other image addons within my site so I am guessing therefore that the issue must be something to do with my template.
Thanks for your help
-
Version: v4.3.1 template popup additional images code change error
While revising this latest version I find this code change:
PHP Code:
echo '<a href="javascript:window.close()">' . zen_image(DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE . ' ' . TEXT_CLOSE_WINDOW) . '</a>'; /*v4.3.1c-lat9*/
This is supposed to show the "no image" image as defined in the admin, but it's incorrect. There should be a comma before the TEXT_CLOSE_WINDOW text or else said text concatenates into the image name preventing it from being found/displayed:
PHP Code:
echo '<a href="javascript:window.close()">' . zen_image(DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, TEXT_CLOSE_WINDOW) . '</a>'; /*v4.3.1c-lat9*/
-
Re: Version: v4.3.1 template popup additional images code change error
Quote:
Originally Posted by
torvista
While revising this latest version I find this code change:
PHP Code:
echo '<a href="javascript:window.close()">' . zen_image(DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE . ' ' . TEXT_CLOSE_WINDOW) . '</a>'; /*v4.3.1c-lat9*/
This is supposed to show the "no image" image as defined in the admin, but it's incorrect. There should be a comma before the TEXT_CLOSE_WINDOW text or else said text concatenates into the image name preventing it from being found/displayed:
PHP Code:
echo '<a href="javascript:window.close()">' . zen_image(DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, TEXT_CLOSE_WINDOW) . '</a>'; /*v4.3.1c-lat9*/
Good catch.. will update the package and re-submit..
-
Re: Version: v4.3.1 template popup additional images code change error
Hi:
I am using 1.5, and my site is in2paper.com
I have uploaded the image-handler 4 and checked and re-checked my uploads and cant see where I am missing anything,
yet I get:
Missing or unreadable file:/home/inpaperc/public_html/images/large/watermark_LRG.png
Warning Some Image Handler files do not exist. Perhaps you have uploaded them incorrectly? Or the permissions are set incorrectly?
Warning ********** Installation has been aborted. **********
I have downloaded the files a second time and re-checked the installation but still no luck
permissions set to 755
Any help will be appreciated
Rufus
-
Re: Version: v4.3.1 template popup additional images code change error
Hi:
please ignore my last post,
re-uploaded again and this time 3rd time a charm
Sorry for trouble and inconvenience
Rufus
-
Re: Version: v4.3.1 template popup additional images code change error
Hi - me again:
This add-on working great,
except for 1 thing:
some of my png images when clicking on larger image takes 3 - 4 seconds to display the new image.
Any suggestions on how to speed up this initial processing of the image? The original png admittedly is a large file (thus my reason for using this add-on)
Regards and thanx
Rufus
-
Re: Version: v4.3.1 template popup additional images code change error
Quote:
Originally Posted by
rufusclc
Hi - me again:
This add-on working great,
except for 1 thing:
some of my png images when clicking on larger image takes 3 - 4 seconds to display the new image.
Any suggestions on how to speed up this initial processing of the image? The original png admittedly is a large file (thus my reason for using this add-on)
Regards and thanx
Rufus
Resize your larger images before uploading.. No tips for speeding up the time it takes the browser to load large images except to re-size them..
-
Re: Version: v4.3.1 template popup additional images code change error
Hi:
me again.
While this add-on is working just great, I have 1 question/problem and am asking for advise.
I am getting this with some of the iamges:
ftp://inpaperc@*********.com/public_...ge.100x100.png
ftp://inpaperc@*********.com/public_...ge.168x168.png
ftp://inpaperc@*********.com/public_...ge.550x550.png, which is giving me a file size of 1,185KB which has resulted in a massive inflation of the size my site.
I am using your suggested IH large image 750; 550...
Do you have a recommended or suggested smaller size I could/should use to reduce this file size
or is this related to the size of my original image
Regards
Rufus
-
Re: Version: v4.3.1 template popup additional images code change error
Quote:
Originally Posted by
rufusclc
Your images sound like they are too high res to begin with.. So perhaps the IH4 default settings are reducing the image sizes enough.. You might try playing around with the compression settings. (see the readme for details)
-
Re: Version: v4.3.1 template popup additional images code change error
Thanx - love the program.....
Rufus
-
Re: Image Handler 4 Support Thread
Hello Diva and other Zenners -
I have gone through the entire 74 pages of this thread to see if anyone else was encountering the same errors that I was. I only found one person who reported the same error and that is on post number 438.
Here's the link to that post so you don't have to scroll around to find that issue: http://www.zen-cart.com/showthread.p...52#post1172352
Here's what I have and what I am encountering:
Fresh installation of Zencart 1.5.1. The only other add on other than IH4 that I have is column divider pro.
IH4 installation went fine. Easy to read instructions.
After configuring IH4, every time I click on my site, the site behaves erratically. Sometimes the cart works exactly as it's supposed to, other times, it just freezes. The category section will sometimes just stay in the middle of the page when the site loads to display something that I click on. Whenever the site does not load everything, the right sidebar and the footer does not load. When clicking on subcategories - sometimes the products are displayed, other times it's just a blank page.
I've uninstalled and reinstalled IH4 several times and the issue is persisting. The site can be seen at (please note that this site is under development. while the url is of an adult nature, the category and sub categories that are currently set up are for costumes and lingerie. If you are easily offended, please do not click on the site). The site is located at www dot just-v i b r a t o r s (the "-" needs to be typed between the two words) dot com/zencart/just-v i b r a t o r
As much as I would love to say a certain subcategory does not show images consistently so you can click on it to see what I'm talking about, the issue is the erratic behavior is non-consistent. If you type in the url above and click on the category, and a few of the subcategories, you will notice the issue. It
Quote:
Originally Posted by
DivaVocals
and have you done the following:
- Checked your error logs to see what error messages may be appearing?? (this is the first place you should go ANYTIME you are experiencing issues with blank pages or content not displaying)
- Tried switching templates to see if the same behavior persists?
- Tried turning off Image Handler in the admin and then seeing if the same behavior persists??
Diva had asked the questions above to the person posting the original issue: I did check the error logs. There are no errors to report.
I switched templates to the defualt zen and the same problem persists in that template.
As soon as I turn IH4, the site does not act up. Because this is going to be image heavy, I really need something like IH4.
If anyone can point me to the right direction - I will be grateful. Thank you in advance.
-
2 Attachment(s)
Re: Image Handler 4 Support Thread
Here are a few example screenshots: The first image is when the site is doing exactly what it's supposed to do: Attachment 12905
The second image is of a sub category that is displaying a blank page and also notice the right sidebar missingAttachment 12907
The third screen shot is when I clicked on Home, the site reloaded and frooze on this screen: Attachment 12908
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
kman55
Hello Diva and other Zenners -
I have gone through the entire 74 pages of this thread to see if anyone else was encountering the same errors that I was. I only found one person who reported the same error and that is on post number 438.
Here's the link to that post so you don't have to scroll around to find that issue:
http://www.zen-cart.com/showthread.p...52#post1172352
Here's what I have and what I am encountering:
Fresh installation of Zencart 1.5.1. The only other add on other than IH4 that I have is column divider pro.
IH4 installation went fine. Easy to read instructions.
After configuring IH4, every time I click on my site, the site behaves erratically. Sometimes the cart works exactly as it's supposed to, other times, it just freezes. The category section will sometimes just stay in the middle of the page when the site loads to display something that I click on. Whenever the site does not load everything, the right sidebar and the footer does not load. When clicking on subcategories - sometimes the products are displayed, other times it's just a blank page.
I've uninstalled and reinstalled IH4 several times and the issue is persisting. The site can be seen at (please note that this site is under development. while the url is of an adult nature, the category and sub categories that are currently set up are for costumes and lingerie. If you are easily offended, please do not click on the site). The site is located at www dot just-v i b r a t o r s (the "-" needs to be typed between the two words) dot com/zencart/just-v i b r a t o r
As much as I would love to say a certain subcategory does not show images consistently so you can click on it to see what I'm talking about, the issue is the erratic behavior is non-consistent. If you type in the url above and click on the category, and a few of the subcategories, you will notice the issue. It
Diva had asked the questions above to the person posting the original issue: I did check the error logs. There are no errors to report.
I switched templates to the defualt zen and the same problem persists in that template.
As soon as I turn IH4, the site does not act up. Because this is going to be image heavy, I really need something like IH4.
If anyone can point me to the right direction - I will be grateful. Thank you in advance.
and like the other thread you posted, it was pointed out that the issue is likely related to one of your images.. It could be a corrupted image or an improperly named image, or image permissions.. Can't say, you will have to figure out which are the offending products and look at the images involved.. And I would say it's caused when the offending image/product is displayed in the new products sidebox.. You might start with the products here here: www(dot)just-vibrators(dot)com/zencart/just-vibrator/index.php?main_page=products_new&disp_order=6&page=6 & www(dot)just-vibrators(dot)com/zencart/just-vibrator/index.php?main_page=products_new&disp_order=6&page=10.. because when browsing through the new products, the right sidebar and footer disappears when I reach these pages.. You'll need to go through the rest of your new products to see where else this happens..
may I suggest that if you don't want your site indexed you type it in this manner. All the extra spaces are not necessary..
www(dot)just-vibrators(dot)com/zencart/just-vibrator
-
Re: Image Handler 4 Support Thread
http://r00kie.com/grnc/zencart/
Zen Cart 1.5.1
Database Patch Level: 1.5.1
PHP Version 5.2.17
Fresh install
Installed via ftp
mysql: 5.5.33
This is my first zencart and I've been extremely happy with the software and plugins, that others have provided! I have a full site up and running, but before I make the changes to the live site, I have a secondary copy of the cart on another server. I performed the install of IH4, and everything went great, and worked great. The only thing I noticed, and can't seem to figure out whats going wrong is when you click on an item and view it. There are additional product images that I have loaded, and they show up in the small thumbnails, which is great, but when I try to view/enlarge the additional photos, it fails. Now if I click on the main product image, and view/enlarge it, it works as expected. I've tried doing some searches on the forums, and on google, to see if anybody else had experienced this and had a solution. However I was unable to find any reference to this problem. I'd be extremely grateful if somebody could take a few moments, and possible lend their help and expertise, as I'm sure it's something stupid that I have reconfigured possibly or didn't implement properly. Once again thanks to whomever in advance for the help!
Scott
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
kman55
The second image is of a sub category that is displaying a blank page and also notice the right sidebar missing
I clicked through a lot of items and categories on your site, and everything I clicked on appeared to work correctly except the "vibrating underwear" category, which consistently displays as your second screenshot.
I would start with this category as it only has 96 items - maybe disable the entire category and all products in the category and see if the problem goes away. Then re-enable the category and test a limited number of these products to see if you have a problem with a specific image.
good luck
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
solo
http://r00kie.com/grnc/zencart/
Zen Cart 1.5.1
Database Patch Level: 1.5.1
PHP Version 5.2.17
Fresh install
Installed via ftp
mysql: 5.5.33
This is my first zencart and I've been extremely happy with the software and plugins, that others have provided! I have a full site up and running, but before I make the changes to the live site, I have a secondary copy of the cart on another server. I performed the install of IH4, and everything went great, and worked great. The only thing I noticed, and can't seem to figure out whats going wrong is when you click on an item and view it. There are additional product images that I have loaded, and they show up in the small thumbnails, which is great, but when I try to view/enlarge the additional photos, it fails. Now if I click on the main product image, and view/enlarge it, it works as expected. I've tried doing some searches on the forums, and on google, to see if anybody else had experienced this and had a solution. However I was unable to find any reference to this problem. I'd be extremely grateful if somebody could take a few moments, and possible lend their help and expertise, as I'm sure it's something stupid that I have reconfigured possibly or didn't implement properly. Once again thanks to whomever in advance for the help!
Scott
As in my earlier reply today, there are a number of reasons images may fail to display.. a corrupted image or an improperly named image, or image permissions.. Can't say, you will have to figure out which are the offending products and look at the images involved.. And very rarely it could be that the GD Library binaries are corrupted.. (and this last one you MUST speak to your host about if it is the issue)
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
DivaVocals
As in my earlier reply today, there are a number of reasons images may fail to display.. a corrupted image or an improperly named image, or image permissions.. Can't say, you will have to figure out which are the offending products and look at the images involved.. And very rarely it could be that the GD Library binaries are corrupted.. (and this last one you MUST speak to your host about if it is the issue)
I understand about the corrupted image, and would totally agree with you, however I have checked them several times, and the work great, and can access them fine if I point my browser directly to them, or disable using IH4, then they display fine. The photos i uploaded have very simple name conventions.
IE:
new_polo.jpg
new_polo_02.jpg
new_polo_03.jpg
etc....
tshirt.jpg
tshirt_02.jpg
tshirt_03.jpg
etc...
If you think it could possibly be my hosting providers GD library's, then I will submit a trouble ticket and ask them to investigate. I was hoping something more simple that I possibly messed up. Thanks again for the help and advice. I'll keep trying to figure something out based on your advice. But if you do come up with anything else, I'd greatly appreciate any more help that you'd or anybody else would be willing to provide. Thanks again in advance
Scott
-
Re: Image Handler 4 Support Thread
I don't have any other options to suggest or guess at.. I listed the usual problems. Can't see your site so I have nothing further to add..
Quote:
Originally Posted by
solo
I understand about the corrupted image, and would totally agree with you, however I have checked them several times, and the work great, and can access them fine if I point my browser directly to them, or disable using IH4, then they display fine. The photos i uploaded have very simple name conventions.
IE:
new_polo.jpg
new_polo_02.jpg
new_polo_03.jpg
etc....
tshirt.jpg
tshirt_02.jpg
tshirt_03.jpg
etc...
If you think it could possibly be my hosting providers GD library's, then I will submit a trouble ticket and ask them to investigate. I was hoping something more simple that I possibly messed up. Thanks again for the help and advice. I'll keep trying to figure something out based on your advice. But if you do come up with anything else, I'd greatly appreciate any more help that you'd or anybody else would be willing to provide. Thanks again in advance
Scott
-
Re: Image Handler 4 Support Thread
Good day,
I am running Zen Cart 1.5.1. It is a fresh installation with the following addons:
Canad Post Shipping Module;
Canadian Taxes;
Custom Template (not a template monster one);
I am considering installing Image Handler 4 as the images in my Zen Cart are blurry despite several attempts to fix the problem through the admin panel adjustments setting all heights to zero. My question is: I have seen repeated references to auto installer for IH4 but the files I unzipped do not have any executable files that can automatically instal IH4. What am I missing?
Thank you.
-
Re: Image Handler 4 Support Thread
The readme file walks through the installation steps including how to trigger the auto installer.
Quote:
Originally Posted by
EHSI
Good day,
I am running Zen Cart 1.5.1. It is a fresh installation with the following addons:
Canad Post Shipping Module;
Canadian Taxes;
Custom Template (not a template monster one);
I am considering installing Image Handler 4 as the images in my Zen Cart are blurry despite several attempts to fix the problem through the admin panel adjustments setting all heights to zero. My question is: I have seen repeated references to auto installer for IH4 but the files I unzipped do not have any executable files that can automatically instal IH4. What am I missing?
Thank you.
-
Re: Image Handler 4 Support Thread
Thank you for the reply. It is obviously my fault, but I read the installation instructions and this is the reason I posted in here. I still have the same question where is the auto installer?
In the New Installation Instructions (which I read several times) I see that I have to manually upload my IH4 files (via FTP) to the server. I do not see any instructions how to trigger an auto installer that would upload the files and install them for me. I suppose the I have to trigger the auto installer after my files are on the server?
I need the answer.
Thank you.
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
EHSI
Thank you for the reply. It is obviously my fault, but I read the installation instructions and this is the reason I posted in here. I still have the same question where is the auto installer?
In the New Installation Instructions (which I read several times) I see that I have to manually upload my IH4 files (via FTP) to the server. I do not see any instructions how to trigger an auto installer that would upload the files and install them for me. I suppose the I have to trigger the auto installer after my files are on the server?
I need the answer.
Thank you.
Taken DIRECTLY from the install instructions tab..
Quote:
- Next, using an FTP program, upload the files from "1_Installation_Files" to your store -- DO NOT upload the "1_Install_Files" folder, just the CONTENTS of this folder
(copy ALL of the add-on files to your store!! Most issues are caused by store owners who decide to NOT load ALL of the module files) - Return to your store's admin and click on any link. If you followed the instructions above, you will see a message in the message stack at the top of your admin screen confirming a successful install.
- Navigate to Admin > Configuration > Images, set "IH resize images" to "yes".
The auto-installer is included in the fileset.. It does not auto upload the files.. You FTP them as the instructions say you must do.. Follow the installation instructions and the auto-installer will execute.. This is not a Windows app.. there is no .exe file..
-
Re: Image Handler 4 Support Thread
Thank you. It is better to ask than to be sorry.
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
EHSI
Thank you. It is better to ask than to be sorry.
Except this already IS in the readme instructions which is why I referred you back to them.. All that happened is I re-posted the same information I referred you to..
-
1 Attachment(s)
Re: Image Handler 4 Support Thread
Your instruction are not clear enough and they allow for different interpretations. You re-posted your read me instructions WITH your additional personal instructions. That is why I was able to install the IH4, not because you re-posted the read me instructions. Thank you for help.
I installed the IH4. The hover effect does not work for some reason. Below is the screenshot of control panel. Could you please let me know what could be the problem.
Attachment 12919
-
1 Attachment(s)
Re: Image Handler 4 Support Thread
Here is a larger image of the screenshot. Thank you again.
Attachment 12920
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
EHSI
Your instruction are not clear enough and they allow for different interpretations. You re-posted your read me instructions WITH your additional personal instructions.
Hmmmm.. Right.. interesting considering that this has never been an issue for others since the introduction of the auto-installer functions.. (and the only PERSONAL instruction I provided was to let you know that this is NOT a windows app -- which should be fairly obvious) If you feel that the instructions weren't clear, I would welcome any suggestions for how this could be worded..
Quote:
Originally Posted by
EHSI
Did you follow the LAST STEP of the installation instructions??
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
DivaVocals
and like the other thread you posted, it was pointed out that the issue is likely related to one of your images.. It could be a corrupted image or an improperly named image, or image permissions.. Can't say, you will have to figure out which are the offending products and look at the images involved.. And I would say it's caused when the offending image/product is displayed in the new products sidebox.. You might start with the products here here: www(dot)just-vibrators(dot)com/zencart/just-vibrator/index.php?main_page=products_new&disp_order=6&page=6 & www(dot)just-vibrators(dot)com/zencart/just-vibrator/index.php?main_page=products_new&disp_order=6&page=10.. because when browsing through the new products, the right sidebar and footer disappears when I reach these pages.. You'll need to go through the rest of your new products to see where else this happens..
may I suggest that if you don't want your site indexed you type it in this manner. All the extra spaces are not necessary..
www(dot)just-vibrators(dot)com/zencart/just-vibrator
Thank you for your input. I will investigate further.
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
weif
I clicked through a lot of items and categories on your site, and everything I clicked on appeared to work correctly except the "vibrating underwear" category, which consistently displays as your second screenshot.
I would start with this category as it only has 96 items - maybe disable the entire category and all products in the category and see if the problem goes away. Then re-enable the category and test a limited number of these products to see if you have a problem with a specific image.
good luck
Thank you for pointing this out. I will try to work on this and hopefully resolve this.
-
Re: Image Handler 4 Support Thread
The last step in the installation instructions is:
"If you were using Fual Slimbox or Zen Lightbox with Image Handler4 you MUST re-upload the /includes/modules/YOUR_TEMPLATE/additional_images.php file from Fual Slimbox or Zen Lightbox fileset or your lightbox won't function as expected."
I have never used Fual Slimbox or Zen Lightbox. This is a new installation, accordingly, neither Fual Slimbox nor Zen Lightbox were on the server and I did not upload them after I installed IH4.
Are they the addons that are required for zoom to function properly? If yes, where can I see them in action to decide which one to select?
Thank you, as usual.
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
EHSI
"If you were using Fual Slimbox or Zen Lightbox with Image Handler4 you MUST re-upload the /includes/modules/YOUR_TEMPLATE/additional_images.php file from Fual Slimbox or Zen Lightbox fileset or your lightbox won't function as expected."
That is NOT an install step.. It's an after installation optional instruction... Read through all 12 steps installation steps.. I can assure you that you skipped one (here's a hint: it's the second to the LAST step)
You can go to the downloads and review the descriptions for Fual Slimbox or Zen Lightbox. The are simply lightbox add-ons..
-
Re: Image Handler 4 Support Thread
Thank you. I did miss this one.
I like Fancybox better. Is there an addon to Zen Cart for Fancybox or the choices only are Fual Slimbox and Zen Lightbox?
Thank you.
-
Re: Image Handler 4 Support Thread
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
EHSI
Thank you. I did miss this one.
I like Fancybox better. Is there an addon to Zen Cart for Fancybox or the choices only are Fual Slimbox and Zen Lightbox?
Thank you.
Quote:
Originally Posted by
EHSI
Anybody?
Not an Image Handler support related inquiry (the purpose of this thread).. You need to create a new thread/post in the appropriate topic area to ask your lightbox module questions..
Also in general, thread "bumping" is kinda frowned upon in the forum.. From the first page of this thread:
Quote:
And a (gentle) reminder about FREE forum support:
This is ain’t Microsoft folks!
(a frequently used analogy by some to compare open source projects to commercial projects)
Like other open source projects, this support forum is manned by VOLUNTEERS (ie: unpaid folks). They are not OBLIGATED to assist here, but they do so because they WANT to. They give of their time here when their individual schedules permit. Usually the response is pretty quick 'round these parts, but when it’s not or your question has gone unanswered this may mean one of a few things:
- NO ONE has an answer to your question/issue.
(Some folks will only respond when they have something MEANINGFUL to say versus a blanket “I don’t know how to do that” kind of answer.) - Folks are just busy and will answer if/when they can..
(family and other personal obligations, day jobs, paid jobs, etc will usually trump forum participation – this is to be expected – after all it’s unrealistic to expect that folks are sitting around this forum all day and night waiting to answer questions) - Your question got missed. (and while I’m on this point) Your post MIGHT have been missed if your post is now a FEW pages back (like more than TWO or more pages) with no response.. Missed does NOT mean “it’s been an hour and no one responded to my question, so let me 'bump' the thread by re-posting my question again”
-
Re: Image Handler 4 Support Thread
working fine except the popup for additional images comes up with an empty window. Looked at the tpl_main_page.php and have the newest version. Rolled back to the tpl_main_page.php I used on 1.3.9a with IHA3 and that version works perfectly. Code is a bit different and I am sure I should be using the new file but what is not working? Anybody else having popup issues with just the additional image? Main image popup worked fine.
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
mydanilo
working fine except the popup for additional images comes up with an empty window. Looked at the tpl_main_page.php and have the newest version. Rolled back to the tpl_main_page.php I used on 1.3.9a with IHA3 and that version works perfectly. Code is a bit different and I am sure I should be using the new file but what is not working? Anybody else having popup issues with just the additional image? Main image popup worked fine.
Did you try the modification posted a few pages back (2 or 3 pages back)?? See if that solves your issue..
-
Re: Image Handler 4 Support Thread
This one?
echo '<a href="javascript:window.close()">' . zen_image(DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, TEXT_CLOSE_WINDOW) . '</a>'; /*v4.3.1c-lat9*/
Seems corrected in latest download but still empty popup on additional images. If not this one, maybe re-post it for me please?
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
mydanilo
This one?
echo '<a href="javascript:window.close()">' . zen_image(DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, TEXT_CLOSE_WINDOW) . '</a>'; /*v4.3.1c-lat9*/
Seems corrected in latest download but still empty popup on additional images. If not this one, maybe re-post it for me please?
Can't I'm on a mobile device, and it's sort of a PITA to do that.. Just page back through the thread.. look for the post by torvista..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
Thank you. I did miss this one.
I like Fancybox better. Is there an addon to Zen Cart for Fancybox or the choices only are Fual Slimbox and Zen Lightbox?
Thank you.
So, let me ask, what is it that you are trying to show? Would it possibly be something that represents previous and next actions? Like the option just above the keyboard navigation option. I guess I was also wrong maybe it is the close on image click option that forces the buttons. The instructions state something about it.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
So, let me ask, what is it that you are trying to show? Would it possibly be something that represents previous and next actions? Like the option just above the keyboard navigation option. I guess I was also wrong maybe it is the close on image click option that forces the buttons. The instructions state something about it.
Not to be a nag about this, but this topic (lightbox modules and such) should be carried out on either the support thread for the appropriate module or in a new thread.. This is NOT related to IH4 support..
-
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
DivaVocals
Can't I'm on a mobile device, and it's sort of a PITA to do that.. Just page back through the thread.. look for the post by torvista..
Ok I searched for posts by torvista, and the only code change suggested is the one that I said I did. The pop up is showing the "no image" image but not my additional image as it should.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mydanilo
Ok I searched for posts by torvista, and the only code change suggested is the one that I said I did. The pop up is showing the "no image" image but not my additional image as it should.
Although Diva has reposted some good guidance, I am providing the following without seeing the issue first hand.
With the limited available information, it sounds like in a situation where you have multiple pictures, if you select the primary picture it shows properly; however, if you select the additional image then nothing shows. Have you reviewed the filename of the database (including extension) against the stored file, your .htaccess permissions, and the extensions expected by this plugin? I came across an issue once before where I had some files with an extension of JPG instead of jpg and I had limitations in my .htaccess to allow jpg but not JPG. when attempting to view the picture it would not show.
That said, you mentioned (right or wrong) that the "no image" image showed, this isn't the same "no image" image of not uploading an image for a product is it, but rather an "error" image associated with not being able to display the desired image, correct?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Although Diva has reposted some good guidance, I am providing the following without seeing the issue first hand.
With the limited available information, it sounds like in a situation where you have multiple pictures, if you select the primary picture it shows properly; however, if you select the additional image then nothing shows. Have you reviewed the filename of the database (including extension) against the stored file, your .htaccess permissions, and the extensions expected by this plugin? I came across an issue once before where I had some files with an extension of JPG instead of jpg and I had limitations in my .htaccess to allow jpg but not JPG. when attempting to view the picture it would not show.
That said, you mentioned (right or wrong) that the "no image" image showed, this isn't the same "no image" image of not uploading an image for a product is it, but rather an "error" image associated with not being able to display the desired image, correct?
mydanilo confirmed for me that the new code for the additional images popup is not working correctly on a consistent basis.. The new code was tested.. It worked fine in my test store which is why I went ahead and submitted the update to Image Handler. However, I've recently done a brand new install for a new client and found that instead of the additional images displaying, the popup is displaying the "no image" product image instead of the proper additional images.. I further confirmed that the previous version of this file correctly displays the additional images in the popup.
I was able to repeat this same errant behavior in a site where I am doing a site makeover. As a part of that site makeover, I am updating all of the store add-ons including Image Handler.. Initially I MISSED that the issue was even occurring because this particular site also has a Colorbox module installed, and when the Colorbox module is active, the additional images show without any issues, but once I turn off the ColorBox, the behavior mydanilo is reporting occurs.
So there is an issue, but it appears that it is not an issue for all stores, and rolling back to the old version of the additional images files is not a good solution since there was a legitimate security issue with the old code.. All that said I DO NOT know how to fix this, and I would appreciate some SKILLED eyes from the community to take a look at the additional images popup code and see if they can spot the issue..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
mc12345678, your are correct. It shows the error image instead of my additional image. I shall check if the new IH handles my file names differently. I don't think I have screwed up picture file names but I will double check later and post result.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
I've uploaded now the IH4 version of the tpl_main_page.php again so you can see the behavior. Take spaces out of this link.
http://www. mydanilo.com /zen15/index.php?main_page=product_info&cPath=53&products_id=741
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Dunno if this is CORRECT or resolves the XSS issues that was the inciting reason why IH4 was updated to begin with.. This code works, but I need someone to validate if it resolves the XSS issue that was identified in IH4 v4.1.
Code:
<?php
/**mod Image Handler 4.3.2
* Override Template for common/tpl_main_page.php
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
*/
?>
<body id="popupAdditionalImage" class="centeredContent" onload="resize();">
<div>
<?php
echo '<a href="javascript:window.close()">' . zen_image(strip_tags($_GET['products_image_large_additional']), $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
?>
</div>
</body>
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Dunno if this is CORRECT or resolves the XSS issues that was the inciting reason why IH4 was updated to begin with.. This code works, but I need someone to validate if it resolves the XSS issue that was identified in IH4 v4.1.
Code:
<?php
/**mod Image Handler 4.3.2
* Override Template for common/tpl_main_page.php
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
*/
?>
<body id="popupAdditionalImage" class="centeredContent" onload="resize();">
<div>
<?php
echo '<a href="javascript:window.close()">' . zen_image(strip_tags($_GET['products_image_large_additional']), $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
?>
</div>
</body>
This code works. My additional images popup now show up. Don't know about XSS issue tho.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mydanilo
This code works. My additional images popup now show up. Don't know about XSS issue tho.
I wasn't looking for confirmation whether the code works.. I already know it works I tested it on all the sites where I was having the issue with the additional images that you reported..
I need confirmation if it resolves the XSS vulnerability.. so I suggest strongly that you NOT use this code until such a time as someone confirms this fix is correct and SAFE to use..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Dunno if this is CORRECT or resolves the XSS issues that was the inciting reason why IH4 was updated to begin with.. This code works, but I need someone to validate if it resolves the XSS issue that was identified in IH4 v4.1.
Code:
<?php
/**mod Image Handler 4.3.2
* Override Template for common/tpl_main_page.php
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
*/
?>
<body id="popupAdditionalImage" class="centeredContent" onload="resize();">
<div>
<?php
echo '<a href="javascript:window.close()">' . zen_image(strip_tags($_GET['products_image_large_additional']), $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
?>
</div>
</body>
DO NOT USE THIS CODE UNTIL IT IS VERIFIED AS SAFE!!!
That said here's an alternate..
Code:
<?php
/**mod Image Handler 4.1
* Override Template for common/tpl_main_page.php
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
*/
?>
<body id="popupAdditionalImage" class="centeredContent" onload="resize();">
<div>
<?php
echo '<a href="javascript:window.close()">' . zen_image(htmlspecialchars($_GET['products_image_large_additional']), $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>'
?>
</div>
</body>
-
Re: Image Handler 4 (for v1.5.x) Support Thread
@DivaVocals sorry I was not aware until now that you acknowledged that this is an issue on your/other sites too. I thought this was just me that has the problem at this point. So we had a general mod issue here, huh. Good to know at least that my other mods and recent changes did not affect this behavior. Thank you for all the work with IMH4. Great to have this back.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Quote:
Originally Posted by
DivaVocals
Dunno if this is CORRECT or resolves the XSS issues that was the inciting reason why IH4 was updated to begin with.. This code works, but I need someone to validate if it resolves the XSS issue that was identified in IH4 v4.1.
Code:
<?php
/**mod Image Handler 4.3.2
* Override Template for common/tpl_main_page.php
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
*/
?>
<body id="popupAdditionalImage" class="centeredContent" onload="resize();">
<div>
<?php
echo '<a href="javascript:window.close()">' . zen_image(strip_tags($_GET['products_image_large_additional']), $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
?>
</div>
</body>
DO NOT USE THIS CODE UNTIL IT IS VERIFIED AS SAFE!!!
That said here's an alternate..
Code:
<?php
/**mod Image Handler 4.1
* Override Template for common/tpl_main_page.php
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
*/
?>
<body id="popupAdditionalImage" class="centeredContent" onload="resize();">
<div>
<?php
echo '<a href="javascript:window.close()">' . zen_image(htmlspecialchars($_GET['products_image_large_additional']), $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>'
?>
</div>
</body>
While either of those approaches will prevent the abuse of rogue HTML characters from causing trouble (XSS), it doesn't prevent the risks of specifying a path to a file that exists outside expected image folder locations (CSRF). ie: one could just manually change the image filename on the URL from images/large/IMG123.jpg to includes/templates/template_default/images/down_for_maintenance.gif ... or something dangerous like ../../../../../../etc/passwords to attempt to access files entirely outside of the website and into the core operating system.
That said, attempts to access ../../../etc/passwords would fail to disclose the actual file contents to the browser because webservers won't output the contents of those files via an IMG tag.
But you *could* put a URL in there and use it to load a malicious image file from a COMPLETELY DIFFERENT SERVER, and have it run the rogue code in your browser, and thus infect your computer, taint your browser cache, start rogue sessions someplace, steal your cookie data, and trick you into disclosing admin or other password credentials.
Consider this:
http://example.com/index.php?main_pa.../test_demo.jpg
While that produces an image of 0 height or 0 width because the file can't be located on the local server, it does still set the src= value to the external URL because IH isn't verifying that the file exists on the local server, and is just allowing any random file to be loaded into that IMG tag, regardless of whether that file is malicious or not.
That's why the original ZC code at least runs file_exists() on $_GET['products_image_large_additional'] to make sure the file is present locally.
I'd suggest that if the previous code "change" is causing problems with finding the correct image and thus triggering the NoPicture response, that something's wrong with what's being passed as the image URL when the popup link is generated. So that's in the IH additional_images module or the template, not in the popup code which is where you were looking in the code questions you posted about today.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DrByte
While either of those approaches will prevent the abuse of rogue HTML characters from causing trouble (XSS), it doesn't prevent the risks of specifying a path to a file that exists outside expected image folder locations (CSRF). ie: one could just manually change the image filename on the URL from images/large/IMG123.jpg to includes/templates/template_default/images/down_for_maintenance.gif ... or something dangerous like ../../../../../../etc/passwords to attempt to access files entirely outside of the website and into the core operating system.
That said, attempts to access ../../../etc/passwords would fail to disclose the actual file contents to the browser because webservers won't output the contents of those files via an IMG tag.
But you *could* put a URL in there and use it to load a malicious image file from a COMPLETELY DIFFERENT SERVER, and have it run the rogue code in your browser, and thus infect your computer, taint your browser cache, start rogue sessions someplace, steal your cookie data, and trick you into disclosing admin or other password credentials.
Consider this:
http://example.com/index.php?main_pa.../test_demo.jpg
While that produces an image of 0 height or 0 width because the file can't be located on the local server, it does still set the src= value to the external URL because IH isn't verifying that the file exists on the local server, and is just allowing any random file to be loaded into that IMG tag, regardless of whether that file is malicious or not.
That's why the original ZC code at least runs file_exists() on $_GET['products_image_large_additional'] to make sure the file is present locally.
I'd suggest that if the previous code "change" is causing problems with finding the correct image and thus triggering the NoPicture response, that something's wrong with what's being passed as the image URL when the popup link is generated. So that's in the IH additional_images module or the template, not in the popup code which is where you were looking in the code questions you posted about today.
Which makes this issue OFFICIALLY over my head to fix.. So I'm hoping that someone in the community who is following this thread can provide some insight.. Because I got nothing here..:laugh:
Thanks Dr Byte for weighing in here.. :smile:
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Which makes this issue OFFICIALLY over my head to fix.. So I'm hoping that someone in the community who is following this thread can provide some insight.. Because I got nothing here..:laugh:
Thanks Dr Byte for weighing in here.. :smile:
So I still don't know the fix, but I THINK I possibly have found the offending line that is causing the problem... (from includes/modules/YOUR_TEMPLATE/additional_images.php highlighted in red)
Code:
// Begin Image Handler changes 1 of 2
//next line is commented out for Image Handler
// $flag_has_large = file_exists($products_image_large);
$flag_has_large = true;
// End Image Handler changes 1 of 2
$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(addslashes($base_image), addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
// Begin Image Handler changes 2 of 2
// remove additional single quotes from image attributes (important!)
$thumb_slashes = preg_replace("/([^\\\\])'/", '$1\\\'', $thumb_slashes);
// End Image Handler changes 2 of 2
When I remove this IH line and un-comment the Zen Cart default, the popup works correctly, BUT it no longer pulls the image from the bmz_cache folder..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
So I still don't know the fix, but I THINK I possibly have found the offending line that is causing the problem... (from
includes/modules/YOUR_TEMPLATE/additional_images.php highlighted in red)
Code:
// Begin Image Handler changes 1 of 2
//next line is commented out for Image Handler
// $flag_has_large = file_exists($products_image_large);
$flag_has_large = true;
// End Image Handler changes 1 of 2
$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(addslashes($base_image), addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
// Begin Image Handler changes 2 of 2
// remove additional single quotes from image attributes (important!)
$thumb_slashes = preg_replace("/([^\\\\])'/", '$1\\\'', $thumb_slashes);
// End Image Handler changes 2 of 2
When I remove this IH line and un-comment the Zen Cart default, the popup works correctly, BUT it no longer pulls the image from the
bmz_cache folder..
So here is the code that works for the includes/modules/YOUR_TEMPLATE/additional_images.php:
Code:
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;
// Begin Image Handler changes 1 of 2
//next line is commented out for Image Handler
if (function_exists('handle_image')) {
$newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT);
list($src, $alt, $width, $height, $parameters) = $newimg;
$products_image_large = zen_output_string($src);
}
$flag_has_large = file_exists($products_image_large);
// End Image Handler changes 1 of 2
To be coupled with the following code in the includes/templates/YOUR_TEMPLATE/popup_image_additional/tpl_main_page.php file:
Code:
<?php
/**mod Image Handler 4.1
* Override Template for common/tpl_main_page.php
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
*/
?>
<body id="popupAdditionalImage" class="centeredContent" onload="resize();">
<div>
<?php
// $products_values->fields['products_image']
//Begin Image Handler changes 1 of 2
//the next line is commented out for Image Handler 3
if (file_exists($_GET['products_image_large_additional'])) {
//End Image Handler changes 1 of 2
echo '<a href="javascript:window.close()">' . zen_image($_GET['products_image_large_additional'], $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
//Begin Image Handler changes 2 of 2
//the next three lines are commented out for Image Handler 3
} else {
echo '<a href="javascript:window.close()">' . zen_image(DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, POPUP_ADDITIONAL_NO_IMAGE . ' ' . TEXT_CLOSE_WINDOW) . '</a>'; /*v4.3.1c-lat9*/
}
//End Image Handler changes 2 of 2
?>
</div>
</body>
The above code does a check for the existence of the file on the server, and goes to present an image which if the image path is wrong/a non-image on the server, would not display anything as indicated by Dr. Byte if I understood correctly.
There are changes that probably should be made to Zen Lightbox, which I have worked out some; however, that is to be carried on/over to the Zen Lightbox forum @ http://www.zen-cart.com/showthread.p...read&p=1215670. Something related to that may be posted in the next day or two as I have some prior commitments to engage in, so I apologize if it appears that I have abandoned the community on such an important issue.
BTW, this is still code that is in development and is provided for review by others that might be able to chime in on the validity/security of it's use. Use at your own risk. Test locally before applying to a live server.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
Thank you for your suggestions.
Not to chaise my own tail for many hours to come, I installed zen cart and IH4 again afresh. The installation went as expected, and I do not see at the moment any problems. Currently, I do not have Lightbox installed but I will install it tomorrow after I see that the IH4 operates in all browsers as expected.
The only issue I currently have, which I have not experienced in my first installation of IH4, is that IH4 does not re-size the image when I am inserting it for a new product. Since I am inserting the largest image I have (about 180K) as my smallest/default image, IH4 inserts small, medium, and large images making them of the same size - 180K. This issue would not be a problem because I do not want to activate hover function, but this issue lets me know that something is wrong and has to be fixed before I go ahead and install Lightbox.
Could you please let me know what I am missing this time.
Thank you.
So, I know that DivaVocals after being up until late last night is out there now, but if I understand correctly, you have uploaded a "small" file (which probably has small dimensions as well). IH4 does not increase the size of the image, but rather reduces the dimensions of a large image down to the desired maximum settings, and if properly setup will maintain perspective of the image. This is an attribute that is covered in the instructions. It may not be presented straight forward (I can't recall, but I know the above to be relatively accurate without referring to it); however, if while reading you piece everything together, then you will see all that this can do, and CAN NOT do...
Mind you, and congratulations on the successful install; however, there is still some code development ongoing as you can see above to resolve an issue of having multiple images for a single product. Unfortunately this has been made known to be an issue when Zen Lightbox is installed but turned off and also with IH4 in it's basic installation. These are two separate issues; however, may be resolved either with simply a correction of IH4 where it appears the above fix is most appropriately applied, or by adding more code into the template file, but that is more of a patch rather than a well written program.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
So, I know that DivaVocals after being up until late last night is out there now, but if I understand correctly, you have uploaded a "small" file (which probably has small dimensions as well). IH4 does not increase the size of the image, but rather reduces the dimensions of a large image down to the desired maximum settings, and if properly setup will maintain perspective of the image. This is an attribute that is covered in the instructions. It may not be presented straight forward (I can't recall, but I know the above to be relatively accurate without referring to it); however, if while reading you piece everything together, then you will see all that this can do, and CAN NOT do...
You are correct.. IH4 works exactly as you have stated.. This point IS indeed covered in the readme file, and on the intro post on THIS support thread, and in the module description in the download section.. In other words, the co-collaborators and I who wrote the readme documents for IH4 made sure that this point was CRYSTAL clear..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
So here is the code that works for the includes/modules/YOUR_TEMPLATE/additional_images.php:
Code:
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;
// Begin Image Handler changes 1 of 2
//next line is commented out for Image Handler
if (function_exists('handle_image')) {
$newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT);
list($src, $alt, $width, $height, $parameters) = $newimg;
$products_image_large = zen_output_string($src);
}
$flag_has_large = file_exists($products_image_large);
// End Image Handler changes 1 of 2
To be coupled with the following code in the includes/templates/YOUR_TEMPLATE/popup_image_additional/tpl_main_page.php file:
Code:
<?php
/**mod Image Handler 4.1
* Override Template for common/tpl_main_page.php
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
*/
?>
<body id="popupAdditionalImage" class="centeredContent" onload="resize();">
<div>
<?php
// $products_values->fields['products_image']
//Begin Image Handler changes 1 of 2
//the next line is commented out for Image Handler 3
if (file_exists($_GET['products_image_large_additional'])) {
//End Image Handler changes 1 of 2
echo '<a href="javascript:window.close()">' . zen_image($_GET['products_image_large_additional'], $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
//Begin Image Handler changes 2 of 2
//the next three lines are commented out for Image Handler 3
} else {
echo '<a href="javascript:window.close()">' . zen_image(DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, POPUP_ADDITIONAL_NO_IMAGE . ' ' . TEXT_CLOSE_WINDOW) . '</a>'; /*v4.3.1c-lat9*/
}
//End Image Handler changes 2 of 2
?>
</div>
</body>
The above code does a check for the existence of the file on the server, and goes to present an image which if the image path is wrong/a non-image on the server, would not display anything as indicated by Dr. Byte if I understood correctly.
There are changes that probably should be made to Zen Lightbox, which I have worked out some; however, that is to be carried on/over to the Zen Lightbox forum @
http://www.zen-cart.com/showthread.p...read&p=1215670. Something related to that may be posted in the next day or two as I have some prior commitments to engage in, so I apologize if it appears that I have abandoned the community on such an important issue.
BTW, this is still code that is in development and is provided for review by others that might be able to chime in on the validity/security of it's use. Use at your own risk. Test locally before applying to a live server.
This isn't fully working for me.. While the correct additional image is pulled from the bmz_cache folder and is now showing in the popup, the popup window itself is not sized correctly.. (see here: http://eitestsite(dot)eyeitalia(dot)...roducts_id=331)
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Thank you for the reply.
Yes, I read instructions several times and I 'believe' I understand how IH4 works. In my first inhalation, the IH4 allowed me to insert the largest image in the third window (large image window) and then itself reduced that large image to medium and small sizes. So, the three images I saw for my product were having sizes, for example, as follows:
5K - small
15K - medium
150K large
In the current installation of the IH4, IH4 does not allow me to insert my large image as a large one and informs me that I must insert a default image which is a small image. When I insert the default small image, the IH4 does not re-size them to medium and large sizes and the images for my product have all the same sizes, for example, as follows:
150K - small
150K - medium
150K - large
Again, this issue would not be a problem because I do not want to activate the hover function, but this issue lets me know that something is wrong and has to be fixed before I go ahead and install Lightbox.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
Thank you for the reply.
Yes, I read instructions several times and I 'believe' I understand how IH4 works. In my first inhalation, the IH4 allowed me to insert the largest image in the third window (large image window) and then itself reduced that large image to medium and small sizes. So, the three images I saw for my product were having sizes, for example, as follows:
5K - small
15K - medium
150K large
In the current installation of the IH4, IH4 does not allow me to insert my large image as a large one and informs me that I must insert a default image which is a small image. When I insert the default small image, the IH4 does not re-size them to medium and large sizes and the images for my product have all the same sizes, for example, as follows:
150K - small
150K - medium
150K - large
Again, this issue would not be a problem because I do not want to activate the hover function, but this issue lets me know that something is wrong and has to be fixed before I go ahead and install Lightbox.
This is absolutely NOT how the image upload works.. Go back to the usage tab, and go to the part that starts with:
"It's all very straightforward. But let's talk about where some folks get stuck: adding primary and additional product images. Let's begin by walking through the process of adding an image to a product. The important thing to understand is that the process is the same whether you're adding your first image or your tenth to a given product"
You will see that you MUST upload a default image.. I suggest re-reviewing this section again (pay special attention to the "Important Notes:") so you understand how the default, medium and large image upload options work..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
If have reviewed the image correctly, it should be 600x60 as the largest size correct? instead of 250 x 600? Hmm.. On my site, when I changed the max height and had it pop up, it shrunk like I expected it to do... This would most likely be an indication that the variables LARGE_IMAGE_WIDTH should be replaced with $ihConf['large']['width'] and LARGE_IMAGE_HEIGHT be replaced with $ihConf['large']['height'] in the above code. I say that because I assume that the goal is to consistently show a window that is of the same size for all images that are to be displayed as large. Something of a guess at this point, sorry.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
If have reviewed the image correctly, it should be 600x60 as the largest size correct? instead of 250 x 600? Hmm.. On my site, when I changed the max height and had it pop up, it shrunk like I expected it to do... This would most likely be an indication that the variables LARGE_IMAGE_WIDTH should be replaced with $ihConf['large']['width'] and LARGE_IMAGE_HEIGHT be replaced with $ihConf['large']['height'] in the above code. I say that because I assume that the goal is to consistently show a window that is of the same size for all images that are to be displayed as large. Something of a guess at this point, sorry.
The popup should be sized based on the image dimensions of the image displayed. Go here to see the correct popup behavior: http://zentestcart(dot)overthehillwe...roducts_id=104
You'll note that each of these images on this test product are not all the same size..
Here are my image setting in this store:
Title |
Value
|
Small Image Width |
150 |
Small Image Height |
|
Heading Image Width - Admin |
57 |
Heading Image Height - Admin |
|
Subcategory Image Width |
100 |
Subcategory Image Height |
|
Calculate Image Size |
TRUE |
Image Required |
TRUE |
Image - Shopping Cart Status |
1 |
Image - Shopping Cart Width |
50 |
Image - Shopping Cart Height |
|
Category Icon Image Width - Product Info Pages |
57 |
Category Icon Image Height - Product Info Pages |
|
Top Subcategory Image Width |
150 |
Top Subcategory Image Height |
85 |
Product Info - Image Width |
200 |
Product Info - Image Height |
|
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 |
|
Image - Product New Listing Width |
150 |
Image - Product New Listing Height |
|
Image - New Products Width |
150 |
Image - New Products Height |
|
Image - Featured Products Width |
150 |
Image - Featured Products Height |
|
Image - Product All Listing Width |
150 |
Image - Product All Listing Height |
|
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 images filetype |
no_change |
IH small images background |
255:255:255 |
IH small images compression quality |
85 |
IH small images watermark |
no |
IH small images zoom on hover |
yes |
IH small images zoom on hover size |
Medium |
IH medium images filetype |
no_change |
IH medium images background |
255:255:255 |
IH medium images compression quality |
85 |
IH medium images watermark |
no |
IH large images filetype |
no_change |
IH large images background |
255:255:255 |
IH large images compression quality |
85 |
IH large images watermark |
no |
IH large images maximum width |
750 |
IH large images maximum height |
550 |
IH watermark gravity |
Center |
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
This is absolutely NOT how the image upload works.. Go back to the usage tab, and go to the part that starts with:
"It's all very straightforward. But let's talk about where some folks get stuck: adding primary and additional product images. Let's begin by walking through the process of adding an image to a product. The important thing to understand is that the process is the same whether you're adding your first image or your tenth to a given product"
You will see that you MUST upload a default image.. I suggest re-reviewing this section again (pay special attention to the "Important Notes:") so you understand how the default, medium and large image upload options work..
Quote:
Originally Posted by
DivaVocals
The popup should be sized based on the image dimensions of the image displayed. Go here to see the correct popup behavior:
http://zentestcart(dot)overthehillwe...roducts_id=104
You'll note that each of these images on this test product are not all the same size..
Here are my image setting in this store:
Title |
Value
|
Small Image Width |
150 |
Small Image Height |
|
Heading Image Width - Admin |
57 |
Heading Image Height - Admin |
|
Subcategory Image Width |
100 |
Subcategory Image Height |
|
Calculate Image Size |
TRUE |
Image Required |
TRUE |
Image - Shopping Cart Status |
1 |
Image - Shopping Cart Width |
50 |
Image - Shopping Cart Height |
|
Category Icon Image Width - Product Info Pages |
57 |
Category Icon Image Height - Product Info Pages |
|
Top Subcategory Image Width |
150 |
Top Subcategory Image Height |
85 |
Product Info - Image Width |
200 |
Product Info - Image Height |
|
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 |
|
Image - Product New Listing Width |
150 |
Image - Product New Listing Height |
|
Image - New Products Width |
150 |
Image - New Products Height |
|
Image - Featured Products Width |
150 |
Image - Featured Products Height |
|
Image - Product All Listing Width |
150 |
Image - Product All Listing Height |
|
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 images filetype |
no_change |
IH small images background |
255:255:255 |
IH small images compression quality |
85 |
IH small images watermark |
no |
IH small images zoom on hover |
yes |
IH small images zoom on hover size |
Medium |
IH medium images filetype |
no_change |
IH medium images background |
255:255:255 |
IH medium images compression quality |
85 |
IH medium images watermark |
no |
IH large images filetype |
no_change |
IH large images background |
255:255:255 |
IH large images compression quality |
85 |
IH large images watermark |
no |
IH large images maximum width |
750 |
IH large images maximum height |
550 |
IH watermark gravity |
Center |
Okay, so do you have an example of where it is not working to look at? On my site it is working (I do also have Zen Lightbox installed; however, currently the modules file is the one modified specifically for IH4), so I may have some other files that are "in the way" and making it work the way it is described above and on a few previous posts...
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Quote:
Originally Posted by
mc12345678
Okay, so do you have an example of where it is not working to look at? On my site it is working (I do also have Zen Lightbox installed; however, currently the modules file is the one modified specifically for IH4), so I may have some other files that are "in the way" and making it work the way it is described above and on a few previous posts...
Same site I previously posted.. I put your updated code here, and you can see that the popups are not sized correctly..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
This is absolutely NOT how the image upload works.. Go back to the usage tab, and go to the part that starts with:
"It's all very straightforward. But let's talk about where some folks get stuck: adding primary and additional product images. Let's begin by walking through the process of adding an image to a product. The important thing to understand is that the process is the same whether you're adding your first image or your tenth to a given product"
You will see that you MUST upload a default image.. I suggest re-reviewing this section again (pay special attention to the "Important Notes:") so you understand how the default, medium and large image upload options work..
Thank you for the reply.
OK, maybe I do not remember exactly how the first installation of the IH4 worked, but now it works properly now and it forces me to upload a default image first. My default image is the largest image and has size of 150K. Unfortunately, you did not answer my question which is:
Why all three sizes of images (small, medium, and large) have the same size of 150K. Why does not the IH4 re-size them appropriately?
I know that in my first installation of the IH4, it re-sized the small, medium, and large images accordingly now all three images have the same (large) size. Maybe I did not activate some function?
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
Thank you for the reply.
OK, maybe I do not remember exactly how the first installation of the IH4 worked, but now it works properly now and it forces me to upload a default image first. My default image is the largest image and has size of 150K. Unfortunately, you did not answer my question which is:
Why all three sizes of images (small, medium, and large) have the same size of 150K. Why does not the IH4 re-size them appropriately?
I know that in my first installation of the IH4, it re-sized the small, medium, and large images accordingly now all three images have the same (large) size. Maybe I did not activate some function?
You either have something configured incorrectly or you are not uploading the images as the readme says you must.. Either way noone can help you by GUESSING.. You need to post a link to your site and specifically a link to a product that's not working correctly.. and you need to post you images settings (all the things that are suggested in the troubleshooting section of the readme)
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
Thank you for the reply.
OK, maybe I do not remember exactly how the first installation of the IH4 worked, but now it works properly now and it forces me to upload a default image first. My default image is the largest image and has size of 150K. Unfortunately, you did not answer my question which is:
Why all three sizes of images (small, medium, and large) have the same size of 150K. Why does not the IH4 re-size them appropriately?
I know that in my first installation of the IH4, it re-sized the small, medium, and large images accordingly now all three images have the same (large) size. Maybe I did not activate some function?
So, how did you discover that the three "created" files are all the same size? If you only uploaded the one file to the default image, then all other images are created in your bmz folder in the hashed directory/file that bmz creates. If you have uploaded the same file to all three positions, then there will be the three pictures in your images directory and you won't see any resizing. This application does not adjust the file sizes of the images directory but the pictures that are shown which comes from the applicable area of the bmz folder.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
So, how did you discover that the three "created" files are all the same size? If you only uploaded the one file to the default image, then all other images are created in your bmz folder in the hashed directory/file that bmz creates. If you have uploaded the same file to all three positions, then there will be the three pictures in your images directory and you won't see any resizing. This application does not adjust the file sizes of the images directory but the pictures that are shown which comes from the applicable area of the bmz folder.
Not completely true.. the purpose of the other positions is if you want a different medium or large image than the default image you uploaded..
Click on the main image here to see this in action:
http://zentestcart(dot)overthehillwe...roducts_id=104
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
Same site I previously posted.. I put your updated code here, and you can see that the popups are not sized correctly..
Nope, don't see the problem. The picture of the two delicious looking drinks appears bounded by the resulting popup window sized at 431 x 550 pixels which matches the bmz_cache end description.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Nope, don't see the problem. The picture of the two delicious looking drinks appears bounded by the resulting popup window sized at 431 x 550 pixels which matches the bmz_cache end description.
That site is not the one I posted before with the issue.. See the EyeItalia site.. That's the site where I am using your code.. The site with the delicious drinks is using the OLD IH4 code, and works correctly.. See my previous post below...
Quote:
Originally Posted by
DivaVocals
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
DivaVocals
That site is not the one I posted before with the issue.. See the EyeItalia site.. That's the site where I am using your code.. The site with the delicious drinks is using the OLD IH4 code, and works correctly.. See my previous post below...
Okay, sorry, glad that I described what I saw. So, with the eyeitalia site, I see that the image is 250x600 with a bmz resize of 600x600 and the border of the window is to the sides of the image at that dimension. So, what would be expected to be different? Should the height be 550?
With the code copied, which version of the all caps height and width was used? could you try replacing with the $ih variable(s)? $ihConf['large']['width'] and $ihConf['large']['height'] respectively.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
So, how did you discover that the three "created" files are all the same size? If you only uploaded the one file to the default image, then all other images are created in your bmz folder in the hashed directory/file that bmz creates. If you have uploaded the same file to all three positions, then there will be the three pictures in your images directory and you won't see any resizing. This application does not adjust the file sizes of the images directory but the pictures that are shown which comes from the applicable area of the bmz folder.
Thank you for the reply.
I know the size of the images because IH4 shows the size of each image below the image. I DO NOT insert three images, I only insert one image (default one) and it is my large image with the size of 150K. Again, in the first installation of the IH4, I saw that all three images had different sizes. Not in this installation. In this installation all three images have the size of 150K.
Posting a link to the product section will not help. First, there is only one product and one image. Second, you would not know that there is a problem by looking at the image at the front of the store. The problem is visible only at the control panel because IH4 shows that ALL three images (small, medium, and large) have the same size of 150K.
Here is the copy of the Image settings:
Title Value Action
Small Image Width 150
Small Image Height
Heading Image Width - Admin 57
Heading Image Height - Admin 40
Subcategory Image Width 150
Subcategory Image Height
Calculate Image Size true
Image Required true
Image - Shopping Cart Status 1
Image - Shopping Cart Width 150
Image - Shopping Cart Height
Category Icon Image Width - Product Info Pages 150
Category Icon Image Height - Product Info Pages
Top Subcategory Image Width 150
Top Subcategory Image Height
Product Info - Image Width 400
Product Info - Image Height
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 200
Image - Product Listing Height
Image - Product New Listing Width 200
Image - Product New Listing Height
Image - New Products Width 200
Image - New Products Height
Image - Featured Products Width 200
Image - Featured Products Height
Image - Product All Listing Width 200
Image - Product All Listing Height
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 images filetype no_change
IH small images background 255:255:255
IH small images compression quality 85
IH small images watermark no
IH small images zoom on hover yes
IH small images zoom on hover size Medium
IH medium images filetype no_change
IH medium images background 255:255:255
IH medium images compression quality 85
IH medium images watermark no
IH large images filetype no_change
IH large images background 255:255:255
IH large images compression quality 85
IH large images watermark no
IH large images maximum width 1050
IH large images maximum height 770
IH watermark gravity Center
Thank you for your attention to this problem.
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
EHSI
I know the size of the images because IH4 shows the size of each image below the image. I DO NOT insert three images, I only insert one image (default one) and it is my large image with the size of 150K. Again, in the first installation of the IH4, I saw that all three images had different sizes. Not in this installation. In this installation all three images have the size of 150K.
And again.. this is not normal behavior.. So you either have something configured incorrectly or you have uploaded images incorrectly.. Please tell me.. Do you see a "Delete" button below the small, medium, or large images (it would be just below the image sizes you see) in the IH4 admin
Quote:
Originally Posted by
EHSI
Posting a link to the product section will not help. First, there is only one product and one image. Second, you would not know that there is a problem by looking at the image at the front of the store. The problem is visible only at the control panel because IH4 shows that ALL three images (small, medium, and large) have the same size of 150K.
Ummm yeah we would see it on the front end which is why we REPEATEDLY ask people to post links to their site.. One image or twelve, we can still see the behavior.. So help us help you by providing the information we ask for..
-
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
Okay, sorry, glad that I described what I saw. So, with the eyeitalia site, I see that the image is 250x600 with a bmz resize of 600x600 and the border of the window is to the sides of the image at that dimension. So, what would be expected to be different? Should the height be 550?
With the code copied, which version of the all caps height and width was used? could you try replacing with the $ih variable(s)? $ihConf['large']['width'] and $ihConf['large']['height'] respectively.
(Timed out on edit) Also, be sure that you are using the code snippets (with applicable replacements) that were posted to this forum. I realize I may have sent some code earlier, but I would say that the code has been simplified and as said seems to be working on my site at whatever size I set the maximum to in the admin area.