sindresorhus / terminal-image-cli

Display images in the terminal
MIT License
271 stars 12 forks source link

How to stop looping GIF using just this program? #3

Open uriel1998 opened 1 year ago

uriel1998 commented 1 year ago

I can see in the terminal-image repository that this exists:

terminalImage.gifBuffer(imageBuffer, options?)
terminalImage.gifFile(filePath, options?)

Returns a function that can be called to stop the GIF animation.

However, I do not see a way to invoke this using terminal-image-cli, and the -h function holds no clue there. What am I missing?

sindresorhus commented 1 year ago

GIF support is not yet implemented here.

uriel1998 commented 1 year ago

Oh! Because it loads them just fine, it just doesn't exit (either from a static GIF or animated one).