Download the PHP package xiebruce/php-get-image-from-clipboard without Composer
On this page you can find all versions of the php package xiebruce/php-get-image-from-clipboard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xiebruce/php-get-image-from-clipboard
More information about xiebruce/php-get-image-from-clipboard
Files in xiebruce/php-get-image-from-clipboard
Package php-get-image-from-clipboard
Short Description Get image that copied to the clipboard(usually from screenshot) and dump it into jpg/png image file. Support macOS/Windows/Linux(Only test on Ubuntu 18.04.2 LTS).
License MIT
Informations about the package php-get-image-from-clipboard
php-get-image-from-clipboard
PHP-GetImgFromClipboard is a tool that allows you to get image on the clipboard(usually copy to the clipboard by taking a screenshot or copy from web page) and save it to an image file like jpg or png.
Install
Requires
Actually, php can not get image on the clipboard directly, so this tool is rely on other tools.
For macOS
For macOS, it relies on pngpaste, so you should install pngpaste first:
For Windows 10
For Windows 10, it's free to use, nothing need to be install.
For Windows 7
For Windows 7, you need to update Powershell. Download Powershell update package "Win7AndW2K8R2-KB3191566-x64.zip" from here: https://www.microsoft.com/en-us/download/details.aspx?id=54616, then update and restart.
Before update, you can check the Powershell version. Click "Start" menu on the bottom right corner, input "powershell" to search, then powershell shows up like this:
Click to open it and type this command:
Now you can see, before update, the Powershell version is 2.0:
After update, the Powershell version is 5.0:
For Linux Desktop
For Linux Desktop System(e.g. Ubuntu, Manjaro, CentOS etc.) , you need to install xclip
.
On Ubuntu:
I didn't test other Linux distributions, but it should be work as long as you install xclip
.
Usage
Acknowledgement
Thanks to octan3's img-clipboard-dump, I use it to get image from clipboard on Windows in my Project.