logoalt Hacker News

jjcmyesterday at 6:41 PM10 repliesview on HN

Doing testing with it now, specifically for image->html conversion.

Previously Fable was the best at this, followed by Gemini 3.1 pro (a surprising #2, but Google has great vision models).

Opus' results seem to be more accurate than Fable, following the design source of truth better.

Example results:

Design source of truth: https://image.non.io/73e239a3-880f-4793-b65f-4810be2d9378.we...

Opus 5 build: https://html.non.io/solaraOpus/

Fable 5 build: https://html.non.io/solara/

Note the buttons - for fable they're pill buttons, opus got the rounded rectangle nature of them. Opus' images are closer to the source of truth as well (both LLMs were provided with image gen capabilities for the assets).

Running more tests now, but preliminary results are saying this is indeed better than Fable in some areas. Crazy.


Replies

jjcmyesterday at 7:07 PM

Here's another test of a cyberpunk ramen shop website.

One thing I've found LLMs have a lot of difficulty with is angular cuts / elements that aren't easily representable with CSS. Cyberpunk aesthetics are generally a great test of that, since they have a lot of microglyphs / window decoration.

Design source of truth: https://image.non.io/9d5fed20-b476-49d3-841b-37eb553fb88e.we...

Opus 5 build: https://html.non.io/neonRamen/

Thoughts: It does a really, REALLY good job at these angular cuts / microglyphs. The responsiveness is off, but I'm very impressed at how well it did here. One way I think of it is "how close to a finished product did this get me?". Opus gets you like 90% there.

show 5 replies
abidlabsyesterday at 10:47 PM

I was curious to see how open weight models would do on this task so I passed in a screenshot of your source of truth and here's what 2 of the best code-generation models that allow image inputs do:

Inkling (not too great): https://cdn-uploads.huggingface.co/production/uploads/608b8b...

Kimi 2.7 (really well, esp. note that this is the predecessor model, not the latest Kimi3): https://cdn-uploads.huggingface.co/production/uploads/608b8b...

Here's how I tested them: https://huggingface.co/spaces/abidlabs/vlm-screenshot-to-web...

https://huggingface.co/spaces/abidlabs/vlm-screenshot-to-web...

show 2 replies
chriscamargoyesterday at 6:51 PM

This is an awesome test! Thanks for sharing the results. Opus 5 is very impressive.

Out of curiosity, what app is that Design source of truth screenshot from?

show 1 reply
bottlepalmyesterday at 6:49 PM

I just clicked your links and then read your comment after - my first impression was the Fable version looks way nicer.

show 3 replies
afro88yesterday at 7:54 PM

IMO a much better test would be designs that aren't AI to begin with. Much more useful to see how well a model can html an image design without slopping it up

erikwyesterday at 6:58 PM

Very interesting that Fable took more creative liberties. Have you tried giving Fable the same task, but also specifying that it implement a pixel-perfect design? I think that I prefer the Fable implementation. I find the UI elements in the Fable implementation to have more contrast, which feels more usable to me. I also like how the right padding on the "Book Your Escape" CTA in the upper right matches the top and bottom padding, which I think is an improvement over the mockup.

show 1 reply
thatxlinertoday at 1:12 AM

> Doing testing with it now, specifically for image->html conversion.

I wonder if there exists a benchmark for that.

Xenographyesterday at 7:15 PM

Is this with browser tooling attached to the agent for review/iteration?

show 1 reply
abdussamityesterday at 11:04 PM

Please share your prompt to convert image to html!

show 1 reply
ai_fry_ur_brainyesterday at 7:14 PM

[dead]