Dump an image raster to the terminal using the Terminal Graphics Protocol
raster2tgp(raster, compress = TRUE)
Called for it's side effect of writing the image to the terminal (standard
out). Returns NULL
invisibly.
the image 'raster' e.g. the output of as.raster
.
compress the data before sending to the terminal.
The Terminal Graphics Protocol is not supported by many Terminal Emulators. The most notable terminal emulator supporting the protocol is Kitty.
See raster2sixel
for output in Sixel format. See
png2terminal
for writing a PNG image to the terminal.