logoalt Hacker News

Code-driven AI illustrations are more useful than images from image models

268 points • by gmays • today at 1:56 AM • 137 comments • view on HN

Comments

jillesvangurp • today at 7:52 AM

I took some photos over the weekend that I made ChatGPT edit by taking control over Darktable. I watched it do a lot of sane edits, create masks, configure different filters, etc. It's not just randomly pushing buttons but you can see it reason about the composition and what it needs and you can guide it or have it criticize your own edits. Pretty impressive. People worry about AI generated photos. But AI can now drive photoshop directly, whether it has AI features or not.

Likewise, I've been doing building maps recently based on public data. We have a product where we need building maps overlayed on top of an outdoor map (long story). Creating those used to be a lot of manual work. Now it's easy. It's able to do visually complex things like taking scanned floor plan bitmaps, scaling and rotating them to match the outdoor map, and then drawing polygons for walls and rooms, classifying the rooms correctly, labeling them correctly. We actually are able to add custom 3D models as well. All via ChatGPT. It will generate the models, figure out how to render them, figure out building dimensions, room polygons, and all the rest. So, I can go from having nothing to a pretty slick building map in just a few prompts.

This is all fairly recent. Until GPT 6, most of this was science fiction. It would half work and but it would be all wrong. Now it's nailing it.

➕ show 4 replies
jjcm • today at 5:36 AM

Disclaimer: I left Figma to build a UI design tool based on image models. I'm so biased here it hurts, but I've also spent 10 hours a day for the last year in this domain.

Where Simon is correct is that yes, the end result is editable.

Where I'd argue that he's incorrect is whether the end result is good. Would you want that parrot on a tshirt?

LLMs are fantastic at implementing, but if they don't have something to work towards that's verifiable, they tend to fall flat. This is true of both web design as well as illustration. They are improving in both categories, but I think it's telling that for all the influencer vids you see out there making games, all of them have a common piece of advice: use an image model to define the style and have the LLM work towards that.

IMO this is the better approach. Where Simon is wrong is you don't have to choose one or the other. You can use image models to guide the LLM to create something that's editable and creatively robust.

Take a look at this: https://html.non.io/kakapo/

This is the result of using an image model to guide the visuals[1], and then building that image using a LLM. It isn't a binary decision. You can use the best parts of both models.

[1] Original file: https://linen.ai/app/canvas/0ef09ba7-e244-4918-97c0-9da1b3bc...

➕ show 8 replies
simonw • today at 4:47 AM

The key point I was trying to make here may risk being lost:

I think it's fascinating that Anthropic chose not to provide a text-to-image model at all - despite OpenAI's success with ChatGPT Images and Gemini's success with Nano Banana - and it's not hurting them, because regular Claude is good enough at producing visual design assets from code of the kind that business customers need.

➕ show 6 replies
bambax • today at 5:14 AM

> The end result is pretty solid

I think the result looks exactly like an LLM image, the kind we now see on so many restaurants' menus.

That said, yes, many things can be expressed in code, and in particular, 3D designs. It's extremely satisfying to have an LLM produce Python code for Blender or FreeCAD and edit those, or have it include parameters that can be immediately tweaked even without a strong understanding of what the code actually does.

➕ show 1 reply
EdwardDiego • today at 3:32 AM

I greatly like that Neon added the macrons to kākāpō that the original prompt lacked - the macron in Māori indicates the vowel is long and stressed. a = "ah",

- kākā = parrot, pō = night, e.g., night parrot.

- kaka = dress/clothing, po = nothing, it's not a word.

For another example of why macrons matter when trying to write Māori correctly (and I'm not casting aspersions on the author for not being familiar with Māori, many Kiwis struggle to get this right or don't even try)

- papa = buttock

- papā = to explode

- pāpā = father

So, it's nice to see that they trained their model on a (licenced... ...right?) Māori grammar guide / dictionary.

➕ show 5 replies
ulrikrasmussen • today at 11:19 AM

I'm looking at houses at the moment and use Claude extensively to quickly make Blender models of houses from floor plans and photos from the real estate ads. It can orient the house and simulate sunlight accurately enough that it correctly guessed when the photos were taken based on light patterns and whether the trees outside had leaves.

It's pretty great for getting a feel of the space with your own furniture in it, and for judging if removing or adding divider walls would make areas too dark or crammed. And everything is done using code, so the LLM can quickly make edits and side-by-side comparisons.

redanddead • today at 11:28 AM

The real problem is why havent image models gotten amazing yet? Feels like they've stalled out for a year or two.

If they were blowing SVGs out of the water we wouldn't even be making this comparison

interleave • today at 10:47 AM

Very much agree, it holds also for intricate technical drawings. And at “scale”, too.

