Transparency gets lost when copying to the clipboard

  • 2
  • Problem
  • Updated 6 years ago
In Snagit Editor, when I copy a transparent object (canvas = transparent) e.g. a Callout, or the whole image where the canvas is transparent, to the clipboard, then it loses its transparency, i.e. the transparent area becomes a white color when pasting it somewhere else.

How can this be avoided?

My system: Windows x64 SP1
Photo of PeterBan

PeterBan

  • 109 Posts
  • 11 Reply Likes
  • confused

Posted 6 years ago

  • 2
Photo of GregB

GregB

  • 161 Posts
  • 7 Reply Likes
I believe you need to save these as .png images, or else the transparency doesn't work.
Photo of PeterBan

PeterBan

  • 109 Posts
  • 11 Reply Likes
Yes, when saved as PNG the transparency is preserved. But I WANT to use the clipboard because it is 100 times faster to insert it into another program!

BTW, when copying an image to the clipboard, the program should create a BITMAP format in the clipboard. Unfortunately, Snagit Editor still has a bug where it always creates different formats in the clipboard. Please vote here to tell TechSmith they should fix this bug:

Problems when copying images to the clipboard
Photo of Adam Marks

Adam Marks, Software Developer

  • 124 Posts
  • 17 Reply Likes
Hello Peter,

Make sure that this setting is not set to disable transparency on the clipboard.
http://screencast.com/t/LE0P8Oimn

There is definitely some variability into what you will see copied into the clipboard as far as format.  

Part of this variability is because when we looked at it there wasn't really a universal way to represent a transparent image on the clipboard that will work with all applications.  We tried to choose the most compatible way that we could identify at that time.  Maybe there is something better now.  

Are you able to copy transparency into Microsoft Office applications?  We know for sure that this should work.

If that is working, then what application is a transparent clipboard copy not working in?   With that information we can figure out what format that application prefers and see how compatible it would be with other applications.

Thanks,
Adam Marks
Developer, TechSmith


Photo of PeterBan

PeterBan

  • 109 Posts
  • 11 Reply Likes
Hello Adam,

you have to do SEVERAL copy actions, because the behavior of Snagit in this case is inconsistent:

I copied several images and objects with a transparent background to the clipboard. 4 times the transparency was preserved when pasting the image into MS Word 2010 on a page with skyblue background to test the transparency. But the fifth time this image copied from Snagit Editor:



was pasted into MS Word and the background was changed from transparent to WHITE:


This time the proprietary Snagit clipboard format "{A87846A4-38CA-4be3-BDF1-71EF821EF333}" was missing from the clipboard formats (note that also the Size value is missing from the CF_BITMAP format):



So it seems that Word decodes the proprietary Snagit clipboard format "{A87846A4-38CA-4be3-BDF1-71EF821EF333}" and gets the transparent image or the transparency layer from there. Is this proprietary clipboard format documented? Where can I get the documentation? (I am working on a clipboard utility and my users always complain about Snagit not working with the clipboard).

Anyway, you can see that the copy behavior of Snagit Editor is unpredictable even with MS WORD, and sometimes important formats are missing. This is a clear sign of a bug, because the behavior of a program should be consistent under the same conditions. I would be happy if this could be fixed!

I know from my own developer experience that working with the Windows clipboard can be tricky, and sometimes opening the clipboard does not work because it is in use by another application and you have to use a workaround loop to make sure you get the content into the clipboard. But it can be done.
(Edited)
Photo of Adam Marks

Adam Marks, Software Developer

  • 124 Posts
  • 13 Reply Likes
Peter,

Thanks for this information,  the fact that you can copy the same image 5 times and end up with a different format doesn't sound right at all.   We will be taking a look at this and improving this so that we can get more deterministic behavior.

Thanks,
Adam

Photo of PeterBan

PeterBan

  • 109 Posts
  • 11 Reply Likes
Thanks Adam, I like Snagit very much, and I tell a lot of people how good it is.

But what about the proprietary Snagit clipboard format "{A87846A4-38CA-4be3-BDF1-71EF821EF333}"? Is this proprietary clipboard format documented? Where can I get the documentation?
Photo of Adam Marks

Adam Marks, Software Developer

  • 124 Posts
  • 13 Reply Likes
I sent you a private email/feedback through your website about this,  I will probably need to look at the code to see what we are using this format for and I'd like to send you a private email when I find out.
Photo of PeterBan

PeterBan

  • 109 Posts
  • 11 Reply Likes
Hi Adam, I did not receive anything. Could you send it to my e-mail address deposited at TechSmith? Thanks!
Photo of Adam Marks

Adam Marks, Software Developer

  • 124 Posts
  • 13 Reply Likes
Hi Peter, I did not email you yet,  I did look into our proprietary format a bit today and we use that to allow for copy/pasting images within Snagit and keep metadata associated with them when the image is pasted back into Snagit.    This is so that if you copy from one image in Snagit and it has multiple layers and tools on it, if you paste that into another image from within Snagit that same data is kept.  This format is not documented as it is very dependent on the inner-workings of Snagit which is why it is proprietary.  If you have more questions you can just email me at :  a { dot } marks { at } techsmith {dot} com

Thanks,
Adam

This conversation is no longer open for comments or replies.