<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Oldlee</title>
    <description>The latest articles on DEV Community by Oldlee (@laoleedesign).</description>
    <link>https://dev.to/laoleedesign</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4178208%2F3f55d89b-564b-4d00-a865-d2cca4b0689c.png</url>
      <title>DEV Community: Oldlee</title>
      <link>https://dev.to/laoleedesign</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/laoleedesign"/>
    <language>en</language>
    <item>
      <title>Fitting an animated emote under Discord's 256 KB: which lever actually saves bytes</title>
      <dc:creator>Oldlee</dc:creator>
      <pubDate>Sun, 15 Nov 2026 11:10:57 +0000</pubDate>
      <link>https://dev.to/laoleedesign/fitting-an-animated-emote-under-discords-256-kb-which-lever-actually-saves-bytes-3eih</link>
      <guid>https://dev.to/laoleedesign/fitting-an-animated-emote-under-discords-256-kb-which-lever-actually-saves-bytes-3eih</guid>
      <description>&lt;p&gt;When you export an animated emote you have three levers to make the file smaller: fewer colours, fewer frames, or a smaller canvas. Platforms fix the canvas for you (Twitch wants 112/56/28 px, Discord wants 128 px), so in practice it comes down to colours versus frames. I wanted to know which one is worth reaching for first, so I measured it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Discord custom emoji: under &lt;strong&gt;256 KB&lt;/strong&gt;, static or animated.&lt;/li&gt;
&lt;li&gt;Twitch animated emote, manual upload: three GIFs at 112, 56 and 28 px, &lt;strong&gt;up to 512 KB each&lt;/strong&gt;, at most 60 frames. Auto-resize upload: one square file up to 1 MB.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both come from the platforms' own help pages; check them before you rely on my numbers, they change.&lt;/p&gt;

&lt;h2&gt;
  
  
  The ladder I use
&lt;/h2&gt;

&lt;p&gt;The encoder gets a byte budget and walks down a fixed ladder until the file fits:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;256 colours, all frames&lt;/li&gt;
&lt;li&gt;128 colours&lt;/li&gt;
&lt;li&gt;64 colours&lt;/li&gt;
&lt;li&gt;128 colours, every other frame dropped (delay doubled so the loop keeps its speed)&lt;/li&gt;
&lt;li&gt;64 colours, every other frame dropped&lt;/li&gt;
&lt;li&gt;32 colours, every other frame dropped&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If nothing fits, the smallest attempt is returned and flagged as over budget, so the UI can say so instead of silently shipping a file that will be rejected. Each result also records what it gave up ("64 colors", "every other frame dropped"), which is what lets you show the trade-off to the user.&lt;/p&gt;

&lt;p&gt;Two details that matter more than they look:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One shared palette for all frames&lt;/strong&gt;, built from opaque pixels only, with the transparent slot reserved as the last index. Per-frame palettes tend to flicker and cost more bytes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Binarise alpha first.&lt;/strong&gt; GIF has 1-bit transparency, so half-transparent edge pixels have to be decided up front, otherwise they quantise into odd fringe colours.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The core of it, with gifenc:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;ATTEMPTS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;colors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;256&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;drop&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;colors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;128&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;drop&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;colors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;64&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="n"&gt;drop&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;colors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;128&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;drop&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;colors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;64&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="n"&gt;drop&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;colors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;32&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="n"&gt;drop&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="no"&gt;ATTEMPTS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;datas&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;drop&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;frames&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;frames&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;delay&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;drop&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;baseDelay&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;baseDelay&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;bytes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;encodeGif&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;datas&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;delay&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;colors&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// shared palette, alpha binarised&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;maxBytes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tradeoffs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;describe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nf"&gt;keepSmallest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;smallestAttemptFlaggedOverBudget&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What it actually saves
&lt;/h2&gt;

