PNG premultiplied Alpha

Has anyone come up with a solution for exporting PNGs with premultiplied alpha?
SuperPNG used to do this in older versions by using the Photoshop alpha channel for transparency, but the new version appears to use layer transparency (much like Photoshop's PNG & Save For Web PNG export).
The old version also appears to be incompatible with CS3+

Hello Mr Cox,
Thank You for your reply.
Chris Cox wrote:
PNGs are not premultiplied, and are saved as straight color/alpha from Photoshop.
PNG does not support alpha channels, only transparency.
Do you mean that PNGs dont support alpha channels at all? Or just in Photoshop? These two sentences are confusing.
I understand that transparency and alpha channels are different thing, but I want to make files transparent and with alpha channels.
If PNG is not premultiplied why video export has an option to premultiply PNG alpha with black/other color? Its really confusing!
What I have been doing to this day:
1) I have made a graphic "x" on transparent background.
2) I selected the layer and ran action "Alpha Channel from Visible Layers".
3) Then I have made full black layer under the graphic "x".
4) Then used superPNG plugin to intergrate Alpha 1 channel(made by action) within png file.
Programmer i work with says that the files I gave him worked like premultiplied alpha pngs, he wrote custom scripts and shaders and he says that these were ok. I am really confused now.
So as You see I'm really torn right now! I have red parts of PNG speciffication, everything on wikipedia about PNGs and alpha composing etc. and some other articles around web and I feel just stupidier. Could You recommend me a good read about this topic or elaborate more? It could be a book or anything.
Best regards,
Peter

