screencapload-crystal
screencapload-crystal
Screencapload is a macOS command line tool that allows you to take a screenshot, reduce its file weight while mian
Installation
Right now, you have to build the app to use it. You also can benefit from GraphicsMagick to automatically trim the image, optipng to reduce the screenshot's weight, and pngquant to reduce the image to 256 colors so it is much faster to download, display, etc.
To compile, run :
brew install crystal-lang
crystal build --release src/screencapload.cr
To install optionnal depencies run :
brew install graphicsmagick optipng pngquant
Usage
You need an imgur API key, either stored in ~/.imgur or passed as a command line argument like so :
screencapload 123456789
Development
This is a basic conversion of the original screencapload Ruby script into Crystal.
It is not meant to better or faster, because running the ruby version already take about a few dozen milliseconds and this version won't offer anything more.
If you want to play wisth the code and run the app quickly, use :
brew install crystal-lang
crystal run src/screencapload.cr
Contributing
- Fork it ( https://github.com/czj/screencapload-crystal/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- czj Clément Joubert - creator, maintainer
screencapload-crystal
- 1
- 0
- 0
- 0
- 0
- over 4 years ago
- April 8, 2017
MIT License
Sat, 21 Dec 2024 16:15:40 GMT