Skip to content

Latest commit

 

History

History
67 lines (33 loc) · 1.74 KB

README.md

File metadata and controls

67 lines (33 loc) · 1.74 KB

Cloudinary Images Terminal

View Images from cloudinary inside your terminal

works best with iTerm because it has support for full def imagess

Demo

demo

How to use

Install

  1. clone this repo
  2. run yarn or npm i
  3. for the ascii images you'll need to install graphicsmagick first - see https://github.com/IonicaBizau/image-to-ascii/blob/master/INSTALLATION.md

Run

When you run the first time the app will prompt you for your cloud name, api key and secret. all you can get from your account's dashboad - https://cloudonary.com/console

Examples below use yarn. you can use the equivalent npm syntax for running scripts

Show image by public id

  • yarn start "public_id"

Or

  • _yarn start -p "public_id"

Show image with transformation

yarn start "sample" "w_200,h_200"

Or

  • yarn start -p "sample" -t "w_200,h_200"

image

Show image with named transformation

  • yarn start -p "sample" -n "my_named_transformation"

Show Images for tag

  • yarn start -# "dogs"

With transformation:

  • yarn start -# "dogs" -t "w_200,h_200"

Ascify your images

run any of these commands with -a, ex:

  • yarn start -p "sample" -t "w_200,h_200" -a

ascii