&lt;p&gt;I re-implemented the same ladder in Python/Pillow (not the production encoder, so absolute sizes will differ a little) and ran it on eight 8-frame, 120 ms-per-frame emote loops (a cartoon corgi doing Hi, GG, LOL, Hype, Love, Sad, Sip, Sleep), downscaled to 128 px with a transparent background. Sizes in KB, range across the eight files:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Size&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;256 colours, 8 frames&lt;/td&gt;
&lt;td&gt;46–52 KB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;128 colours&lt;/td&gt;
&lt;td&gt;40–46 KB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;64 colours&lt;/td&gt;
&lt;td&gt;33–38 KB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;128 colours, 4 frames&lt;/td&gt;
&lt;td&gt;20–23 KB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;64 colours, 4 frames&lt;/td&gt;
&lt;td&gt;16–19 KB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;32 colours, 4 frames&lt;/td&gt;
&lt;td&gt;11–15 KB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Takeaways from this small sample:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dropping every other frame roughly halves the file.&lt;/strong&gt; One step, about 40–50% off.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Halving the palette only buys about 10–15% per step.&lt;/strong&gt; 256 to 64 colours saved roughly a quarter of the size.&lt;/li&gt;
&lt;li&gt;For a short loop like this, the 256 KB limit isn't even close: the first rung already passes with ~50 KB. The ladder earns its keep on &lt;strong&gt;long source clips&lt;/strong&gt;. AI video tools and screen recordings hand you 60–120 frames, and there frame count is the lever that decides whether you land under 256 KB.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So my rule is: if the file is over budget, count the frames first. Trim colours only for the last few KB, because it is the lever that visibly costs you quality (banding on gradients and soft shadows) while saving the least.&lt;/p&gt;

&lt;h2&gt;
  
  
  Caveats
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Eight files from one character is a small sample. The ratios should hold for similar flat-colour cartoon art; photographic or heavily gradient content compresses differently.&lt;/li&gt;
&lt;li&gt;Dropping frames changes the feel of fast motion. Doubling the delay keeps the loop duration the same, but a 4-frame hype loop is choppier than an 8-frame one. Preview it at 28 px, which is how most viewers see it.&lt;/li&gt;
&lt;li&gt;Twitch also caps animated emotes at 60 frames and asks that they not flash more than three times per second. Those are separate checks from file size.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why I care
&lt;/h2&gt;

&lt;p&gt;I build a tool that turns one character image into a matching set of animated Twitch and Discord emotes, and the export step has to produce files that pass these limits every time. If you want to see the output, or just need to check or resize your own GIFs, there is a free in-browser checker and resizer at &lt;a href="https://animatedemotemaker.com" rel="noopener noreferrer"&gt;https://animatedemotemaker.com&lt;/a&gt; (no sign-up for the free tools). The tool uses AI to generate the animations; this article was drafted with AI assistance and the measurements above were run on real files.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>gamedev</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Building an AI animated emote maker: sizes, limits and what Twitch rejects</title>
      <dc:creator>Oldlee</dc:creator>
      <pubDate>Fri, 06 Nov 2026 13:23:17 +0000</pubDate>
      <link>https://dev.to/laoleedesign/building-an-ai-animated-emote-maker-sizes-limits-and-what-twitch-rejects-1e5h</link>
      <guid>https://dev.to/laoleedesign/building-an-ai-animated-emote-maker-sizes-limits-and-what-twitch-rejects-1e5h</guid>
      <description>&lt;p&gt;I've been building a tool that turns one selfie or character picture into a set of animated emotes for Twitch and Discord. The AI part turned out to be maybe half the work. The other half is boring and important: making sure every file actually uploads. This post is the checklist I wish I'd had on day one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers that matter
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Twitch (emotes)&lt;/strong&gt; — from Twitch's own emote guidelines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Static emotes are PNG, animated emotes are GIF.&lt;/li&gt;
&lt;li&gt;Two upload routes: &lt;strong&gt;auto-resize&lt;/strong&gt; (one square file between 112×112 and 4096×4096 px, max 1 MB) or &lt;strong&gt;manual&lt;/strong&gt; (three files: &lt;strong&gt;112×112, 56×56 and 28×28 px&lt;/strong&gt;).&lt;/li&gt;
&lt;li&gt;In manual mode an animated GIF can be up to 512 KB per size.&lt;/li&gt;
&lt;li&gt;Animated GIFs can have &lt;strong&gt;at most 60 frames&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Square only, and a fully transparent background is what Twitch asks for.&lt;br&gt;
&lt;strong&gt;Discord (custom emoji)&lt;/strong&gt; — from Discord's support page:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Under 256 KB&lt;/strong&gt; per emoji, static or animated. This is the limit that bites hardest.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;JPEG, PNG, GIF or WEBP. Names need at least 2 characters, letters/numbers/underscores only.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;50 static slots by default; animated slots depend on Nitro / server boosts.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Animated Twitch sub emotes synced into a server show up &lt;strong&gt;static only&lt;/strong&gt;, so animated ones have to be uploaded by hand.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;7TV and BetterTTV&lt;/strong&gt; — these change more often, so check the uploader before you trust any table (including mine):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;BTTV is shown at about 28 px tall in chat; a 112×112 source is the safe choice, PNG or GIF, keep it under 1 MB.&lt;/li&gt;
&lt;li&gt;7TV accepts WebP, GIF, PNG and AVIF and serves 1x–4x versions, so a 128×128 square source works well. Its file limit is far more generous than Discord's.
## What actually gets rejected (or looks bad)&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Not square.&lt;/strong&gt; A 112×110 GIF from a sloppy crop is an instant fail. Pad to square, never stretch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Too many frames.&lt;/strong&gt; AI video and GIF tools love 80–120 frames. Twitch caps at 60, so drop frames evenly instead of cutting the loop short; otherwise the loop jumps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Too heavy for Discord.&lt;/strong&gt; A 112 px GIF that is fine on Twitch can still be over 256 KB. What helped most, in order: fewer colours in the palette, fewer frames, then smaller dimensions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flashing.&lt;/strong&gt; Twitch's guidelines say animated emotes should not flash more than 3 times a second. Fast "hype" loops trip this easily.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unreadable at 28 px.&lt;/strong&gt; Not a hard reject, but it is how most viewers see the emote. Thin outlines and small text disappear. Preview at 28 px before you ship.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A meaningless first frame.&lt;/strong&gt; Viewers with animated emotes turned off see a still. If frame 1 is a blink or a blank pose, the emote reads as nothing.
## The generation flow&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The part that took longest was keeping the emotes looking like &lt;strong&gt;one&lt;/strong&gt; character. Generating each emote straight from the selfie gives you eight slightly different people. What works better:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Lock the character first.&lt;/strong&gt; From the upload, make one reference character (optionally restyled: chibi, anime, 3D toy, pixel art, flat sticker) and treat it as the single source of truth.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generate every emote from that locked character&lt;/strong&gt;, not from the original photo: Hi, GG, LOL, Hype, Love, Sad, Sip, Sleep…&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Post-process each animation:&lt;/strong&gt; cut the background, slice the loop, square it, resample frames to ≤60.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Export per platform:&lt;/strong&gt; 112/56/28 for Twitch, a 128 px version squeezed under 256 KB for Discord, and validate every file against the limits above before it goes into the ZIP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fail honestly.&lt;/strong&gt; If a generation is broken, the user should not pay for it, so failed runs refund their credits.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 4 is pure image processing and costs nothing to run, yet it is the step that decides whether a streamer can use the result at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Treat platform limits as unit tests: validate every exported file, every time.&lt;/li&gt;
&lt;li&gt;Discord's 256 KB, not Twitch's sizes, is usually the real constraint.&lt;/li&gt;
&lt;li&gt;Consistency comes from a locked reference, not from better prompts.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to see the result of this pipeline, the tool is here: &lt;a href="https://animatedemotemaker.com" rel="noopener noreferrer"&gt;https://animatedemotemaker.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>ai</category>
      <category>gamedev</category>
    </item>
    <item>
      <title>I'm a designer who kept chasing final payments, so I built a tiny contract + invoice tool</title>
      <dc:creator>Oldlee</dc:creator>
      <pubDate>Tue, 03 Nov 2026 18:29:59 +0000</pubDate>
      <link>https://dev.to/laoleedesign/im-a-designer-who-kept-chasing-final-payments-so-i-built-a-tiny-contract-invoice-tool-4cmm</link>
      <guid>https://dev.to/laoleedesign/im-a-designer-who-kept-chasing-final-payments-so-i-built-a-tiny-contract-invoice-tool-4cmm</guid>
      <description>&lt;p&gt;I'm Lee, a brand and packaging designer. For years the hardest part of freelancing wasn't revisions or briefs. It was the last 40%: the final payment.&lt;/p&gt;

&lt;p&gt;The pattern was always the same. The client approves the work, I send files, and the balance invoice sits in their inbox for weeks. I never had a clean contract, so I never had much to point to.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;&lt;a href="https://leostu.com" rel="noopener noreferrer"&gt;Leostu&lt;/a&gt;&lt;/strong&gt;, a deliberately small order desk for independent designers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create an order with line items and a deposit (30–60%, or pay in full).&lt;/li&gt;
&lt;li&gt;Leostu generates the contract and the invoice (English or Chinese, 14 currencies).&lt;/li&gt;
&lt;li&gt;The client gets one link and an access code. They read the agreement, sign by hand on their phone with no account, and see exactly how to pay you.&lt;/li&gt;
&lt;li&gt;Invoices show your own bank, WeChat Pay, Alipay, DuitNow or PayNow details and QR codes. Money never passes through Leostu.&lt;/li&gt;
&lt;li&gt;Delivered-but-unpaid work stays on a "who owes you" list, with pre-written reminders ready to copy.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What it doesn't do, on purpose: team accounts, card processing, proposals/CRM, time tracking. The signature is a signing record (name, drawn signature, time, IP, a fingerprint of the contract), not a certified e-signature.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pricing:&lt;/strong&gt; free forever for 3 active orders at a time. Pro is $5/month (or $45/year). There are also free contract, invoice and payment-reminder generators with no sign-up: &lt;a href="https://leostu.com/tools" rel="noopener noreferrer"&gt;https://leostu.com/tools&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd really like blunt feedback from other freelancers: what's the one thing that would make you actually switch from a Google Doc + PDF invoice?&lt;/p&gt;

