Thursday, 11 February 2016

copy PNG from the browser displays a black background instead transparent

Copy PNG from the browser displays a black background instead transparent  

When you copy a transparent PNG image to the clipboard and then paste into Photoshop, Paint, etc. - Transparency becomes black. Is there any solution for this? This is a browser problem, an editing application or a problem with the operating system clipboard? I am using Windows 7 and tested with the latest versions of Chrome and Internet Explorer.

Try saving the file, and then use Open File in Photoshop. AFAIK, the painting does not have the ability to save files png transparency enabled.


Try this: copy the transparent image, paste into MS Word. BELOW copy (or drag / drop) Word and paste into another program target.

I found a paste Visio from Chrome becomes black, but it works correctly in Word and then copy and paste Word properly and transparently in Visio.
I used Photoshop to copy semi-transparent textures for some time while prototyping (with the fate of Axure RP).
Now, I've tried using the new API clipboard in HTML 5. I dissected the PNG files that are generated by this process.

If I can use the clipboard (with a rectangular frame) to copy a semi-transparent texture to the browser with the clipboard API, alpha byte FF (completely opaque) is established.
If I use the drag and drop API to copy a "Save As Web" PNG 24 file in the browser, it works as expected and work transparent pixels (alpha and bytes is not required to FF).
Note: Even the thought of Photoshop said to be 24-bit, in fact exports and 8 bits yet (confirmed).
Post the commentDanLugg as an answer, since it is the most convenient IMHO:
  1. Right-click on image and Copy Image URL from your browser.
  2. In Photoshop choose File-> Open (Ctrl-o) and paste the URL in the file name portion of the dialog box.
    • Photoshop / Windows download URL to open a temporary file.

0 comments:

Post a Comment