Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.
/ goclipimg Public archive

A little library that should allow you to get image data from your clipboard.

License

Notifications You must be signed in to change notification settings

Bios-Marcel/goclipimg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goclipimg

tests

This is just a tiny library that helps you getting an image from your clipboard into your application.

Requirements

Linux

If you are running X11 you will need to have xclip installed.

On Wayland you will need wl-clipboard.

Windows

On Windows, this simply invokes a PowerShell script. Sadly this causes the library to open a PowerShell window, unless you are already running inside of a terminal.

Example

func main() {
    data, err := goclipimg.GetImageFromClipboard()
    if err == nil {
        doSomethingWithYourPNG(data)
    }
}

About

A little library that should allow you to get image data from your clipboard.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages