Skip to content

feat: add option to copy image data to clipboard instead of URL#146

Open
TerrifiedBug wants to merge 1 commit intoitoolio:devfrom
TerrifiedBug:feat/copy-image-to-clipboard
Open

feat: add option to copy image data to clipboard instead of URL#146
TerrifiedBug wants to merge 1 commit intoitoolio:devfrom
TerrifiedBug:feat/copy-image-to-clipboard

Conversation

@TerrifiedBug
Copy link

Adds a copyImageToClipboard setting (off by default) that puts actual image data on the clipboard after a screenshot, instead of a file URL or upload URL. This way you can paste screenshots directly into Slack, Discord, Notes, etc. as inline images.

When enabled, upload handlers (Imgur/Custom) skip overwriting the clipboard with the URL so the image data is preserved.

Changes:

  • Constants.swift — new copyImageToClipboard Defaults key
  • SettingsMenuView.swift — toggle in General Settings
  • ImageCapture.swift — write NSImage data to pasteboard when enabled
  • Imgur.swift / Custom.swift — skip clipboard overwrite when enabled

Videos/recordings are unaffected by this setting.

Add a new `copyImageToClipboard` setting that allows users to have
actual image data on the clipboard after a screenshot, rather than
a file URL or upload URL. This enables pasting screenshots directly
into apps like Slack, Discord, and Notes.

When enabled, image captures write NSImage data to the pasteboard
and upload handlers skip overwriting the clipboard with the URL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant