Giter VIP home page Giter VIP logo

crop-github-images-cli's Introduction

✂️ crop-github-images-cli

Crop your images and gifs for your GitHub Profile!

Usage

$ npx crop-github-images-cli <path-to-image-or-gif> [--github-token|-t <Personal Access Token>]

From

To

See examples for example results.

Requirements

Node >= 8

npm/npx

Auto Post to GitHub Gists

Supply a Personal Access Token in --github-token|-t option to automatically create gists from the cropped asset.

Notes

Images will be automatically resized to be 727xauto.

How to pin them in Github

Here

Example

https://github.com/mathdroid

Notes

Have fun!

crop-github-images-cli's People

Contributors

dependabot[bot] avatar depfu[bot] avatar mathdroid avatar sthobis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

crop-github-images-cli's Issues

CLI asks for username with token

λ ./node_modules/.bin/crop-github-images  dance.gif -t REALTOKEN
Successfully cropped dance.0.gif.
Successfully cropped dance.1.gif.
Successfully cropped dance.2.gif.
Successfully cropped dance.3.gif.
Successfully cropped dance.4.gif.
Successfully cropped dance.5.gif.
Prepared the gist for dance.0.gif in https://gist.github.com/b99cd5eab55244e9c2293cb0d84869fd
Prepared the gist for dance.1.gif in https://gist.github.com/64f3784bdf7852d5d81acc87087c4040
Prepared the gist for dance.5.gif in https://gist.github.com/802b397561971c1124854b300be76925
Prepared the gist for dance.3.gif in https://gist.github.com/30fe6284f579b53e43c5567220f84dd4
Prepared the gist for dance.2.gif in https://gist.github.com/611b590841b1a6bb10fae4fe0a3f2bd1
Prepared the gist for dance.4.gif in https://gist.github.com/fc0f01a623b4f78ae4916e7379101242
Username for 'https://gist.github.com': Username for 'https://gist.github.com': Username for 'https://gist.github.com': Username for 'https://gist.github.com': Username for 'https://gist.github.com': Username for 'https://gist.github.com': 

Any tip?

Constants update

CUT_WIDTH (and possibly CONTAINER_WIDTH) need updates due to GitHub's design update.

In case it helps, the max width of images in pinned gist is now 378.

Cannot find module './git-util'

I tried both npx/npm i -g

Version: 1.4.0
OS version: macOS 10.14.4
Node version: 11.14.0

internal/modules/cjs/loader.js:670
    throw err;
    ^

Error: Cannot find module './git-util'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:668:15)
    at Function.Module._load (internal/modules/cjs/loader.js:591:27)
    at Module.require (internal/modules/cjs/loader.js:723:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (/usr/local/lib/node_modules/crop-github-images-cli/cli.js:15:44)
    at Module._compile (internal/modules/cjs/loader.js:816:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
    at Module.load (internal/modules/cjs/loader.js:685:32)
    at Function.Module._load (internal/modules/cjs/loader.js:620:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)

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.