TGViewer
Good dev knows Good dev knows @gooddevknows · 2K subscribers
Post #194 2.45K
1to100 🚀

Last week, I did not have much spark to work on 1to100. My kids, my wife, and me were sick in turns and this created not the best conditions to work 📉:)

Nevertheless, I managed to do something interesting. 1to100 app is supposed to help users create their own digital art. Make pictures of the numbers from 1 to 100 and then receive their own digital art with a composition of these numbers. I had to create a code that compiles that mosaic from numbers. So I decided to work on that and also involve AI.

📝I created my own digital art:
1. I found a list of 100 art styles
2. I asked OpenAI to generate 100 images, one for each number from 1 to 100 using the specific style. As simple as:
const image = await openai.images.generate({
model: "dall-e-3",
prompt: `Draw a big number ${i+1} at the center of the picture and do not draw anything else. Use ${styles[i]}.`,
});

3. Using sharp lib and chatGPT I wrote a script to combine these numbers into the 10x10 mosaic

Then I had to check numbers manually and regenerate some of them; for some, I had to do it several times. For some specific numbers (58, 63, 93), I failed to get proper pictures. It seems that it's a model limitation; despite a number of my attempts, it is not able to generate a clear number.

The final image size is 260 MB, but on the one I attach, it's also possible to see different styles and be impressed how well, in general, dall-e-3 does its job. All the generations, including the regeneration attempts, costed me about 8$.
  • 👍 9
  • ❤ 7
  • 🎉 1
More from @gooddevknows
  1. Aug 27, 2026🛰 Я придбав Starlink! Ще поза-вчора вранці я не збирався купляти ніякий Starlink. Але, пр…
  2. Jul 1, 2026photo post
  3. Jul 1, 2026✨ Crash Course: Storytelling для інженерів ✨ 📅 9 — 13 липня 2026 1️⃣ Чому історії працюют…
  4. Jul 1, 2026Post #278
  5. Apr 1, 2026We have one ticket left for: https://fwdays.com/event/tech-lead-course-5 . Code LIFE_BY_PP…
  6. Mar 9, 2026Hi friends, For those who have missed it, I now regularly post in my 🇺🇦 channel: https:/…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →