Live data from Hacker News

HTML is a native image format, hear me out

hmml.eddocu.com

41–50 of 64 posts

Re: HTML is a native image format, hear me out

#41
Not the first time I saw this Hero header with text that's being written in real time, which is very cute but actually causes the layout to change every second.

I guess it happens when people vibecode and the llm generates code, and it cannot verify that the interface actually works well. Even with agents that use drivers either directly or through playwright/selenium, they might only see a single screenshot, so no video.

Anyways, immediately stopped reading, as the new adage goes, why should I read something you weren't bothered to write?

Re: HTML is a native image format, hear me out

#42

> A real food-delivery page - markup, images & an SVG animation in one .hmml, 30% smaller than the same page as base64 Why the comparison with Base64 when Base64 itself has approximately 33% size overhead?

A: I want to serve html with images all in single pack

You have 2 options.

- Embed images into html (base64, size overhead)

- embed html/css/js into media binaries

.hmml is the packing strategy for option two. 2kb js for encode/decode. And extra rantings around what a 'digital image' is

Re: HTML is a native image format, hear me out

#43
post #34

Earlier quoted context omitted.

Same HTML specification does not support .hmml Until they support .hmml imma close my image tags. But thanks for highlighting (its a joke)

Closing an tag with a slash has no meaning. It does nothing. And browsers ignore it. So it's pointless cause is self-closing by itself.

Unless you’re the type who wants their HTML to be valid XHTML! :^)

Re: HTML is a native image format, hear me out

#44

I’ll engage with the editorialised title (which will probably be changed soon), “HTML is a native image format, hear me out”: data:image/svg+xml, Behold!

That's pretty much what I was thinking too. "A way to create an image, with parts that can be edited using tags, that an LLM can deal with... this sounds like SVG"

Re: HTML is a native image format, hear me out

#47
post #41

Not the first time I saw this Hero header with text that's being written in real time, which is very cute but actually causes the layout to change every second. I guess it happens when people vibecode and the llm generates code, and it cannot verify that the interface actually works well. Even with agents that use drivers either directly or through playwright/selenium, they might only see a single screenshot, so no v…

[deleted]

Re: HTML is a native image format, hear me out

#50

I’ll engage with the editorialised title (which will probably be changed soon), “HTML is a native image format, hear me out”: data:image/svg+xml, Behold!

That's pretty much what I was thinking too. "A way to create an image, with parts that can be edited using tags, that an LLM can deal with... this sounds like SVG"

yes but not every image/visual is efficiently representable with svgs. sometimes we need rasters
Post reply on HN