sindresorhus / Term Img
Licence: mit
Display images in iTerm
Stars: ✭ 275
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Term Img
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
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
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
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
Landscapist
🍂 Jetpack Compose image loading library which can fetch and display network images using Glide, Coil, and Fresco.
Stars: ✭ 264 (-4%)
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
- term-img-cli - CLI for this module
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].