screencapload-crystal

Command line tool for macOS taking a screenshot and uploading it online

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

  1. Fork it ( https://github.com/czj/screencapload-crystal/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • czj Clément Joubert - creator, maintainer
Repository

screencapload-crystal

Owner
Statistic
  • 1
  • 0
  • 0
  • 0
  • 0
  • almost 4 years ago
  • April 8, 2017
License

MIT License

Links
Synced at

Sun, 05 May 2024 16:17:38 GMT

Languages