Skip to content

Instantly share code, notes, and snippets.

@Lakritzator
Created February 4, 2022 22:32
Show Gist options
  • Save Lakritzator/965951af487b5823c67d0c986d0c2118 to your computer and use it in GitHub Desktop.
Save Lakritzator/965951af487b5823c67d0c986d0c2118 to your computer and use it in GitHub Desktop.
Greenshot and the Windows clipboard

Greenshot and the Windows clipboard

The Windows clipboard is a technology where applications can store a single piece of information in different formats. For example a single picture can be stored in the formats PNG, BMP and GIF. If the content is pasted (CTRL + v), the current active Window has to process the key stroke, looks at the clipboard an takes the format it knows from it.

Greenshot supports the following formats:

  • DIB (Bitmap stored as BMP, removed the first 14 bytes) - Greenshot 1.2 This format causes issues with Windows 11 when Docker is running, or VirtualBox. It doesn't support transparency.
  • DIB (BI_BITFIELDS) - Greenshot 1.3.234 This is supposed to make transparency possible, but it's not officially supported.
  • PNG - This has just fine transparency support
  • Windows Bitmap (default format if you just place a bitmap on the clipboard)
  • HTML with a link to a file
  • HTML with embedded data
Application DIB DIB Bitfields PNG Windows Bitmap HTML HTML Embedded
MS Teams X - - - - -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment