term.gfx.proto.build_file

term.gfx.proto

build_file(file_path, options) -> payload

Build a kitty graphics file transmission payload

Base64-encodes the file path (not the file contents) and builds a Kitty graphics command with t=f (file transmission medium). The terminal reads the file directly from disk, avoiding the overhead of sending image data through the escape sequence stream.