Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler - Solution to additional images not showing

Image Handler - Solution to additional images not showing

Locked

Views: 5,255

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
31 Dec 2007, 8:56 PM
#1
john_rock avatar

john_rock

New Zenner

Join Date:
Dec 2007
Posts:
9
Plugin Contributions:
0

Image Handler - Solution to additional images not showing

Hi,

I've installed the Image Handler download to be able to show additional product pictures on my product info pages. I added a new image for one of my products but the additional image wasn't showing up on the front-end. I searched the main thread as much as I could, but I found it to big and didn't find the answer to my problem. I did however find the reason on my own and would like to share it here to maybe save others some time.

The reason my additional image wasn't showing up is because the file was saved with the following extension, in caps: .JPG

However, my main image had the following extension, no caps: .jpg

I then changed the capped extension to lower case (.jpg) and it worked.

In my opinion, the case of the extension should not cause a problem like this. Image Handler simply reuses the same case as the original file, so I guess the problem needs to be solved at the page level. In any case, have a second look at your extensions if some additional images don't show up.

6 Jun 2008, 4:28 PM
#2
ukrik avatar

ukrik

New Zenner

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

Re: Image Handler - Solution to additional images not showing

Hey John
I still cannot fix it. I have changed my extensions to small but does not work.
I see it when i add a picture in image handler but i do not see it on the live view. I have been searching all over forums for this fix and i have tried everything but nothing works. Any ideas?

16 Jun 2008, 3:50 AM
#3
craft_magick avatar

craft_magick

Zen Follower

Join Date:
Nov 2007
Posts:
166
Plugin Contributions:
0

Re: Image Handler - Solution to additional images not showing

I am having the same problem and any help would be greatly appreciated.

I uploaded a couple of 'sample images' to test the additonal photos and the samples showed fine. I have now spent the last 14 hours preparing photos and uploading them and now NOTHING is showing up on additional photos.

PLEASE HELP....

:frusty:

Website: http://www.craftmagick.com

www.ZenCrystals.com
www.CraftMagick.com
Magickal & Metaphysical supplies/services

16 Jun 2008, 4:07 AM
#4
craft_magick avatar

craft_magick

Zen Follower

Join Date:
Nov 2007
Posts:
166
Plugin Contributions:
0

Re: Image Handler - Solution to additional images not showing

OK, after freaking out I changed all of the extensions on the first product from .jpg to .JPG and it's working! So 1 down and only about 5,999 to go... sure wish I'd have realized this AS I WAS SAVING each and every one of the pictures... ah well...

Perhaps that should be included in BIG LETTERS somewhere in the readme.txt to save other people many hours of valuable time and frustration.

Image Handler is a GREAT product now that I THINK and HOPE I have finally gotten the hang of it!

Zencart ROCKS!

:clap:

www.ZenCrystals.com
www.CraftMagick.com
Magickal & Metaphysical supplies/services

16 Jun 2008, 6:07 AM
#5
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Image Handler - Solution to additional images not showing

OK, I'm confused. :wink:

Additional images require an underscore (_) in the file name.

Product Image: image.jpg
Additional Image: image_Sideview.jpg

Casing of 'jpg' or 'JPG' and/or using or not IH makes no difference.
It's the underscore in the file name that is the key to additional images.

Note: Admin > Catalog > Product Types
Choose your Product Type and make sure "Show Additional Images" is enabled.

The learning is in the doing.

Potent Products

13 Aug 2008, 11:03 AM
#6
daffy avatar

daffy

Zen Follower

Join Date:
Jul 2008
Posts:
114
Plugin Contributions:
0

Re: Image Handler - Solution to additional images not showing

I started using computers back when there was only DOS, and you had to be very aware of your "cases" back then. DOS did no forgiving whatsoever. If it was upper case, then you had better use upper case to retrieve it or DOS was never gonna give it back.

I've noticed that some online servers are more lenient than others. Some of them seem to fall back on the old DOS conventions. Since you never know which computer is going to be Legalistic, I've always had the habit of keeping ALL my file names and extensions in lower case ONLY. I never use caps for my website file names, ever. This prevents a whole lot of problems such as y'all are describing.

I've had FTP accounts on many servers on the internet, in multiple countries even. (I've been online a long time.) Some servers are lenient, some are not. And even if YOUR server is letting you do anything you want, it does not mean that everyone shopping on your site is going to have the kind of computer hardware or software to interpret the jumble of upper and lower case that you've used.

AND... if you use lower case every time, it's less to remember and less chance of making those errors.

20 Feb 2009, 12:21 AM
#7
clint avatar

clint

New Zenner

Join Date:
Feb 2004
Posts:
76
Plugin Contributions:
1

Re: Image Handler - Solution to additional images not showing

I ran into this problem and have a client that adds their own pictures and I wanted to save them the trouble of changing the case of their file extensions.

I changed the code in admin/includes/module/ih_manger.php

right after this line

    $data['imgExtension'] = substr( $_FILES['default_image']['name'], 
            strrpos($_FILES['default_image']['name'], '.'));

I added the line

$data['imgExtension'] = strtolower($data['imgExtension']);

which converts all extensions to lower case.

Hope this helps someone else.

Shifting old sites from osC
Starting all new sites in Zen

24 Mar 2009, 6:12 PM
#8
sarahl avatar

sarahl

Zen Follower

Join Date:
May 2004
Location:
UK
Posts:
471
Plugin Contributions:
0

Re: Image Handler - Solution to additional images not showing

clint - thank you for that have given it a try, but the file located is in

I changed the code in admin/includes/ih_manger.php

just in case others are looking for it :)

so far not sure if its working doesn't seem to be making any difference but we shall see I need to find out if no_change for images is correct too

thanks
Sarah

30 Apr 2010, 5:20 PM
#9
funkypapa avatar

funkypapa

New Zenner

Join Date:
Jul 2008
Posts:
84
Plugin Contributions:
0

Re: Image Handler - Solution to additional images not showing

clint:

I ran into this problem and have a client that adds their own pictures and I wanted to save them the trouble of changing the case of their file extensions.

I changed the code in admin/includes/module/ih_manger.php

right after this line

$data['imgExtension'] = substr( $_FILES['default_image']['name'], 
        strrpos($_FILES['default_image']['name'], '.'));
> 
> I added the line
> 
> ```php
$data['imgExtension'] = strtolower($data['imgExtension']);

which converts all extensions to lower case.

Hope this helps someone else.

SarahL:

clint - thank you for that have given it a try, but the file located is in

I changed the code in admin/includes/ih_manger.php

just in case others are looking for it :)

so far not sure if its working doesn't seem to be making any difference but we shall see I need to find out if no_change for images is correct too

thanks
Sarah

I was having the issue of images not showing up after inputting them through image handler 2....this fix worked perfectly for me. For some reason some of the extensions were being capitalized....not anymore :) Thank you