You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 59 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Use transparent PNG images with IE [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
ZED28
Nuke Soldier
Nuke Soldier


Joined: May 17, 2003
Posts: 10


PostPosted: Sat Jan 24, 2004 9:44 am Reply with quoteBack to top

This is not late breaking news and certainly not something I'll take any credit for but would like to make it a little more widely known... Wink

Until I came across this mod, the only real options I had to view my site with fully transparent PNG images was to use Mozilla, Opera or other browser as Internet Explorer doesn't support them. Let's face it - and regardless of your opinion on the subject, you have to cater for Internet Explorer as so many people use it.

This little mod allows you to use IE (5.5 or later) and view full transparency PNG images on your Nuke (or other) site and reap the rewards and eye candy that PNG images offer. No more nasty lines around your GIF's as you switch from a dark them to a light one!

It's very simple to use and can be seen in action on my site www.ats-online.org as a working example. All of my topic icons, the rank images and a few others are PNG files and display beautifully - regardless of what theme I use.

I've made the files and instructions available for download HERE if anyone wants them. Wink
Find all posts by ZED28View user's profileSend private messageVisit poster's website
Daniel-cmw
Site Admin
Site Admin


Joined: Mar 02, 2003
Posts: 1662

Location: The UK!

PostPosted: Sat Jan 24, 2004 2:48 pm Reply with quoteBack to top

Nice one, thanks!

_________________
Read Me
Find all posts by Daniel-cmwView user's profileSend private message
dochogan
Nuke Cadet
Nuke Cadet


Joined: Dec 10, 2004
Posts: 5


PostPosted: Fri Dec 10, 2004 7:33 am Reply with quoteBack to top

ats-online.org is gone, and I'm searching like mad for this fix. I've *bot* to get PNG-24 alpha working for my site!

Any help *greatly* appreciated
Find all posts by dochoganView user's profileSend private message
CoyoteMax
Nuke Soldier
Nuke Soldier


Joined: Jun 11, 2003
Posts: 31

Location: C, eh? N, eh? D, eh?

PostPosted: Sat Jan 08, 2005 2:46 am Reply with quoteBack to top

Check this site - gives you all the info you need Smile

_________________
[url=http://www.askhagatha.com]
Image
[/url]
Find all posts by CoyoteMaxView user's profileSend private messageVisit poster's website
VinDSL
Site Admin
Site Admin


Joined: Jul 08, 2003
Posts: 1193

Location: Arizona (USA) Site Admin: Lenon.com Admin: Disipal Designs

PostPosted: Sat Jan 08, 2005 12:37 pm Reply with quoteBack to top

Hrm...

I make transparent .PNG's all the time. As a matter of fact, I use .PNG 99.9% of the time for all my graphics. Generally speaking, I can make .PNG graphics smaller and better looking than .GIF's.

Here's an example (10k):
Image

Does the above graphic work in you in IE? If so, let me know and I'll tell you how I do it...

I use Paint Shop Pro for all my graphic work - piece of cake! Wink

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: VinDSL's Lenon.com | The Disipal Site ::.
Find all posts by VinDSLView user's profileSend private messageVisit poster's websiteICQ Number
VinDSL
Site Admin
Site Admin


Joined: Jul 08, 2003
Posts: 1193

Location: Arizona (USA) Site Admin: Lenon.com Admin: Disipal Designs

PostPosted: Sat Jan 08, 2005 1:38 pm Reply with quoteBack to top

I noticed this thread has a lot of 'views', so I thought I'd better just go ahead and let 'er rip... Smile

In a nutshell:
  • Open an image file in Paint Shop Pro.

  • Do all your cropping, editing, et cetera, just like normal. When you get the image where you want it, and you want to save it as a transparent .PNG

  • Right-click the 'eyedropper tool' over the background color you want to make transparent. This places the background color in the background 'color swatch'.

  • Now go to File=>Export=>Transparent=>PNG Optimizer.

  • The PNG export dialog box looks almost identical to the GIF export box except you have more 'true color' settings available to you. Control file size by trying different color palettes, transparency, and format settings.

    'Export'ing files is always preferable to merely Save'ing them in PSP, due to the control you have over the final image. Exporting lets you adjust transparency settings, format, color settings, how to blend partials, image download time in various usages, yada, yada, and you can preview the image as you make settings changes.

  • The selected background color will now be showing in the 'color swatch' on the Transparency tab. If you select the 'Areas that match this color' option, it will automatically make all matching pixels transparent and show the results in the preview window. You can adjust the tolerance until the edges of the image look the way you want.

    The higher the tolerance number, the more pixels are added to the transparency and the less 'halo' of blending between image and background. However, it also increases the size of the file, so shoot low if you want to create small files. Dittos for your other settings too!

  • Choose existing transparency or areas that match this color. Click ok. Then it will let you name and save.

Sometimes pictures are worth 1000 words, so here are a couple of visuals for you, showing the settings I use...

Note the size of the Uncompressed image vs. Compressed image! Very Happy

    Image

    Image


Heh! .PNG rules! Wink

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: VinDSL's Lenon.com | The Disipal Site ::.
Find all posts by VinDSLView user's profileSend private messageVisit poster's websiteICQ Number
dochogan
Nuke Cadet
Nuke Cadet


Joined: Dec 10, 2004
Posts: 5


PostPosted: Mon Jan 10, 2005 2:00 am Reply with quoteBack to top

Back to the original topic...providing transparent PNG support in IE...

I've managed to find a workaround hack for allowing IE to properly display transparent PNGs. It is based upon a known workaround which uses a 1*1 GIF to be displayed and then replaced dynamically by the IE rendering engine (details elsewhere). I did not develop this; while the instructions found elsewhere work while developing your own site, it was difficult (for me) to adapt to the Nuke framework.

I have no way to attach the solution with this forum, but I will try to find an alternative. The solution is very, very simple to implement. Not ideal, as it requires JavaScript to be enable in the client's IE, but it is the best solution I've found, and works extremely well considering IE's limitations.

HTH YMMV

update: here's a link to the package I used. I don't know how long this link willlast, it's not my site, but they have it.

http://www.php-nuke.hu/modules.php?name=Downloads&d_op=getit&lid=34

The filename is png_graphics.zip
Find all posts by dochoganView user's profileSend private message
VinDSL
Site Admin
Site Admin


Joined: Jul 08, 2003
Posts: 1193

Location: Arizona (USA) Site Admin: Lenon.com Admin: Disipal Designs

PostPosted: Mon Jan 10, 2005 4:25 am Reply with quoteBack to top

Can you provide an example of a transparent .PNG image that IE won't display, please?

BTW, I just Google'd the subject, and ran across this website:

http://www.koivi.com/ie-png-transparency/

Is this sort of info you're looking for?

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: VinDSL's Lenon.com | The Disipal Site ::.
Find all posts by VinDSLView user's profileSend private messageVisit poster's websiteICQ Number
dochogan
Nuke Cadet
Nuke Cadet


Joined: Dec 10, 2004
Posts: 5


PostPosted: Mon Jan 10, 2005 1:30 pm Reply with quoteBack to top

VinDSL wrote:
Can you provide an example of a transparent .PNG image that IE won't display, please?

http://www.dochogan.com

Quote:
BTW, I just Google'd the subject, and ran across this website:

http://www.koivi.com/ie-png-transparency/

Is this sort of info you're looking for?


I believe that's the origins of the fix I've included (png_graphics.zip, aka 'sleight')

Create any *24* bit png with Alpha Transparency (the instructions in your previous post are *not* for 24bit RGBA, but for 8-bit. 8-bit leave the undesirable 1-pixel anti-aliased 'halo' around the image just like a GIF does ). IE will not use the apha channel info for transparency.
Find all posts by dochoganView user's profileSend private message
Webx
Nuke Cadet
Nuke Cadet


Joined: Jun 29, 2005
Posts: 1


PostPosted: Tue Jun 28, 2005 9:16 pm Reply with quoteBack to top

Hi guys, I did some googling and ran across your site for the initial phase of the transparent .png idea coupled with some PHP and I have it working pretty nice. The one area however that I cannot get to work for the life of me, is the simple carriage return or new line.

When I use \n or even \r the image outputs a rather odd y character.
I tried to use a number code as well from php.net from some of the documentation on the image function, but to no avail.

Basically, what I have is:

$mytextstring = "$var_1 $var_2";

What I would like to be able to do with the transparent .png file is:

$mytextstring = "$var_1 <br> $var_2";
or
$mytextstring = "$var_1 \n $var_2";

I noticed the above examples and they do have a carriage return if my eyes are not deceiving me. If I could just get this question answered, I might actually be able to sleep at night..lol..I have been pulling my hair out all night over this one and so far no luck.

Thanks in advance. Smile
Find all posts by WebxView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.316 Seconds - 225 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::