Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I copy a PNG image with transparency to the clipboard and subsequently paste it into Photoshop, Paint, etc. - the transparency turns to black.

Is there any workaround for this? Is this a browser issue, an application issue or an OS issue with the clipboard?

I'm using Windows 7 and tested with the latest versions of Chrome and Internet Explorer.

share|improve this question
    
Please elaborate. What exactly are you copying? The .png file or its bitmap while it is opened in an editor/viewer? If it is the file, then Photoshop (should) be able to open the file correctly, transparency and all. If it is the picture’s actual pixels, then it depends on the source program and whether it is putting the transparency data in the clipboard or not. –  Synetech Jul 7 '12 at 20:34
add comment

3 Answers

up vote 7 down vote accepted

Copy-Paste doesn't maintain transparency. Try saving file and then use Open File in Photoshop. AFAIK, Paint doesn't have the ability to save transparency enabled png files.

share|improve this answer
2  
Yeah, this is what I do. I just hoped there was some other way around it. –  Ryan Elkins Feb 1 '11 at 22:20
    
@ryan FWIW, this actually seems to be a bug on the Photoshop side. It works in Paint.net, when copied from IE, FF, or Chrome. I thought maybe a workaround would be "Paste in Paint.net, select all, copy, paste in Photoshop", but that doesn't work--you get the image on white instead of black, but still with no transparency. –  Kip Nov 25 '11 at 19:29
3  
Just a note; you can open the URL in Photoshop, saving you the intermediate step; Windows (I'm sure other OSes will do the same) will download it to a local temporary file, and open. This (I've just observed) retains transparency. –  Dan Lugg Apr 3 '12 at 19:38
    
> Copy-Paste doesn't maintain transparency. That depends on the source of the clipboard data. –  Synetech Jul 7 '12 at 20:33
add comment

You can just drag the image from the browser to Photoshop or whatever program that will properly handle a PNG file.

share|improve this answer
add comment

I just spent a lot of time looking into this. I've used Photoshop to copy semi-transparent textures for some time while prototyping (with the destination of Axure RP).

Now, I've tried using the new clipboard API in html 5. I dissected the PNG files that are generated by this process.

If I use the clipboard (with a rectangular marquee) to copy a semi-transparent texture to the browser with the clipboard API, it sets the alpha byte to FF (completely opaque).

If I use the drag and drop API to copy a "Save as Web" PNG 24 file to the browser, it works as expected and transparent pixels work (and the alpha byte is not forced to FF).

Note: Even thought Photoshop says it's 24 bit, it actually exports it as 8 bit still (confirmed).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.