Giter Club home page Giter Club logo

screencapload-crystal's Introduction

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

screencapload-crystal's People

Contributors

czj avatar

Stargazers

 avatar

Watchers

 avatar  avatar

screencapload-crystal's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.