Similar Messages

  • PNG 8 Alpha Transparency Palette Errors

    I am attempting to export a PNG 8 image with alpha transparency using Fireworks 11.1.0.205 on Windows 7 64-bit. When I attempt to optimize the image to PNG 8, Adaptive with Alpha Transparency and rebuild the palette it crushed the palette down. The image is a grayscale image and the bug appears similiar to the one reported here http://blogs.adobe.com/sarthak/2010/09/png-8-export-color-palette-issues.html.
    Here is a screen cast of someone doing what I want to do, http://brenelz.com/blog/png-8-alpha-transparency-screencast/ (fast forward through the parts of him editing HTML).
    This is an example of what I am trying to do, an PNG 8 with alpha transparency (view full image);
    This is what I get when I open and then export the sample image out of Fireworks;
    It crushes the palette.
    This is the optimize panel when the original file is first opened:
    This is what happens when the palette is rebuilt, which matched the exported palette;

    Linda,
    I do not appreciate your condescending tone. I have attempted all of your instructions. Embedded is a window capture of my graphic on a TRANPARENT canvas with your suggested settings. Also embedded is the resulting graphic. Finally, embedded is the original graphic that demonstrates what I am attempting to achieve.
    Transparent Canvas
    Resulting image on export.
    Original image
    I'm disappointed that you cannot be bothered to attempt to recreate the problem and post evidence to back up your claims.
    I have tracked down the creator of the original image who says about using Fireworks "the quality was rarely good enough." The tool used was ImageOptim, http://imageoptim.pornel.net/.

  • Export selected item as PNG with Alpha

    Hello.
    I'm building game graphics in Illustrator.  I have thousands of individual sprites to export, up until now I've been copying and pasting in Photoshop and exporting through there, but that is tedious and slow.  Inkscape has an option to export the selected object only as a PNG with alpha, pixel dimensions are equal to the current selection size.  Perfect.  But that means using Inkscape and quite frankly it's horrible to use.
    I'm sure this must be possible, but for the life of me I can't find a working method.  I found Windows scripts for CS3, but nothing for CS5 on Mac.
    Can anyone help?

    Should not be too hard to adapt the script for Mac, assuming it is JavaScript, not VBScript. If you can point to the source, someone might be able to fix it for you (also post in the scripting sub-forum). Other than that you can of course always make use of the slice tool and fit the slices to the objects, then export the slices.
    Mylenium

  • Keying Problem, Keylight (Straight/Premultiply Alpha)

    Hi,
    I have the following problem:
    I used the Keylight-Keyer on my bluescreen-material. In the options, "Unpremultiply Result" is checked. Everything looks fine.
    When I export the Clip and import it in Flash, the .flv doesn't look like the clip in AE. (in fact, i think it already looks different right after exporting it from AE). There seems to be a halo around the actor, a gray edge.It looks exactly the same as when i turn "Unpremultiply Result" off in the keylight options.
    Somebody pointed out that it propably has something to do with straight or premultiplied alpha.
    Can somebody help me with this problem?
    Attached are 2 screenshots, one taken out of AE (with white background-layer), the other one in Flash.
    Thank you!

    I tried exporting it via "Export...", "Quicktime Movie", Animation, automatic keyframes, more than 16,7 million colors, quality best. This didn't seem to work.
    I don't find the command "Save Frame As...". I tried adding it to the render queue, where I found the options you mentioned. I chose: Adobe Flash Video, RGB+Alpha, more than 16,7 million colors, straight. Color management has "Keep RGB" checked.
    I just wanted to proof that this didn't work, since I tried it before. But now, preparing the screenshots for you, I notice that the halo is gone!!!
    Thank you very much!

  • [svn:fx-trunk] 11073: Updating LuminosityMaskFilter. pbj to correct the PixelBender code to account for the fact that the mask artwork is in premultiplied alpha form .

    Revision: 11073
    Author:   [email protected]
    Date:     2009-10-21 18:29:07 -0700 (Wed, 21 Oct 2009)
    Log Message:
    Updating LuminosityMaskFilter.pbj to correct the PixelBender code to account for the fact that the mask artwork is in premultiplied alpha form.
    QE notes: N/A
    Doc notes: N/A
    Bugs: N/A
    Reviewer: Dan
    Tests run: Dan's luminosity test case.
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/shaders/LuminosityMaskFilte r.pbj

  • How to get premultiplied alpha in a png embedded with compression=true

    Hi there,
    I found that the [embed] tag has many undocumented features (and WHY ... WHY are they not documented?! and IS there any place where it is all thoroughly documented? Well, the one in the Flex documentation isn't really that helpful)
    So you can embed PNGs in a compressed way like JPGs with compression=true and quality=70 i.e. to save a transparent PNG with JPEG compression.
    BUT when I do that, the alpha seems to not get premultiplied, it doesn't behave like when I don't compress it. The shadows aren't dark anymore but almost lighten the areas up. When not using compression & quality, the shadow areas look like they're supposed to.
    When using a PNG compressed by the Flash IDE, it works.
    So, is there ANOTHER undocumented embed-feature which lets you control if the alpha-channel gets premultiplied or not?
    That would really help in some cases.
    Right now I'm still using the Flash IDE for that, but it would be nice to know if there is a way to make it work merely by Flex EMBED tags.

    Hi corlettk,
    Thanks for your reply. I have defined my map as Map<String, Boolean> selectedIds = new HashMap<String, Boolean>();
                selectedIds.put("123-456", true);           
                int m=123; int n=456;
                                     selectedIds.put(String.valueOf(m) + "-" + String.valueOf(n),true);
                boolean viv = selectedIds.get("String.valueOf(m)-String.valueOf(n)");
                System.out.println(viv);
                My problem is the hashmap key must be set dynamically ("123-456" is just an example) and when i get the value i should be able to pass those varibales in an expression correctly. Please let me know how can i pass an expression like the one above as a hashmap key. Please advise.

  • OUTPUT PNG W/ Alpha for the web?

    Hello to everyone.
    I'm hoping someone can shed some light on this...
    I need to output my file as a PNG with an ALPHA Channel for the web.  First, I created an alpha for my image, and then I tried to simply use the "save as" function and select the PNG format, but the ALPHA selection is grayed out.  I've also tried "the save for web function" and selected transparency, but when I reopen the file the alpha channel has dissappeared.  I know that it is possible to save an alpha channel to a PNG, but I can't seem to do it with Photoshop... Can anyone help?
    Thanks in advance.
    Bryce

    Hello Zeno Bokor
    Thanks for your reply.
    In fact, my client, who is using the images for a web game that they are developing, requested that the files have an Alpha channel.  They have explained that the alpha channel helps the video program understand what areas are transparent.
    I wish that it was just a case of transparency... It would be hell of a lot easier.
    Any ideas?
    Thanks again.
    bgub.

  • How to import a PNG with alpha?

    I have some images I made in photoshop (on my PC) that have a transparent background. I exported them as a 24 bit PNG with a alpha channel. Importing to my ipad through itunes as a photo seems to loose the alpha channel. How do I use alpha in Keynote? This is a very basic function - what am I doing wrong?

    First off, Thank you to Iwell, skers1 and Kyn Drake for your help. I also found an unlikely work-around since posting my question. It's an app called myPhone Desktop (universal binary). It will let you copy a phone #, text, url or image from your desktop (pc/mac) and sends that to your iPhone/iPad/iTouch! Best of all, it supports image alpha! Very quick and simple. Here is the link http://www.myphonedesktop.com

  • OUTPUTING AS PNG WITH ALPHA??

    Hello to everyone...
    I hope someone can give helping hand...
    I'm working on a project where I need to output single frame files as PNG's with Alpha channel.  So far, I've used the "save frame as" function and then selected "file".  In the Render Queue under output module, I selected PNG sequence.  In the output settings under video output, I selected RGB + Alpha and Millions of colors +   I also selected "interlaced" under format options as the files are for web.  But when I open the single frame in Photoshop, the ALPHA channel is not there.
    Can someone tell me what I'm doing wrong?  I know that PNG's can be saved with an Alpha I just can't seem to make it work.
    Please help!
    Thanks
    Bgub.

    Define work area if rendering in portions, then go  "add to render queue" instead of "save frame" and modify output module to PNG Sequence RGB+Alpha, Millions of Colors+
    PNG+Alpha still work here for me in CS3. Maybe Adobe removed support for outputting PNG Still Image Seuquence with Tranparency. I would not wonder because they often toss functionalities, only god knows why they're doing it.
    Otherwise use TIFF Sequence

  • PNG with Alpha into FCP..

    Hi.
    I have a 15 minute movie that I've edited in FCP7.
    The transitions and text are animated on After Effects, exported in 1920x1080 Quicktime PNG codec, because of the need of an alpha channel for transparency.
    I import it into a timeline that is 1920x1080 Apple ProRes 422 configured, because the timeline is mostly from 7D and 5D footage converted from MPEG Streamclip.
    The result I get is that the text and lines from the PNG-codec .mov have some "cracks", not near as smooth as in the PNG compression. The example is below:
    PNG codec mov exported from AE:
    http://oi42.tinypic.com/65ww1h.jpg
    Inside FCP and FCP-exported movie:
    http://oi43.tinypic.com/290ykqr.jpg
    How can I get Final Cut to export or interpret the footage correctly?
    Or should I export it differently from AE?
    Thanks!

    Use your editing application to change the field order to None.  It's  easy to do in the FCP Browser.  Just look for the field order column and change it.  Done.

  • FCPX is doing funny things to PNGs with alpha channel.

    I am currently working on a video that requires lots of compositing using PNGs with transparency. Everything was fine, until I decided to render. Then this happened:
    Some of the PNGs turned into a bunch of pink blocks, as if the file were corrupted. It even happened with a PNG with no transparency-=
    I've tried:
    Trashing Render Files
    Changing Alpha Handling
    Export without Render
    Using "Add" as the Blend Mode.
    What can I do?

    I suggest you begin by deleting preferences, as so many weird things seem to be caused by corrupt preferences.
    You can also try creating a brand new project, composite a few pngs and check if the weirdness also occur there; if it does not, then maybe there was some corruption in the project, in which case selecting everything and pasting into a new project may cure it.

  • Why can't I export a 24 bit PNG with alpha transparency?

    I have just upgraded my Macromedia Studio 8 to Adobe CS3, and
    it seems that I still can't export a 24 bit png with transparency
    from Fireworks (Photoshop can do it, but it's just not suited for
    volume graphic production). Anyone know something I don't, or can
    someone at least explain why I can have alpha transparency on 8 bit
    and 32 bit, but not 24 bit pngs? Currently, I'm planning to export
    everything from Fireworks, then batch-process through Photoshop to
    reduce from 32 bit to 24 bit, which is just... gah! Words fail
    me.

    Kathleen13 wrote:
    > I have just upgraded my Macromedia Studio 8 to Adobe
    CS3, and it seems that I
    > still can't export a 24 bit png with transparency from
    Fireworks (Photoshop can
    > do it, but it's just not suited for volume graphic
    production). Anyone know
    > something I don't, or can someone at least explain why I
    can have alpha
    > transparency on 8 bit and 32 bit, but not 24 bit pngs?
    Currently, I'm planning
    > to export everything from Fireworks, then batch-process
    through Photoshop to
    > reduce from 32 bit to 24 bit, which is just... gah!
    Words fail me.
    >
    If I'm correct, 8-bit png supports index transparency just
    like GIF's
    do. 32-bit png's support alpha channel transparency, so you
    can get
    variable or partial transparency in a full color image(8 bits
    for each
    color and 8 bits for an alpha channel) and 24-bit png's are
    similar
    jpegs, only you get lossless compression and no user-defined
    settings.
    So essentially, when you export a 32-bit png file you are
    exporting a 24
    bit color image with an 8-bit alpha channel.
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    Extending Knowledge, Daily
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    news://forums.macromedia.com/macromedia.fireworks
    news://forums.macromedia.com/macromedia.dreamweaver

  • Help: importing PNG's Alphas to make a sprite sheet

    Hi All,
    I need some help with making PNG sprite sheets with Photoshop CS4 Extended.
    The issue is with Photoshop. When I bring in the PNG animation sequence image 1 then 2 I lose the alpha after that.
    What is the best way to bring in multpel alphas to make a sprite-sheet? The trick I have used so far has given me
    bad results.
    * Note: I have rendered out 35 frames of an animation sequence from 3Ds Max 9 as .PNGs & .TGAs with alphas.
    Thanks in advance :-)
    My curent way of doing this is:
    Steps:
    1. Launch Photoshop CS4 Extended
    2. Set document size to 256X512
    3. Set up a grid 32X32 pixles
    4. Open Frames 1 to 35 of animation
    5. place frames in order on sprite sheets
    Note: open "Channels Panel" observe only the 1st frame has an alpha
    And my work-around is to do the same steps for the alpha by opening each frame in Photoshop and going in the Channels tab and selecting just the alpha layer. Then copy and pasting it into new photoshop document to make the sprite sheet's alpha. Once
    the alpha sprite sheet is done copy and paste it into the original sprite sheet document.
    This sounds like a lot of steps and it is...

    Hey All,
    Thanks for posting :-)
    Hi Chris Cox,
    The PNG format out of Photoshop does not work in computer game graphics for some reason so the game artist use SuperPNG. To get SuperPNG to work it must have an alpha channel for the transparency to work in game engines like GameMaker & GarageGames.
    HI Paul Riggott,
    I am using a software tool like File Sticher called GlueIt and it is working great for me. But this is one extra step I am trying to remove to my art pipe-line.
    Here is the current result in the GameMaker v7.0
    Here is the my current work flow in Photoshop CS4 Extended

  • PNG alpha import bug - doesn't ask, interprets always as straight

    This has been an issue for quite some time now, finally found time to search for a solution and couldn't find one
    If I render a scene in 3dsMAX and save it as a PNG file, then I import it to AE, AE doesn't ask what type of alpha is in the image - it always assumes it's straight which is wrong because it's always premultiplied (coming from 3ds MAX at least).
    It asks with tiffs, tga, jpeg2000 but NOT with pngs
    Any thoughts on that?
    If you want to check yourself, maybe on a different 3D software:
    - create a plane
    - give it a self illuminating red material (so that there is no shading whatsoever)
    - throw a black and white gradient to the transparency slot
    In AE if you import correctly, on the transparency grid, you'll get a plane of constant red color gradually fading out. If it seems that the more transparent the plane gets, the darker/brighter the red also gets - you have a wrong alpha interpretation.

    I never render anything premultiplied from any 3D app. You don't get as good an edge and unless you are specifically using a colored background as a target it makes not sense in a production environment to be using premultiplied alphas. All NLE's default to straight and in almost every case, you get a much better edge.
    That said, Dave's right, it's a preferences setting. I have not checked png's or png sequences so I don't know if my machine would show this problem, but then again, I never intentionally produce a premultiplied alpha.

  • Photos app bug resurrects long-removed photos (related to PNG alpha)

    Wanted to report/discuss a possible privacy concern and image glitch, and understand it better for submission to Apple's feedback page: the iPad (and maybe iPhone) Photos app will consitently resurrect long-deleted photos in your Camera Roll, under certain circumstances. These are long-removed photos (as in removed many months ago, prior to the iOS 5 update), and possibly only the reduced-size thumbnail versions.
    Note: as near as I can tell, the deleted photos were NOT originally from the camera roll! That's where they resurface, but I believe they are photos from other albums, maybe once which used to by synched to iPad but which I no longer synch. So "removed" might mean deleted or it might mean "no longer synched to iPad"... the images are so old I can't recall.
    So the bug, I'm guessing, it two-fold:
    1) The Photos app (and/or iPhoto during wired synch?) is not fully removing photos (or at least, their thumbs). They're no longer visible in Photos app, but are being retained somewhere on the device.
    2) A glitch in the Photos camera roll PNG handling (which I think may be new with iOS 5) causes those old images ro re-surface when you add a PNG to the camera roll. (The old photos were JPEG, but the image that triggers the bug must be a PNG with alpha channel)
    I have seen this on both an iPad 1 and iPad 2, running iOS 5.
    Here's how to reproduce it:
    1) Synch some photos to your iPad, then deselect them for synching and re-synch (so they're not there any more). Also, add some photos or screenshots to the camera roll and then delete them. I say to do both because I'm not 100% where the old photos come from, and I'm hoping this covers all bases! Actually, most people have already done these things in the past, and can probably skip this step.
    2)  Generate a transparent PNG using the art app Procreate (and probably any app that saves PNGs to the camera roll with alpha channel). All you have to do is scribble somethign into a blank Procreate canvas, then export it to your photo album. There is no need to do anything special to get an alpha channel or PNG format: you always get that. (Unless you used the Fill command to completely cover the canvas.) Now in the camera roll there should be your scribble on a transparent background. You can email it to yourself and see that clearly in Photoshop or Preview.
    3) Here's the glitch: look at your camera roll (thumbnails view) and you'll see that the alpha-transparent background of the image has become one of your old removed photos! Tap it to enlarge and the alpha becomes black (which is fine, although it may seem odd if you intended to paint onto the default white canvas). But for just a moment, before you see the black, you will get a full-size glimpse of the old photo. (Or, maybe, an enlargement of the thumbnail?)
    4) If you keep saving more alpha PNGs, you'll keep seeing more and different old photos coming back to life in the alpha regions of the thumbnails (and, briefly, at full size).
    5) If you delete all those PNGs and then save some new ones, you'll see the same sequence of old photos reappear again.
    Needed fix: removed phtos/thumbnails should be properly purged, and alpha PNGs should show simply black (or some default background) at all times.

    Ok, I replicated it and I don't like it! I didn't use the one you marked cause I couldn't call it up properly but I did Bing
    transparent gifs and loaded up 3, one was totally invisible in the thumbnail and I could clearly see one of my pics perfectly in the thumbnail but when I brought it to page the gif filled the frame.
    I have no idea where the pic came from, I mean I recognize it but from where in the album I have no idea.
    Oh yeah, I was wrong about the first pic coming to page, it wasn't the same image but a different one...and I have no idea how the one that came up, (what i thought was the underlying pic) did, or how it got there or even from where.
    This is some weird stuff though not as weird as that silly *** movie, what a load of tripe; I should have just spent my
    time on this, it's infinitely more enjoyable!
    Ok, here's the consensus from my layman iPad view:
    What happened now and most probably before was a 'transparent gif' or a partially transparent gif like the one I spoke of first that I could see the edge of or the outer perimeter of, the underlining image with the gif taking up say 3/4 of the thumbnail; this it what it was.
    This is totally apparent to me now because of your having me import a totally transparent gif which was invisible over my pic, thus the freaky part I didn't like...keying the thumbnail with one thing and ending up with something totally different when brought to page.
    Still doesn't explain where this silly iPad is grabbing these pics from?
      But here's something funny; my camera roll shows say 9,200 pics but my, 'iMy System' app say I have like 11,300 which I always thought was a fluke, that it was just reading wrong but maybe it's seeing something we're not.           What if all those pics we're deleting to save space or just generally culling have never left the system?                     Maybe that goofy app is really reading the true count!
       Those others up above us here who mentioned privacy concerns.. this could be whats going on, there's a ghost
    in the machine and it be our old pics and god knows what else floating around in that iPads memory.
    Ok, I'm crazy tired and I have to wrap this up. Least now we know how to replicate this but on the other hand I think we opened up an even bigger can of worms... the mystery of where all those images are hiding in our iPads?
    I haven't hardwired to a computer since I upgraded to ios5 so whatever's going on here, leastwise for me is iPad
    based and can't be blamed for synching issues like you discuss up above unless what I'm grabbing here is old stuff
    reimported back into my pad from the mainframe when I was backed up for the ios5 upgrade?
    Oh well, let me know what you think. Please do forgive my not getting back to you sooner on account of the movie
    but you already know I regret choosing that over this! Hope you had a good night and thanks...

Maybe you are looking for

  • How can I remove a mini DVD?

    My wife just plunged a mini DVD into the drive slot thinking my MBP would play it. The joke's on her! So, any suggestions as to how to remove the mini DVD short of taking the MBP apart? Or is that what I'm going to have to do? Thanks.   Mac OS X (10.

  • Which is the suitable flash player version for galaxy tab 3

    Hi , i'm using galaxy tab 3 vertion 4.1.2 and stil unable to watch any movie through putlocker site.i alredy had installed flash manually fr the device but still it says,"important codec n plug-in missing".pls help..

  • How do i get an older version of firefox

    firefox froze and it is no longer on my computer. I have an older mac computer with os 10.5.8 how do i download the version that i had.

  • How to creat test variable for required year value.

    Hi All, I have one report in that report description i want to display year value(zvar_year). Ex : report description like "&zvar_year& report" in runtime it can show "2011 report". when i run this report from feb to dec i have to show current year v

  • Where is archived mail?

    Hello everyone I am using Mail application in OS X 10.10 to manage my gmail. Today I misclicked to the Archive button, so an email disappered (actually I want to delete this mail). How can I get this e-mail back and delete it? Thank you very much