| Title: | AVIF Image Encoder |
|---|---|
| Description: | Encodes images in AVIF format with 'ravif' Rust crate. |
| Authors: | Akiru Kato [aut, cre] |
| Maintainer: | Akiru Kato <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.5 |
| Built: | 2026-06-02 15:09:14 UTC |
| Source: | https://github.com/paithiov909/rravif |
Sends ANSI escape sequences to clear the visible screen and, when supported, the scrollback buffer of the current terminal. This is primarily intended for use in interactive sessions to reset the display before printing images or other rich output.
Note that support for clearing the scrollback buffer depends on the terminal emulator. In some environments, only the visible screen will be cleared.
This function has no effect in non-interactive sessions.
clear()clear()
Invisibly returns NULL.
Encodes an AVIF image from a nativeRaster object.
encode(nr, quality = 80, speed = 10)encode(nr, quality = 80, speed = 10)
nr |
A |
quality |
The quality of the image. |
speed |
The processing speed. |
A raw vector containing the encoded image data.
Displays a nativeRaster object directly in the terminal using
terminal graphics protocols (e.g., Sixel, Kitty, or iTerm2),
depending on what is supported by the current environment.
Internally, the raster is converted to an RGBA image and rendered via a Rust backend.
In non-interactive sessions, the input is returned unchanged and no output is produced.
print_nr(x, clear_first = TRUE)print_nr(x, clear_first = TRUE)
x |
A |
clear_first |
Logical. If |
Invisibly returns x.
Write an AVIF image to a file
write_avif(nr, path = NULL, quality = 80, speed = 10)write_avif(nr, path = NULL, quality = 80, speed = 10)
nr |
A |
path |
The path to write the image. |
quality |
The quality of the image. |
speed |
The processing speed. |
If path is NULL, returns a raw vector containing the encoded image data.
Otherwise, path is invisibly returned.