All Projects → sindresorhus → Term Img

sindresorhus / Term Img

Licence: mit
Display images in iTerm

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Term Img

Term Img Cli
Display images in iTerm
Stars: ✭ 70 (-74.55%)
Mutual labels:  iterm2, image, npm-package
Defer.js
🥇 A super small, super efficient library that helps you lazy load everything like images, video, audio, iframe as well as stylesheets, and JavaScript.
Stars: ✭ 138 (-49.82%)
Mutual labels:  image, npm-package
Terminal Image
Display images in the terminal
Stars: ✭ 778 (+182.91%)
Mutual labels:  image, npm-package
Angular File Uploader
Angular file uploader is an Angular 2/4/5/6/7/8/9/10 + file uploader module with Real-Time Progress Bar, Responsive design, Angular Universal Compatibility, localization and multiple themes which includes Drag and Drop and much more.
Stars: ✭ 92 (-66.55%)
Mutual labels:  image, npm-package
Terminal Image Cli
Display images in the terminal
Stars: ✭ 234 (-14.91%)
Mutual labels:  image, npm-package
Imgcat
It's like cat, but for images.
Stars: ✭ 577 (+109.82%)
Mutual labels:  iterm2, image
Bv
Quickly view satellite imagery, hyperspectral imagery, and machine learning image outputs directly in your iTerm2 terminal.
Stars: ✭ 215 (-21.82%)
Mutual labels:  iterm2, image
Pyinstastories
Python script to download Instagram stories from Instagram users.
Stars: ✭ 260 (-5.45%)
Mutual labels:  image
Bottomsheet Imagepicker
Modern image picker for Android
Stars: ✭ 267 (-2.91%)
Mutual labels:  image
Ngx Smart Modal
Modal/Dialog component crafted for Angular
Stars: ✭ 256 (-6.91%)
Mutual labels:  npm-package
Menyoki
Screen{shot,cast} and perform ImageOps on the command line 🌱 🏞️
Stars: ✭ 255 (-7.27%)
Mutual labels:  image
Tableexport
tableExport(table导出文件,支持json、csv、txt、xml、word、excel、image、pdf)
Stars: ✭ 261 (-5.09%)
Mutual labels:  image
Cloudder
Cloudinary wrapper for Laravel 5
Stars: ✭ 268 (-2.55%)
Mutual labels:  image
Rxgalleryfinal
图片选择库,单选/多选、拍照、裁剪、压缩,自定义。包括视频选择和录制。
Stars: ✭ 2,798 (+917.45%)
Mutual labels:  image
Yii2 Imagine
Yii 2 imagine extension
Stars: ✭ 271 (-1.45%)
Mutual labels:  image
Bioformats
Bio-Formats is a Java library for reading and writing data in life sciences image file formats. It is developed by the Open Microscopy Environment. Bio-Formats is released under the GNU General Public License (GPL); commercial licenses are available from Glencoe Software.
Stars: ✭ 256 (-6.91%)
Mutual labels:  image
Fediagram
图说前端>>收集各种前端技术图谱 🚕🚖🚗🚚🚛🚜
Stars: ✭ 273 (-0.73%)
Mutual labels:  image
Webp
WebP decoder and encoder for Go (Zero Dependencies).
Stars: ✭ 270 (-1.82%)
Mutual labels:  image
Landscapist
🍂 Jetpack Compose image loading library which can fetch and display network images using Glide, Coil, and Fresco.
Stars: ✭ 264 (-4%)
Mutual labels:  image
Thermal Printer In Android
Thermal printer in Android
Stars: ✭ 265 (-3.64%)
Mutual labels:  image

term-img

Display images in iTerm

You probably want the higher-level terminal-image package for displaying your images.

Even animated gifs!

Currently only supported on iTerm >=3.

Install

$ npm install term-img

Usage

const termImg = require('term-img');

function fallback() {
	// Return something else when not supported
}

console.log(termImg('unicorn.jpg', {fallback}));

API

termImg(image, options?)

Get the image as a string that you can log manually.

image

Type: string | Buffer

Filepath to an image or an image as a buffer.

options

Type: object

width
height

Type: 'auto' | string | number

The width and height are given as a number followed by a unit, or the word 'auto'.

  • N: N character cells.
  • Npx: N pixels.
  • N%: N percent of the session's width or height.
  • auto: The image's inherent size will be used to determine an appropriate dimension.
preserveAspectRatio

Type: boolean
Default: true

fallback

Type: Function
Default: () => throw new UnsupportedTerminalError()

Enables you to do something else when the terminal doesn't support images.

Related

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].