Problems with shadows in Internet Explorer

pavel.pola

Joined: 2007-05-19
Posts: 30
Posted: Sat, 2007-05-26 08:18

Hi all, I'm using black shadows around my photos in the Gallery (Carbon theme). In Mozilla Firefox it looks great but in the Internet Explorer I see white background under the shadow and it doesn't look good... Please can anybody help me?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2007-05-27 16:27

What version of Internet Explorer? What version of Gallery? What version of Carbon?

It looks good to me in IE7 and Firefox 2.x

Ah, just checked in IE6. I think I see the problem. It looks like those use png files that are probably set to have a transparent background. Unfortunately IE6 doesn't handle that well, er at all.

Changing them to gif doesn't work because gif doesn't handle transparency with a gradient. If you want it to look good in all browsers you'll need to edit the png files so the transparent background matches the background of the page. Then save as gif.

I've gone through the trouble of creating a shadow frame for the Carbon theme that works with the default settings of the Carbon theme. Just unzip the attached file to /modules/imageframe/frames/

You'll then have a new directory called shadow_carbon and a new image frame you can select for your albums. I've also added this image frame to the user contribs here: http://codex.gallery2.org/Gallery2:User_Contributions#Image_Frames

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
pavel.pola

Joined: 2007-05-19
Posts: 30
Posted: Wed, 2007-05-30 11:25

Thanks a lot for your help... It's a shame I didn't receive an e-mail notification about your answer (should I, it seems to me I am subscribed automaticaly to my posts?). Thx to Martin Cohen I already have my own png files with background from carbon theme (see attached zip).

I have also tried your version but I got only Page Not Found error when accessing the zip file.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2007-05-30 11:46

odd, I've reattached the file. so you can check that out if you like, but those PNG files do the same thing as my GIF files.

Just make sure if you use those with a different theme, that you'll need to either re-edit PNG files to match the background color or change the background color of the theme. That's why I renamed the imageframe set to so an upgrade to G2 won't overwrite the changes.

So I would probably at the very least rename your image frame from shadow to something unique. To do that you simply rename the directory, then you can edit the frame.inc file inside the directory. At the top of the file you only need to change the name Shadow to match the directory. I don't know if it actually has to match the directory name, but it helps to just keep track of things that way.

If you are subscribe automatically to your posts you should receive an email. You can double check your email address here and the auto-subscription option for your user account here: http://gallery.menalto.com/user

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
andrabr

Joined: 2007-09-05
Posts: 18
Posted: Tue, 2007-09-11 07:29

Gentlemen,

do you by any chance have the original photoshop files? - With that set one could create shadow for any background rather easily...

THx!