pass metrics for correct rescaling, minor fixes

This commit is contained in:
Jörg Breitbart
2026-08-28 22:10:31 +02:00
parent 8c8c228ac5
commit 42894ff9a1
5 changed files with 31 additions and 24 deletions
+4 -3
View File
@@ -70,9 +70,10 @@ const DEFAULT_OPTIONS: IImageAddonOptions = {
showPlaceholder: true,
iipSupport: true,
iipSizeLimit: 33554432,
iipAnimation: true, // alpha
kittySupport: true,
kittySizeLimit: 33554432
kittySizeLimit: 33554432,
animationSupport: true, // alpha
animationPixelLimit: 4194304 // limit to 2048 * 2048 pixels
};
// max palette size supported by the sixel lib (compile time setting)
@@ -147,7 +148,7 @@ export class ImageAddon implements ITerminalAddon, IImageApi {
terminal.options.windowOptions = windowOps;
}
if (this._opts.iipAnimation && typeof ImageDecoder === 'function') {
if (this._opts.animationSupport && typeof ImageDecoder === 'function') {
this._aniManager = new AnimationManager(this._storage, this._renderer, terminal);
this._disposeLater(terminal.onRender(range => this._aniManager!.viewportUpdated(range)));
}