Hi,
I'm facing some difficulties in making transparent PNG images with alpha channel in photoshop.
Whenever I make an alpha channel and put my alpha into it and save it as PNG and then re open the file in PNG and Transparent is ON, the alpha channel is disappeared.
Would someone please guide me through what should I do to make this work with material files (that use alpha channel).
- Thanks
Transparent PNG images with alpha channel in Photoshop.
- test84
- Gremlin
- Posts: 159
- Joined: Fri Nov 14, 2008 8:23 pm
- Kojack
- OGRE Moderator
- Posts: 7157
- Joined: Sun Jan 25, 2004 7:35 am
- Location: Brisbane, Australia
- x 534
Re: Transparent PNG images with alpha channel in Photoshop.
PNG's don't use an alpha channel to store the alpha channel like other formats do (tga, etc). Instead it uses the transparency mask.
I usually find it easier to work in targa and convert to png externally, rather than use photoshop for pngs. Unless I'm working with just on/off alpha with no partial transparency, then I just make the image a layer and delete all the pixels which should be fully transparent. That saves as a png fine.
I usually find it easier to work in targa and convert to png externally, rather than use photoshop for pngs. Unless I'm working with just on/off alpha with no partial transparency, then I just make the image a layer and delete all the pixels which should be fully transparent. That saves as a png fine.
- test84
- Gremlin
- Posts: 159
- Joined: Fri Nov 14, 2008 8:23 pm
Re: Transparent PNG images with alpha channel in Photoshop.
Umm, Please check this:Kojack wrote:PNG's don't use an alpha channel to store the alpha channel like other formats do (tga, etc). Instead it uses the transparency mask.
I usually find it easier to work in targa and convert to png externally, rather than use photoshop for pngs. Unless I'm working with just on/off alpha with no partial transparency, then I just make the image a layer and delete all the pixels which should be fully transparent. That saves as a png fine.
"PNG offers a variety of transparency options. With truecolor and greyscale images either a single pixel value can be declared as transparent or an alpha channel can be added."
source: http://en.wikipedia.org/wiki/Portable_Network_Graphics
-
- Gnoblar
- Posts: 4
- Joined: Mon Feb 02, 2009 8:42 am
Re: Transparent PNG images with alpha channel in Photoshop.
That is the way Photoshop handles PNG files since version 5 or so. You'll get transparency information, but not the alpha channel.
You could use an older version of the SuperPNG plugin like this one: http://fosters.realmwarsgame.com/tools/SuperPNG.zip
instead of the original Adobe png plugin (move the one found in Photoshop\Plug-ins\File Formats elsewhere and replace it with the SuperPNG plugin).
When you "save as" png with Superpng you will get the alpha BRAND NAME to export the way you want it, BUT it won't export a layer mask. You'll have to duplicate the layer mask in channels and delete the original.
You could use an older version of the SuperPNG plugin like this one: http://fosters.realmwarsgame.com/tools/SuperPNG.zip
instead of the original Adobe png plugin (move the one found in Photoshop\Plug-ins\File Formats elsewhere and replace it with the SuperPNG plugin).
When you "save as" png with Superpng you will get the alpha BRAND NAME to export the way you want it, BUT it won't export a layer mask. You'll have to duplicate the layer mask in channels and delete the original.
- Evak
- Orc Shaman
- Posts: 707
- Joined: Sun Apr 02, 2006 7:51 pm
- Location: Sacramento, CA
- x 1
- Contact:
Re: Transparent PNG images with alpha channel in Photoshop.
I use superPNG too, works a treat . It's true that photoshop handles alpha as masks for PNG which is a bit annoying. Only app I used that made it tricky to get your alpha back. There was a way to do it in the web app that came with photoshop CS2 or 3, the seperate web portion that got merged recently. that had a layer extract alpha dropdown that would recreate the png mask when you loaded a PNG. Unfortunately that function never made it into CS4 Can't find an alternative method either.
- shadowfeign
- Goblin
- Posts: 213
- Joined: Mon Jan 26, 2009 11:51 pm
- x 15
Re: Transparent PNG images with alpha channel in Photoshop.
yea, thats one part of photoshop that has always annoyed me as well, I usually end up switching over to gimp when I need to deal with transparency in png's. gimp is straightforward, whatever is transparent, is transparent, done, save.
- Pyritie
- Gnome
- Posts: 363
- Joined: Wed Feb 25, 2009 6:15 pm
- Location: UK
- x 8
- Contact:
Re: Transparent PNG images with alpha channel in Photoshop.
You could always just use a layer mask for your alpha channels in PS. It'll save correctly then.. P:
- test84
- Gremlin
- Posts: 159
- Joined: Fri Nov 14, 2008 8:23 pm
Re: Transparent PNG images with alpha channel in Photoshop.
I never understood masks in PS.Pyritie wrote:You could always just use a layer mask for your alpha channels in PS. It'll save correctly then.. P:
- Pyritie
- Gnome
- Posts: 363
- Joined: Wed Feb 25, 2009 6:15 pm
- Location: UK
- x 8
- Contact:
Re: Transparent PNG images with alpha channel in Photoshop.
Black = hidden, white = visible
Shades of grey give varying levels of transparency
Shades of grey give varying levels of transparency
- mkultra333
- Gold Sponsor
- Posts: 1894
- Joined: Sun Mar 08, 2009 5:25 am
- x 114
Re: Transparent PNG images with alpha channel in Photoshop.
That sounds like what they did with the TGAs at one point. In Photoshop 7.0 they decided to mess with the format of the alpha channel on TGAs. Lots of people complained, so you can get a plugin to revert it to the old behaviour (where it simply saves an extra channel that is the alpha info). Photoshop 7.0.1 also reverted to the older method.
http://www.adobe.com/support/downloads/ ... ftpID=1544
I mention this just in case someone is using PS7 and having difficulty with TGA apha channels.
http://www.adobe.com/support/downloads/ ... ftpID=1544
I mention this just in case someone is using PS7 and having difficulty with TGA apha channels.
"In theory there is no difference between practice and theory. In practice, there is." - Psychology Textbook.