For example, in my autoresearch projects I usually need a kind of “visual ELI5” so that I can follow along and learn from my research agent.

Here is a grid of architecture drawings, each one an experiment in my research: https://alexisrondeau.me/ballpark/gallery/inference-paths.ht...

jedbrooke • today at 6:22 AM

Am I going crazy or does the SVG that Neon generated have the same yellow tint issue that chatgpt image models have (had? idk if it’s still there).

➕ show 2 replies
_kb • today at 3:08 AM

I don’t think this is that surprising of an observation.

It’s the analogue of asking a model to one shot a PE binary vs code that can be iterated on. This is the same as if you’re working with humans too - some form of shareable, editable project (for any domain) is far better than rastered, rendered, or exported output.

Joeri • today at 7:11 AM

These days Claude can quite happily churn out visually compelling presentations and website designs, and Claude Design provides a full design system platform. All built around code-driven images!

My wife is studying graphic design in evening school, and they actually suggest claude for many parts of the design process, brainstorming design ideas, researching typography, making moodboards, and eventually judging designs. Not even claude design, just regular old claude chat, even the free version.

They don’t let it do the actual designing, but it’s apparently a great sparring partner for a designer.

vkvkakal • today at 8:28 AM

Whether a drawing is good is subjective. Set verification standards and check whether you've drawn it well, as you want.

For example, if you're drawing a character, you should create a character sheet or describe the character in detail with text. Then check whether each requirement is met.

Mazer23 • today at 7:47 AM

We’re making a similar bet in the 3D space. We’re working on text to cad model generation using llms and competing with direct to mesh systems meshy.ai.

The results aesthetically often look much much worse, I wouldn’t use text to cad for things like sculptures or figurines… but if you want a cad model where you can adjust and edit to your hearts content llms writing code for 3d models is getting really really good.

Our app doesn’t just create a 3d model directly, it actually creates an interactive app you can continue to use, so the custom controls are all exposed to anybody that wants to tweak it without needing an llm to continue to edit it. You can check it all out here: http://partforge.ai

Lerc • today at 4:57 AM

I think it might work best when you have control nets and similar tools that let you control the composition of image generators.

Use the Code driven illustrations to lay out control net imaages to guide the generation.

I covered this in a talk about three years ago using hand drawn control images.

An example from my slides

https://fingswotidun.com/AITalk/images/panel/ColourGuide.png

https://fingswotidun.com/AITalk/images/panel/Depth.png

https://fingswotidun.com/AITalk/images/panel/Edge_Trimmed_Em... (this one isn't the image actually used, it has had emphasis applied to make it visible as a slide)

Producing these as candidates.

https://fingswotidun.com/AITalk/images/panel/refined.gif

Bear in mind that is is from around August 2023. Things are a little more advanced now.

➕ show 1 reply
bartread • today at 8:18 AM

I’ve found Opus 5.5 to be pretty competent when it comes to creating and working with SVGs.

LLMisms still creep into text labels, but they’re quickly fixed in Inkscape or by editing the files directly. It’s even pretty good at following the visual standards established by the broader project or other images generated so far.

It’s saved me a huge amount of time messing around (usually unhappily and with unsatisfactory results) hand-drawing illustrations.

cityoflight • today at 8:05 AM

I have made experiences using the vector programming language Asymptote in conjunction with Sol 6.1 to generate drawings or sketches of mathematical/physical concepts or geometries. I did a cursory comparison of SVG, pyxl, TikZ, CetZ with different models and looked at output and price (I am on API credits). Usually, I start the models off with a hand drawn sketch and some description, sometimes with one or several reference image.

The end result is not human-editable in the strict sense. I usually can do the refinement with a cheap model like Luna, though, and the Asymptote is relatively compact and readable.

The models do not seem to be able to come up with good drawings themselves. They seem to lack the sense to distinguish between the important and less important aspects of a concept. But once I give them an idea and refine that I get a drawing which conveys the concept much better to other humans than my shoddy sketch or poor slide could do.

So, I am very excited about this aspect of LLM usage. Because it furthers human understanding and scientific communication between humans. Instead of replacing it.

throwaway63467 • today at 9:10 AM

Yeah same experience AI images or videos are mostly crap but using AI to programmatically create assets for rendering or illustrations is much better or let’s say at least you can incrementally improve them.

kmaitreys • today at 4:36 AM

I had similar thoughts and decided to try to make some graphics (like a flowchart or workflow of a process) for my work through Ipe[1] by conversing with an AI agent. It took considerable amount of time iterating with the agent and even after I thought I had a good starting point, upon asking from my colleagues, they still felt the image was quite AI-ish.

