Sparx Systems Forum
Enterprise Architect => Bugs and Issues => Topic started by: skiwi on September 17, 2015, 09:55:02 am
-
I'm trying to add an image to a diagram (Paste Image From Clipboard).
The image has background transparency. (EA 1213)
I've tried .png and .gif
(http://i306.photobucket.com/albums/nn245/copperkiwi/Sparx/NFS_Linux_zps8oonzxug.gif) (http://i306.photobucket.com/albums/nn245/copperkiwi/Sparx/NFS_Linux_zpsn4brbhvh.png)
While they display fine here on the forum, in a browser, or a tool (e.g. paint.net) they display like this in EA
(http://i306.photobucket.com/albums/nn245/copperkiwi/Sparx/2015-09-17%2011_52_31-_zpsvnsr2vr0.png)
Is this a bug or a feature?
-
The problem is with the copy and paste.
I just saved the png to my desktop and dragged it onto an EA diagram. It renders perfectly in 1215. (Including being able to see the tiled background through the semi-transparent areas.)
Opening the same image in gimp, then copying and pasting results in behavior like you are reporting. In this scenario, EA will only receive raw bitmap data. I don't know if it's EA ignoring the alpha channel on 32bit bitmaps on paste, the tool is writing it in an unexpected way or if there is something else going on. In any case, you can get the image to work by dropping the file on directly or explicitly importing it in the image manager.
PS. I just remembered, last time I spent much time looking at images copying images with alpha channel was very problematic between paint.net and gimp.
-
I can confirm that.
Image pasted from paint.net (or imported via clipboard) looses transparency (although I have a white background, not a black one)
Importing from file works perfectly.
Geert