Re: Image Handler 2 Support
Quote:
Originally Posted by
Wickedprops
I am having a problem with loading pics and them showing in image handler but not in my store. I found this thread:
http://www.zen-cart.com/forum/showthread.php?t=84164
Most of the products Ive added are working fine, but the ones I checked to have a difference in the .jpg and .JPG extensions. In the thread it said you just needed to add a line in the .php but being a little new at this can anyone tell me how to access the area I need to edit?
Thank you.
a link to your store for the page that is not loading right would be helpful. as for that link to the post---that is afairly old thread and for the previous version of IH2 so not sure if it will wokr right.
make sure the images you are loading match...if the main image is a .jpg then its additiona images must also be .jpg Same fot .JPG, maybe it needs all those to be lower case?
Re: Image Handler 2 Support
Quote:
Originally Posted by
Wickedprops
I am having a problem with loading pics and them showing in image handler but not in my store. I found this thread:
http://www.zen-cart.com/forum/showthread.php?t=84164
Most of the products Ive added are working fine,
but the ones I checked to have a difference in the .jpg and .JPG extensions.
The issue here is that Unix interprets uppercase and lower case as being different. Therefore .jpg is not the same as .JPG. Change your file names so that the suffixes are the same..
Quote:
Originally Posted by
Wickedprops
In the thread it said you just needed to add a line in the .php but being a little new at this can anyone tell me how to access the area I need to edit?
Thank you.
The change suggested in this thread will automatically convert your file extensions from uppercase to lowercase.. I've not tested this particular edit, but others have reported that the suggested change works. The post very clearly which file you need to edit and where the edit needs to be made.. So I'm not sure I understand what it is you are asking here..
Re: Image Handler 2 Support
Quote:
The issue here is that Unix interprets uppercase and lower case as being different. Therefore .jpg is not the same as .JPG. Change your file names so that the suffixes are the same..
Seriously, we have to conclude that this add-on is not a robust solution.
If you have many hundreds of images to deal with, perhaps it is worth persevering with, but otherwise...
I have tried to interest the developers in making this a better add-on but to no avail. And have been vilified many times for trying.
My advice is not to waste your time if you have less than, say, 200 images.
It is far better to resize them all yourself.
Or waste dozens of hours - as I have - trying to assist when requested (with no thanks but rudeness).
Re: Image Handler 2 Support
Wanted to update folks.. I just tried and tested the change suggested in this referenced thread, and it appears to work.. :clap:
So I'll update the upcoming release with these changes (pending confirmation of identical results from the folks testing the new release..)
Quote:
Originally Posted by
Wickedprops
I am having a problem with loading pics and them showing in image handler but not in my store. I found this thread:
http://www.zen-cart.com/forum/showthread.php?t=84164
Most of the products Ive added are working fine, but the ones I checked to have a difference in the .jpg and .JPG extensions. In the thread it said you just needed to add a line in the .php but being a little new at this can anyone tell me how to access the area I need to edit?
Thank you.
Quote:
Originally Posted by
DivaVocals
The issue here is that Unix interprets uppercase and lower case as being different. Therefore .jpg is not the same as .JPG. Change your file names so that the suffixes are the same..
The change suggested in this thread will automatically convert your file extensions from uppercase to lowercase.. I've not tested this particular edit, but others have reported that the suggested change works. The post very clearly which file you need to edit and where the edit needs to be made.. So I'm not sure I understand what it is you are asking here..
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Wanted to update folks.. I just tried and tested the change suggested in this referenced thread, and it appears to work.. :clap:
So I'll update the upcoming release with these changes (pending confirmation of identical results from the folks testing the new release..)
You know I had been looking at that problem after the discussion the other day, I was going to do the same thing via filetype but the way in that link is a much quicker less server intensive way.
However the one advantage filetypes had is they deal with jpeg & jpg, so what about adding the option to deal with the jpeg vs jpg issue, below that code
$data['imgExtension'] = strtolower($data['imgExtension']);
if ($data['imgExtension'] == "jpeg") {$data['imgExtension'] = "jpg"; }
Re: Image Handler 2 Support
Which file are we talking about editing? Because the one discussed here http://www.zen-cart.com/forum/showthread.php?t=84164
has a file path that doesn't exist in the most recent version (admin/includes/module/ih_manger.php)
I tried making these edits in admin/includes/ih_manager.php but it didn't work. Perhaps I'm editing the wrong file?
Re: Image Handler 2 Support
Quote:
Originally Posted by
nigelt74
You know I had been looking at that problem after the discussion the other day, I was going to do the same thing via filetype but the way in that link is a much quicker less server intensive way.
However the one advantage filetypes had is they deal with jpeg & jpg, so what about adding the option to deal with the jpeg vs jpg issue, below that code
$data['imgExtension'] = strtolower($data['imgExtension']);
if ($data['imgExtension'] == "jpeg") {$data['imgExtension'] = "jpg"; }
Just want to make sure I understand what it is that this code resolves:
- Convert lowercase file extensions to lowercase (JPG to jpg OR PNG to png)
- If the file extension = jpeg, covert it to jpg
Am I understanding this correctly??? If so I'll add to the code, and we can all test to be sure we get the same results..
Quote:
Originally Posted by
ScriptJunkie
Which file are we talking about editing? Because the one discussed here
http://www.zen-cart.com/forum/showthread.php?t=84164
has a file path that doesn't exist in the most recent version (admin/includes/module/ih_manger.php)
I tried making these edits in admin/includes/ih_manager.php but it didn't work. Perhaps I'm editing the wrong file?
I'll FTP over the updated file in a few.. (Making omelets right now!:smile:)
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
I'll FTP over the updated file in a few.. (Making omelets right now!:smile:)
You've got mail!! (check the FTP folder)
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
You've got mail!! (check the FTP folder)
Ok...because all my file extensions are uniform, here's what I did to prepare my site to test this bit of code change:
For the images on this page, I used FTP to make the following changes:
- main image file extension kept as .jpg
- first additional image file extension changed to .JPG
- second additional image file extension changed to .jpeg
- cleared the bmz_cache folder
- uploaded the new file you FTP'd over (which, except for the comments you added, is identical to the changes I made based on this thread discussion)
Then I cleared the browser cache and relaunched the browser. Went to the above page and no additional images show.
Did you make a change to more than one file? (I didn't upload the entire package...just the ih_manager.php file)
Re: Image Handler 2 Support
Further....Firebug doesn't even see the section of the page where additional images are stored....As I type this...I just thought of something...let me go back to IH Manager and make the changes there.
BRB