Preview image and video files in the SLICC preview tab
Synopsis
imgcat <path> [path...]
Description
Displays image and video files from the SLICC virtual filesystem in the preview tab. Accepts one or more file paths as arguments. Each file is read from the VFS, its MIME type is detected, and it is rendered in the terminal's media preview area. Only previewable media types (images and videos) are supported.
Options
-h, --helpâShow help message
Examples
$ imgcat photo.png
Preview a single image file.
$ imgcat image1.jpg image2.png video.mp4
Preview multiple media files at once.
Notes
Inspired by iTerm2's imgcat, this SLICC version renders media in the built-in preview tab rather than inline in the terminal. It requires a browser environment and only works with media types recognized as previewable by SLICC's MIME type system. Non-file paths (directories) and unsupported media types produce an error. The command reads files as binary from the virtual filesystem.
See Also
screencapture, open, cat