&lt;p&gt;— Lee, founder of leodesign&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>freelance</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
    <item>
      <title>I built an accessibility tool that haunts your designs — with Kiro, for Kiroween 2026</title>
      <dc:creator>Oldlee</dc:creator>
      <pubDate>Sat, 31 Oct 2026 08:22:26 +0000</pubDate>
      <link>https://dev.to/laoleedesign/i-built-an-accessibility-tool-that-haunts-your-designs-with-kiro-for-kiroween-2026-2bab</link>
      <guid>https://dev.to/laoleedesign/i-built-an-accessibility-tool-that-haunts-your-designs-with-kiro-for-kiroween-2026-2bab</guid>
      <description>&lt;p&gt;&lt;em&gt;This post is written as part of the Kiroween 2026 hackathon.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I'm Oldlee, a packaging and product designer in Malaysia. For years I've shipped contact-lens boxes, retail walls and landing pages, and one bug keeps coming back: text nobody can read. Pastel on pastel. Light grey on white. White on mint. Designers call it "ghost text". So for Kiroween I built &lt;strong&gt;Ghostlight&lt;/strong&gt;, a tool that finds it in any screenshot and exorcises it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Drop a screenshot or packaging proof.&lt;/strong&gt; A "ghost light" sweeps it and raises a ghost wherever text falls below the WCAG contrast line.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exorcise&lt;/strong&gt; repaints each ghost with the nearest passing colour, changing only OKLCH lightness, so the hue and the brand stay.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Possession&lt;/strong&gt; re-scans the image the way people with colour-vision deficiency or low vision see it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Séance palette&lt;/strong&gt; checks every text/background pair and exports CSS variables.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fje2gxc6kutnb4iiu2l44.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fje2gxc6kutnb4iiu2l44.png" alt="Ghostlight accessibility tool highlighting ghost text on packaging" width="800" height="385"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Live demo: &lt;a href="https://old.lat/ghostlight/" rel="noopener noreferrer"&gt;https://old.lat/ghostlight/&lt;/a&gt;&lt;br&gt;
Code: &lt;a href="https://github.com/Oldleeo/ghostlight" rel="noopener noreferrer"&gt;https://github.com/Oldleeo/ghostlight&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How Kiro changed the way I built it
&lt;/h2&gt;

&lt;p&gt;I used Kiro CLI on a remote Linux box. I'm a designer first, so my usual way of coding with AI is: describe, generate, fix, repeat. Kiro pushed me to write steering docs before any code.&lt;/p&gt;

&lt;p&gt;The line that mattered most was one sentence in &lt;code&gt;tech.md&lt;/code&gt;: &lt;strong&gt;ratios are floored, never rounded up.&lt;/strong&gt; A 4.497 is a fail. Kiro carried that one rule into the requirements, the design, the code and a property-based test without me repeating it once.&lt;/p&gt;

&lt;p&gt;The spec was the second surprise. From a one-paragraph brief Kiro wrote numbered requirements, a design with correctness properties, and a task plan. Then real screenshots broke it: gradients and rounded box corners were flagged as ghosts. Instead of patching, I revised the spec twice (text-likeness, anti-aliasing core, "glyphs cross rows and columns, corners don't") and let Kiro re-implement against it. The landing-page sample went from 24 flagged places, many of them box edges, to 16 places that are all real text.&lt;/p&gt;

&lt;p&gt;I also set up two custom agents: &lt;strong&gt;ghost-smith&lt;/strong&gt; builds only from &lt;code&gt;tasks.md&lt;/code&gt;, and &lt;strong&gt;ghost-auditor&lt;/strong&gt; is read-only and runs Ghostlight's engine against Ghostlight's own UI. Every pair passes. An accessibility tool that fails its own audit would be a bad joke.&lt;/p&gt;

&lt;p&gt;Property-based tests caught a bug unit tests didn't: exorcising white text on a mint button painted a black bar on the white label next to it. Now there's a property for that.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;Font-size awareness, a Figma plugin, and batch scans of whole design systems.&lt;/p&gt;

&lt;p&gt;If you design anything with text on it, try a screenshot on Ghostlight and see how many ghosts you've been living with.&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>a11y</category>
      <category>webdev</category>
      <category>design</category>
    </item>
  </channel>
</rss>
