buildkite / terminal-to-html

Converts arbitrary shell output (with ANSI) into beautifully rendered HTML
http://buildkite.github.io/terminal-to-html
MIT License
649 stars 45 forks source link

Buildkite-friendly image inlining #22

Closed mipearson closed 9 years ago

mipearson commented 9 years ago

While iTerm2 images are working, buildkite itself has a 1mb limit on build logs, which means that using the image inlining for showing screenshots of failed browser tests in builds would quickly exceed this limit.

I propose a new "standard" for referring to images that are part of the build artifacts.

The iTerm2 standard currently looks like: \x1b[1337;File=name=1.gif;width=100%;height=50px;inline=1:BASE64\a

Ours could be: \x1b[1338;name=output/1.gif;width=100%;height=50px\a

Notes:

While the iTerm2 syntax currently causes terminal to inline the image using src="data...", this would merely refer to the file on disk using a prefix that could be specified at program startup.

Porting imgcat to use this would be quite simple. Porting the iTerm2 image handling code in terminal would also be simple.

toolmantim commented 9 years ago

Yes! 1338 is probably the best bet. Let's get this working this week :)

toolmantim commented 9 years ago

IS LIVE