I think it's very much a skill issue but I'm also not entirely convinced the models are good at this. The benefit is obviously that the graphic is programmatically defined so you can do the final polishing from the setup given by the models.

[1]: https://ipe.otfried.org/

➕ show 1 reply
blueblazin • today at 4:34 AM

At least the example poster doesn’t look good to me. Instantly identifiable as AI generated

➕ show 1 reply
demibabs • today at 4:59 AM

I pretty much entirely agree with the point you’re trying to make here, but I still hate it.

YouTube (and to a degree, projects on HN and gamedev related spaces) have been absolutely flooded with these new types of AI-generated artworks, visuals and animations. Worse still, almost everyone making them using the exact same model (Opus 5.5).

They’re impressive the first time you see them, but this Claude-SVG artstyle has already gotten exceedingly tiring and makes me want to click off instantly.

It feels like each new capability is just speedrunning turning the whole internet into slop :(

➕ show 1 reply
gsanroma • today at 8:15 AM

This may extrapolate to AI generated video too once 3D generation and rendering comes closer to reality (which we may not be too far off, seeing GTA6)

orbifold • today at 8:03 AM

Why are these models so obsessed with the center dot?

jansan • today at 11:27 AM

SVG is great as a final rendering or output format, rather than a source/authoring format. It excels at describing vector images, but lacks higher-level parametric modeling features.

For my own tool https:www.hyvector.com I decided to extend the SVG format with new modeling features like variable width strokes, non-destructive corner rounding, path offsetting, etc., and bake the rendering result into the exported SVG file together with the non-destructive source.

marhee • today at 8:24 AM

At this point I just can't look at these AI images anymore. Am I the only one?

First, the styling is (still) always the same and just too polished and boring.

That might be subjective, of course.

The real reason, and why they stand out as an AI image, may be because to create such an image by hand is just too involved and laborious to match the effort of the article that uses it. That's always the bottom-line with these kind of images, and makes me ignore them and most articles that uses them.

➕ show 1 reply
poszlem • today at 10:50 AM

This also has the added benefit of not being "watermarked".

wcldavid • today at 7:17 AM

agree with this.

but for ui design i think generating the image first and then having an agent build it works better, image models are just more creative

sourav_biswas • today at 2:42 AM

Any day. I see this as editability vs polish.

KeplerBoy • today at 8:54 AM

This seems already widely known among academics. Nobody would have a paper figure generated by a diffusion model (okay, some do and I always sigh at those "infographics" with compression artifacts and garbled text), but tell it what you want and point it at your maplotlib it gives stellar results you can iterate on in tandem with the models.

gobdovan • today at 5:16 AM

That's a weird take on the bitter lesson, image models are generally regarded as a separate architecture from LLMs, not a specialist version of a LLM that happens to only work on images. From the linked wiki article, 'general approaches ... are better at taking advantage of the falling cost of computation over time'. But here you don't need to tune your image model any more than you need to tune your LLM.

I can as easily claim that generating image from code is a more specialist way than simply drawing pixels so I'll write exactly this article but in reverse when the trend reverses.

➕ show 1 reply
measurablefunc • today at 4:33 AM

I don't think this is true. If you don't believe me then try to get any of the frontier models to create a rigged character in blender w/ its mcp server and see how far you get.

➕ show 3 replies
PostOnce • today at 4:24 AM

This sucks; here's why:

The kakapo is deformed. It's wrong artistically, anatomically, and physically; it's ugly. It has whiskers coming out of its beak. It is not patterned like a kakapo. Its feet are wrong. The berries are floating in midair, and the leaves on the branch make no sense.

It says KAKAPO in huge text, but then "recovery programme * protect the night parrot" in in the same tiny box, where it should probably say "recovery programme" in larger text so "kakapo recovery programme" is all one phrase.

The macrons in kākāpo are part of the letter, so there should be space above them but they overlap what should be a divider. Crowding makes it look bad.

The poster is kind of nonsensical and isn't good at promoting anything. It would be acceptable if a middle-schooler produced it at school, but as a product coming from an adult with help from a supercomputer? Garbage.

What most people think is "good enough" isn't actually good enough. LLMs don't mean we can just stop giving a shit about the details.

➕ show 1 reply
cat5e • today at 10:27 AM

Maybe I’m reading too much HN… ask yourself, is this impressive to anyone with artistic ability? I could draw something better looking with more style in a couple of minutes. And I’m, (like most on this site) and an engineer… lol.

AmazingTurtle • today at 11:19 AM

Yeah why don't you post it 3 more times please

qprofyeh • today at 9:43 AM

Thought the image-as-code take was somewhat interesting technically, especially the honesty about the limitations and a mention of Ideogram later on, but the last $ection revealed what this blog is actually about.

sinuhe69 • today at 4:52 AM

>>"I was convinced a specialist image model was necessary to serve customers with design problems. It turns out the text-output LLMs just kept getting more capable until they could handle visual design by writing code."

Clearly the AI labs are now following the path that universal coding ability will solve (almost) everything.

amval • today at 7:41 AM

The poster fails at communicating and it fails at being visually appealing.

(Please don't answer to me again that the result is editable. Sure?)

To write a whole post around the concept of this being "pretty solid" is, frankly, embarrassing. I am not sure this makes the point you think is making.

➕ show 1 reply
dr_dshiv • today at 10:10 AM

Not the bitter lesson again!

spragl • today at 7:01 AM

A flattened parrot with whiskers.

mwkaufma • today at 5:53 AM

"the end result is pretty solid" looks like shit

badsectoracula • today at 6:55 AM

I've found AI being able to make illustrations and even simple 3D unexpectedly useful - and the neat bit is that you don't really need frontier models for that (at least as long as you don't expect that much - though IMO, from watching various youtube videos by people who make stuff with them all the time, even frontier models do not produce even a fraction of what a skilled designer/artist can do, but at the same time depending on what you want to do, what the models do can be good enough).

Recently i had Qwen 3.8 27B (Unsloth's UD-Q4_K_XL) to read the code of my Little Immersive Engine's renderer (which is written in Free Pascal), write down how it works and then take some older demo/game test i had it made of an FPS in a forest where you have to carry batteries to towers to activate a radio while avoiding zombies and apply the algorithms for the lights and shadows in Little Immersive Engine's renderer (which use a Forward+-ish approach to lighting and a tiered shadowmap atlas for shadows) in the demo/game to create a scene you walk around in a forest at night with several hundred colored fireflies casting shadows[2].

All the assets are made procedurally with code using whatever primitives Qwen 3.8 27B thought to use for making the assets. They're very simple and certainly not good enough to use in a game (at least as-is, i know some games use flat colored untextured low poly styles though TBH i'm not a fan of them) but they're fine for test scenes, demos and as placeholders.

After that i had it write down the algorithms again this time using the new code as reference[3] - then realizing it kinda reads like a presentation, i had it create a presentation (sort of, i explicitly told it to use prose instead of bullet points) with animations explaining whatever each page/slide talks about[4] (of course if the actual text/presentation is understandable to someone who doesn't know the algorithms is debatable - personally i already know them so i can't tell :-P and TBH at that point i was just playing around, i think most graphics programmers would figure out how it works just by pressing the I and U keys to cycle through the light/shadow visualizations in the demo).

FWIW none of the above were one shots but had several back-and-forths with the model.

EDIT: fun fact, for the FPS demo in [1] i gave it some image with a swampy forest and zombies i made using some online imagegen (i think it might have been Google's "AI mode") but i forgot that it didn't had vision available at the time and it wrote a Python script to analyze the image and figure out color tone, rough shapes, where the sunlight comes from, etc :-P.

[0] http://runtimeterror.com/pages/iv/images/ae853c6fda869ff31d8...

[1] http://runtimeterror.com/pages/iv/images/70f9c82cb8973be0878...

[2] https://htmldemos-890a23.gitlab.io/fireflies/fireflies.html

[3] https://htmldemos-890a23.gitlab.io/fireflies/ALGORITHMS.txt

[4] https://htmldemos-890a23.gitlab.io/fireflies/algorithms-deck...

DubiousPusher • today at 6:35 AM

I'm an engineer on a team of mostly designers. I use this approach a lot for building infographics to communicate my work. These need to be technically accurate about details like what encompasses what, what's on top of what, what's in a specific swim lane, etc. AI images just can't handle this kind of specificity. So generating something with editable forms like SVG or code layout really helps with this.

askadityapandey • today at 8:37 AM

"more useful" lmao no

yieldcrv • today at 7:23 AM

this is 8 months out of date and a rudimentary example of agentic capabilities

well, thanks for bringing awareness, it looks like the audience here needs it, but totally not sold by your example

mschuster91 • today at 8:20 AM

> These days Claude can quite happily churn out visually compelling presentations and website designs, and Claude Design provides a full design system platform. All built around code-driven images!

Oh hell no. It's still all immediately recognizable, uncanny valley offputting slop.

octoberfranklin • today at 6:41 AM

... says the guy who has a fetish for bicycling pelicans

paganel • today at 7:44 AM

> the end result is pretty solid:

The end result looks like the other run-of-the-mill AI images, meaning it looks like shit. But what can one expect? These are nerds talking about style, Trump brandishing a red bra at one of their AI idols was too kind to them.

darioshi888 • today at 9:40 AM

[dead]

🔗 View 14 more comments