You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can set width and/or height as columns and/or rows of the terminal window as well.
67
67
By default, aspect ratio is always maintained. If you don't want to maintain aspect ratio, set preserveAspectRatio to false.
68
-
We use the native terminal rendering by default. If you want to always render via ANSI, set preferNativeRender to false.
69
68
70
69
@param filePath - File path to the image.
71
70
@param options - Image rendering options.
72
71
@param options.width - Optional: Custom image width. Can be set as percentage or number of columns of the terminal. It is recommended to use the percentage options.
73
72
@param options.height - Optional: Custom image height. Can be set as percentage or number of rows of the terminal. It is recommended to use the percentage options.
74
73
@param options.preserveAspectRatio - Optional: Whether to maintain image aspect ratio or not. Default: true.
75
-
@param options.preferNativeRender - Optional: Render the image using the terminal's native rendering or ANSI rendering. Default: true.
74
+
@param options.preferNativeRender - Prefer native terminal image protocols when available; set to false to force ANSI rendering. Default: true.
76
75
@returns The ANSI escape codes to display the image.
0 commit comments