<?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: FrameSprite</title>
    <description>The latest articles on DEV Community by FrameSprite (@framesprite).</description>
    <link>https://dev.to/framesprite</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%2F4097018%2F2bcf1248-21d7-4e92-8223-632e4a9b99e2.png</url>
      <title>DEV Community: FrameSprite</title>
      <link>https://dev.to/framesprite</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/framesprite"/>
    <language>en</language>
    <item>
      <title>A .png filename is not a PNG: preflight frames before atlas packing</title>
      <dc:creator>FrameSprite</dc:creator>
      <pubDate>Thu, 19 Nov 2026 12:10:49 +0000</pubDate>
      <link>https://dev.to/framesprite/a-png-filename-is-not-a-png-preflight-frames-before-atlas-packing-4b5l</link>
      <guid>https://dev.to/framesprite/a-png-filename-is-not-a-png-preflight-frames-before-atlas-packing-4b5l</guid>
      <description>&lt;p&gt;A PNG-only sprite packer should reject a file that decodes as JPEG even if its name ends in .png. A general-purpose preview will often render both, so a successful thumbnail only tells you that a reader recognized the bytes. Validate the format where the sequence enters the pipeline, before turning each frame into RGBA or packing the atlas.&lt;/p&gt;

&lt;p&gt;Disclosure: Generated with AI for the FrameSprite team. The article links to our own documentation. The examples use synthetic files.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reproduce the mismatch
&lt;/h2&gt;

&lt;p&gt;This example creates two small images named with the same extension. Each image is written with an explicit encoder. The import function restricts the decoder, loads the pixels while the file is open, and checks a separate one-frame policy for still-image deliveries.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;tempfile&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;TemporaryDirectory&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="no"&gt;PIL&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Image&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;UnidentifiedImageError&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;read_still_png&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nc"&gt;Image&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;formats&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"PNG"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;getattr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;image&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"n_frames"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{path.name}: expected one still frame"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;image&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&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="n"&gt;image&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;convert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"RGBA"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nc"&gt;TemporaryDirectory&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;folder&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;true_png&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;folder&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="s2"&gt;"idle_001.png"&lt;/span&gt;
    &lt;span class="n"&gt;mislabeled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;folder&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="s2"&gt;"idle_002.png"&lt;/span&gt;
    &lt;span class="n"&gt;image&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Image&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"RGB"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&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="mi"&gt;31&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;157&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;92&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;image&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;true_png&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;format&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"PNG"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;image&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mislabeled&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;format&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"JPEG"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nc"&gt;Image&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mislabeled&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;preview&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"General decoder:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;preview&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;format&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;read_still_png&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;true_png&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mode&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"RGBA"&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nf"&gt;read_still_png&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mislabeled&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nc"&gt;UnidentifiedImageError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"PNG-only gate rejected:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mislabeled&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;AssertionError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"JPEG was accepted by the PNG-only gate"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Give the artist a frame-level error
&lt;/h2&gt;

&lt;p&gt;Keep the original filename and the expected format in the rejection message. If your diagnostics use a separate general reader to identify the actual format, keep that diagnostic outside the acceptance path. An unreadable stream should get a different message from a readable JPEG, and a multi-frame PNG should get a still-frame-policy message. Run the gate for the entire selection before replacing the last good atlas. If a team intentionally supports JPEG inputs, define their separate rules for transparency and keep that decision visible in the import settings.&lt;/p&gt;

&lt;p&gt;For a review fixture, use a valid still PNG, a JPEG under a PNG filename, and a PNG whose pixel data is truncated. The first should pack, the second should fail format selection, and the third should fail validation or decoding. Add a multi-frame APNG if your input rule requires one file per pose. Validate dimensions, order and expected frame count as separate acceptance steps.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.open" rel="noopener noreferrer"&gt;Pillow's Image.open reference&lt;/a&gt; explains format restriction and deferred loading. The &lt;a href="https://www.framesprite.com/guides/png-sequence-extension-decoder-format-preflight?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guides202&amp;amp;utm_content=decoder-gate" rel="noopener noreferrer"&gt;FrameSprite PNG sequence preflight guide&lt;/a&gt; has the companion decoder-format example and downloadable verification materials.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>A sprite-frame array can be incomplete even when every() passes</title>
      <dc:creator>FrameSprite</dc:creator>
      <pubDate>Wed, 18 Nov 2026 22:13:13 +0000</pubDate>
      <link>https://dev.to/framesprite-team/a-sprite-frame-array-can-be-incomplete-even-when-every-passes-3mg3</link>
      <guid>https://dev.to/framesprite-team/a-sprite-frame-array-can-be-incomplete-even-when-every-passes-3mg3</guid>
      <description>&lt;p&gt;When integrating an AI sprite animation generator into a game-art workflow, distinguish a generation result from a complete local frame registry. A four-frame job can leave an array whose length is four while only two indexes have values. JavaScript's &lt;code&gt;every()&lt;/code&gt; can still return true.&lt;/p&gt;

&lt;p&gt;The immediate debugging question is: &lt;strong&gt;did we validate every expected slot, or only the slots the iterator visited?&lt;/strong&gt; This is a receiving-code problem; it does not establish that a particular generator lost any frames.&lt;/p&gt;

&lt;h2&gt;
  
  
  Length reserves indexes; it does not prove arrival
&lt;/h2&gt;

&lt;p&gt;Here is a deliberately incomplete registry:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;frames&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&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="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"idle-0.png"&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="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"idle-3.png"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;visits&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;naive&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="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&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;every&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;visits&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"string"&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="c1"&gt;// naive is true; visits is 2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every" rel="noopener noreferrer"&gt;MDN reference&lt;/a&gt; documents that &lt;code&gt;every()&lt;/code&gt; skips empty slots. There is no contradiction: both visited entries satisfy the predicate, but two required entries were never visited.&lt;/p&gt;

&lt;p&gt;Do not filter missing values before checking completeness. That can discard the evidence you need to report which required frames are absent. Keep the authoritative expected population separately from the results that happened to arrive.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make index presence a separate gate
&lt;/h2&gt;

&lt;p&gt;For a strict four-slot contract, an index loop can ask the intended question directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;completeNames&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="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isArray&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="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="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;false&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;let&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;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&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="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hasOwn&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="n"&gt;i&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="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="n"&gt;frames&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;!==&lt;/span&gt; &lt;span class="s2"&gt;"string"&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="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&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;===&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&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="k"&gt;return&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This only establishes owned filename entries. Add file availability, decoding, dimensions, alpha and intended order as later gates. A dense list of four strings is not proof that four usable PNGs exist, and four usable PNGs do not certify a good walk cycle.&lt;/p&gt;

&lt;p&gt;Our &lt;a href="https://www.framesprite.com/guides/javascript-sprite-frame-sparse-array-completeness?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guides209_20261119&amp;amp;utm_content=dev-frame-holes" rel="noopener noreferrer"&gt;sparse frame-array guide&lt;/a&gt; includes a native Node control with real owned PNG paths. The deliberately sparse registry passes the naive filename-existence predicate even though only two indexes are visited. The explicit completeness gate rejects it and accepts the dense registry. It also checks a JSON round trip, where holes become explicit nulls. Serialization changes the representation without repairing completeness.&lt;/p&gt;

&lt;h2&gt;
  
  
  Action names have a different membership trap
&lt;/h2&gt;

&lt;p&gt;After checking frame indexes, inspect the action-name container. With an ordinary object, &lt;code&gt;registry["constructor"]&lt;/code&gt; can find an inherited property before your importer adds an action of that name. A truthiness test can therefore claim that the action is already loaded.&lt;/p&gt;

&lt;p&gt;Use a &lt;code&gt;Map&lt;/code&gt;, or a deliberately constructed dictionary with explicit own-entry semantics. The &lt;a href="https://www.framesprite.com/guides/javascript-sprite-action-registry-inherited-names?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guides209_20261119&amp;amp;utm_content=dev-frame-holes" rel="noopener noreferrer"&gt;action-registry guide&lt;/a&gt; exercises &lt;code&gt;idle&lt;/code&gt;, &lt;code&gt;constructor&lt;/code&gt;, &lt;code&gt;toString&lt;/code&gt; and &lt;code&gt;__proto__&lt;/code&gt; labels. That test is independent of sparse arrays: a dense frame list can still be registered under the wrong membership rules.&lt;/p&gt;

&lt;p&gt;For a real workflow, record failures by expected action and frame occurrence. Retain the last accepted asset while investigating an incomplete replacement. Do not fill missing slots with duplicate poses just to satisfy a count unless the timeline explicitly calls for those holds.&lt;/p&gt;

&lt;p&gt;You can start the visual workflow on FrameSprite's &lt;a href="https://www.framesprite.com/character" rel="noopener noreferrer"&gt;character page&lt;/a&gt;. The checks above concern custom receiving code around the delivered assets, not a claim about FrameSprite's implementation or an AI-model benchmark.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Prepared by the FrameSprite Workflow Team with AI-assisted research and writing. We work on FrameSprite and have a commercial interest in it. These external processing examples do not claim undocumented FrameSprite features or predict model quality.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>An export preview is an observer: keep debug images out of the sprite sheet</title>
      <dc:creator>FrameSprite</dc:creator>
      <pubDate>Wed, 18 Nov 2026 22:11:50 +0000</pubDate>
      <link>https://dev.to/framesprite-team/an-export-preview-is-an-observer-keep-debug-images-out-of-the-sprite-sheet-5g1</link>
      <guid>https://dev.to/framesprite-team/an-export-preview-is-an-observer-keep-debug-images-out-of-the-sprite-sheet-5g1</guid>
      <description>&lt;p&gt;A sprite sheet maker pipeline often produces two things: the game asset and a smaller image for someone to inspect. Those outputs should have different jobs. In an ImageMagick command, however, writing a preview does not automatically remove that preview from the image list used by later operations.&lt;/p&gt;

&lt;p&gt;The debugging aid can become part of the export it was meant to observe. Before repainting a strange extra cell, ask: &lt;strong&gt;which images are still in memory immediately before composition?&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Give the preview a lifetime
&lt;/h2&gt;

&lt;p&gt;Imagine one master image, one thumbnail clone and a later append operation. A successful write tells you that a file was produced. It does not tell you that the clone was consumed. If the clone remains, the next operation can still receive it.&lt;/p&gt;

&lt;p&gt;Use a small state table while diagnosing the command:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Boundary&lt;/th&gt;
&lt;th&gt;Intended members&lt;/th&gt;
&lt;th&gt;Derivative role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;after reading master&lt;/td&gt;
&lt;td&gt;master&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;inside preview branch&lt;/td&gt;
&lt;td&gt;master plus isolated clone&lt;/td&gt;
&lt;td&gt;write review output&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;before final export&lt;/td&gt;
&lt;td&gt;master only&lt;/td&gt;
&lt;td&gt;already written, removed from list&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This is list deletion, not source-file deletion. Keep original artwork unchanged and use separate output paths.&lt;/p&gt;

&lt;p&gt;Our &lt;a href="https://www.framesprite.com/guides/sprite-imagemagick-write-image-list-lifetime?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guides209_20261119&amp;amp;utm_content=dev-export-observer" rel="noopener noreferrer"&gt;image-list lifetime guide&lt;/a&gt; includes an executed tiny master/preview control. Keeping the written thumbnail creates extra output rows; removing the intended derivative preserves the full master buffer. The guide also tests a second failure: inserting another input before a late &lt;code&gt;+delete&lt;/code&gt; changes which last image gets removed. The lesson is to bind cleanup to the derivative's actual lifetime, rather than to a distant line in a wrapper.&lt;/p&gt;

&lt;h2&gt;
  
  
  A clean list can still inherit the wrong settings
&lt;/h2&gt;

&lt;p&gt;Now suppose the thumbnail is correctly removed, but its red matte leaks into a later action that should use blue. Counting images will not catch that. Image membership and command settings are separate state columns.&lt;/p&gt;

&lt;p&gt;ImageMagick documents &lt;a href="https://imagemagick.org/command-line-processing/" rel="noopener noreferrer"&gt;setting and image-list processing&lt;/a&gt; and the &lt;a href="https://imagemagick.org/command-line-options/#respect-parentheses" rel="noopener noreferrer"&gt;&lt;code&gt;respect-parentheses&lt;/code&gt; option&lt;/a&gt;. Choose the restoration policy before the branch and verify a later outside-branch output. Do not assume that parentheses alone express every form of isolation.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://www.framesprite.com/guides/imagemagick-parentheses-restore-setting-state?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guides209_20261119&amp;amp;utm_content=dev-export-observer" rel="noopener noreferrer"&gt;setting-state guide&lt;/a&gt; uses a background-color witness to distinguish ordinary setting persistence from explicit restoration. Its narrow native result supports that boundary; it is not a certification of every operator, delegate or installed version.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test whether observation changes the master
&lt;/h2&gt;

&lt;p&gt;Run the same owned input through a plain export and an export with debug output enabled. Reopen both final assets. Compare dimensions, mode, complete decoded pixels and any action ordering the consumer depends on. Then inspect the preview as a separate artifact.&lt;/p&gt;

&lt;p&gt;If only the debug-enabled branch fails, keep the source artwork fixed while tracing list membership and settings. Changing the PNG at the same time would hide the cause. Add a negative control that deliberately leaves the clone in place so the receiving check demonstrates that it can detect the problem.&lt;/p&gt;

&lt;p&gt;For a sequence, define the expected final member population explicitly. A command that preserves one master may need a different selection strategy when several action images are present. Avoid copying a last-image deletion into an unrelated command without checking the list it will actually see.&lt;/p&gt;

&lt;p&gt;Once the external preprocessing result is accepted, continue the assembly in your chosen sprite sheet maker. FrameSprite's &lt;a href="https://www.framesprite.com/tools/sprite-sheet" rel="noopener noreferrer"&gt;sprite-sheet tools&lt;/a&gt; are one option. The release condition is simple: enabling a review derivative must not silently change the intended production asset.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Prepared by the FrameSprite Workflow Team with AI-assisted research and writing. We work on FrameSprite and have a commercial interest in it. These external processing examples do not claim undocumented FrameSprite features or predict model quality.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>gamedev</category>
    </item>
    <item>
      <title>An AI walk cycle can match average speed and still slide during acceleration</title>
      <dc:creator>FrameSprite</dc:creator>
      <pubDate>Tue, 17 Nov 2026 13:07:14 +0000</pubDate>
      <link>https://dev.to/framesprite-team/an-ai-walk-cycle-can-match-average-speed-and-still-slide-during-acceleration-231i</link>
      <guid>https://dev.to/framesprite-team/an-ai-walk-cycle-can-match-average-speed-and-still-slide-during-acceleration-231i</guid>
      <description>&lt;p&gt;You approve a walk from an AI sprite animation generator, set a plausible playback speed, and match the cycle's total stride distance to the controller. The foot still glides during acceleration. Before regenerating the action, measure what happens inside the planted interval.&lt;/p&gt;

&lt;p&gt;The useful quantity is the contact point in world coordinates:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;world_contact_x(t) = character_root_x(t) + local_foot_x(t)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This simplified equation assumes translation only. Rotation, scale, camera transforms and pixel snapping need their own treatment in a real game.&lt;/p&gt;

&lt;h2&gt;
  
  
  Matching endpoints is a weaker test than matching contact
&lt;/h2&gt;

&lt;p&gt;Here is a constructed three-sample diagnostic. Positions are project pixels; time is elapsed milliseconds.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;th&gt;Local foot x&lt;/th&gt;
&lt;th&gt;Root x, trace A&lt;/th&gt;
&lt;th&gt;World foot x&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;150&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Trace A keeps this authored contact stationary. Now replace root movement with a constant average rate that still covers eight pixels over 150 ms. Its root is 8/3 pixels at 50 ms, so the world contact becomes 14 2/3 pixels. Initial contact, final contact and total distance agree; the middle sample slips.&lt;/p&gt;

&lt;p&gt;The example proves that endpoint agreement cannot establish interval agreement. It does not measure a generated walk or establish a universal tolerance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Capture controller time and animation phase together
&lt;/h2&gt;

&lt;p&gt;Record the root transform, selected sprite frame or phase, and a deliberately identified foot landmark through heel strike, planted contact and toe-off. First replay without world translation to separate pivot or canvas changes from a velocity mismatch. Then inspect steady movement, acceleration and stopping under the same camera settings.&lt;/p&gt;

&lt;p&gt;A silhouette's bottommost pixel is not automatically the planted foot. Use an actual tracked or manually labeled contact feature when reviewing your artwork.&lt;/p&gt;

&lt;h2&gt;
  
  
  Repair the source of the mismatch
&lt;/h2&gt;

&lt;p&gt;If only the runtime translation changes, consider a shared phase/velocity policy, a start or stop action, or a deliberate skid. If the contact trajectory is already inconsistent in the drawings, animation cleanup may be needed. More sampled PNGs will not automatically fix either cause.&lt;/p&gt;

&lt;p&gt;Keep a steady-speed stride calculation as a planning tool, then test the full contact interval. This avoids paying for another generation when the remaining defect belongs to the controller, and avoids hiding bad art behind one average-speed number.&lt;/p&gt;

&lt;h2&gt;
  
  
  Further reading
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.framesprite.com/guides/fix-sprite-animation-foot-sliding?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=top2_guides207_20261117&amp;amp;utm_content=dev-ai-acceleration-contact" rel="noopener noreferrer"&gt;Inspect the foot-sliding control and its scope&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.framesprite.com/guides/sprite-animation-handoff-checklist?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=top2_guides207_20261117&amp;amp;utm_content=dev-ai-acceleration-contact" rel="noopener noreferrer"&gt;Plan a complete character-action handoff&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.framesprite.com/guides/sprite-workflow-decisions?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=top2_guides207_20261117&amp;amp;utm_content=dev-ai-acceleration-contact" rel="noopener noreferrer"&gt;Find the relevant workflow guide&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;FrameSprite team product education. Prepared with AI assistance and editorial review. Numerical examples are constructed checks, not model benchmarks or customer results.&lt;/p&gt;

</description>
      <category>animation</category>
      <category>gamedev</category>
      <category>programming</category>
    </item>
    <item>
      <title>Your sprite atlas validator may be checking data the JSON parser already changed</title>
      <dc:creator>FrameSprite</dc:creator>
      <pubDate>Tue, 17 Nov 2026 13:05:31 +0000</pubDate>
      <link>https://dev.to/framesprite-team/your-sprite-atlas-validator-may-be-checking-data-the-json-parser-already-changed-32om</link>
      <guid>https://dev.to/framesprite-team/your-sprite-atlas-validator-may-be-checking-data-the-json-parser-already-changed-32om</guid>
      <description>&lt;p&gt;A sprite sheet maker can produce a PNG that opens correctly and metadata that parses successfully, yet still leave an ambiguous delivery. The overlooked boundary is between the JSON source text and the object your validator receives.&lt;/p&gt;

&lt;p&gt;Consider a strict delivery rule: each frame name must identify exactly one stored rectangle. This tiny constructed source violates it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"frames"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"idle"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"x"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"y"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"w"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"h"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"idle"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"x"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"y"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"w"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"h"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;2&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;p&gt;Both rectangles fit a four-by-two image. A conventional last-value-wins decoder can retain only the second &lt;code&gt;idle&lt;/code&gt;. A later bounds check passes; a uniqueness check over dictionary keys also passes. Neither can discover the definition that disappeared during decoding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put the first gate before the dictionary
&lt;/h2&gt;

&lt;p&gt;For a Python validation job, the standard decoder can expose incoming member pairs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;unique_object&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pairs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;result&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="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;pairs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"duplicate JSON member: {name}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;

&lt;span class="n"&gt;source&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'{"frames":{"idle":{},"idle":{}}}'&lt;/span&gt;
&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;object_pairs_hook&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;unique_object&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This deliberately raises. The hook applies to every object in this declared strict contract. It is not a claim that all JSON readers must reject duplicates by default, and it does not turn every atlas format into the same schema.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep source validity and importer validity separate
&lt;/h2&gt;

&lt;p&gt;After source decoding, validate the selected format: integer pixel coordinates if that format requires them, positive extents, real image bounds, frame references, page names, and supported rotation or trim features. An array format needs an explicit duplicate-ID check on its entries; array entries are not object member names.&lt;/p&gt;

&lt;p&gt;Then test the receiving loader with a diagnostic frame. A structurally valid map can still describe the wrong traversal or an unsupported convention. Reject bad input with a frame identity and reason rather than silently shortening a rectangle or substituting frame zero.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add a failure that proves the gate is wired in
&lt;/h2&gt;

&lt;p&gt;Keep a valid file and the duplicate-member source in your repository. The valid file should pass; the duplicate source should make the validation command exit unsuccessfully. If both pass, investigate decoding and error propagation before trusting a green CI badge.&lt;/p&gt;

&lt;p&gt;This is an acceptance boundary for an existing export pipeline. It is not evidence that a particular generator emits duplicate keys, nor does it judge the motion in the frames. The accompanying FrameSprite guide includes bounded reproducible controls for typed fields and source-member validation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Further reading
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.framesprite.com/guides/sprite-atlas-json-ci-structural-validation?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=top2_guides207_20261117&amp;amp;utm_content=dev-maker-source-json" rel="noopener noreferrer"&gt;Read the strict atlas metadata checks&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.framesprite.com/guides/sprite-atlas-json-array-hash-ordering?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=top2_guides207_20261117&amp;amp;utm_content=dev-maker-source-json" rel="noopener noreferrer"&gt;Check the array-versus-object ordering contract&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.framesprite.com/guides/sprite-workflow-decisions?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=top2_guides207_20261117&amp;amp;utm_content=dev-maker-source-json" rel="noopener noreferrer"&gt;Browse the workflow guide collection&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;FrameSprite team product education. Prepared with AI assistance and editorial review. Numerical examples are constructed checks, not model benchmarks or customer results.&lt;/p&gt;

</description>
      <category>gamedev</category>
    </item>
    <item>
      <title>AI sprite animation generator QA: hidden details need an evidence queue</title>
      <dc:creator>FrameSprite</dc:creator>
      <pubDate>Mon, 16 Nov 2026 07:37:59 +0000</pubDate>
      <link>https://dev.to/framesprite-team/ai-sprite-animation-generator-qa-hidden-details-need-an-evidence-queue-kgc</link>
      <guid>https://dev.to/framesprite-team/ai-sprite-animation-generator-qa-hidden-details-need-an-evidence-queue-kgc</guid>
      <description>&lt;p&gt;When reviewing an AI sprite animation generator, an unseen hand should not become an automatic pass or an automatic defect. Give missing evidence its own queue. That makes the next production action clearer than assigning a confident-looking overall score to a character feature nobody could actually inspect.&lt;/p&gt;

&lt;p&gt;Disclosure: This article was generated with AI for the FrameSprite team, which has a commercial interest in the linked website. Examples are constructed production exercises, not measured model performance or customer results.&lt;/p&gt;

&lt;h2&gt;
  
  
  Write a question that a frame can answer
&lt;/h2&gt;

&lt;p&gt;Replace a broad instruction such as keep everything consistent with observable requirements: the weapon remains in the intended hand, the emblem keeps its agreed shape when visible, and the character stays inside the approved framing. Decide which requirements are mandatory before reviewing a take. Otherwise a difficult observation can quietly become optional after the results are known.&lt;/p&gt;

&lt;p&gt;Use three observations: supported by visible evidence, contradicted by visible evidence, and unresolved from the available view. In a constructed twelve-entry review, suppose a required grip can be inspected in only three entries and appears correct in those three. That supports three observed checks. It does not establish that all twelve entries preserve the grip, and it does not prove that the other nine are defective.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route each unresolved item to a concrete next action
&lt;/h2&gt;

&lt;p&gt;For an occluded feature, inspect the source clip around the occlusion and the reference that defines the requirement. For a detail made unreadable by playback scale, distinguish lack of visibility from a changed design. For a critical action that never provides evidence of the required contact, reconsider the evidence plan. Generating another take is one possible action, not the default response to every empty checklist cell.&lt;/p&gt;

&lt;p&gt;A useful queue entry contains the feature, the interval, why the evidence is inadequate, the person or production role responsible for resolving it, and the acceptance consequence. For example: required grip; middle turn; hand hidden behind torso; inspect the source interval; unconditional approval withheld until the requirement can be established or explicitly changed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep disagreement separate from missing evidence
&lt;/h2&gt;

&lt;p&gt;Two reviewers can see the same feature and disagree about what the brief requires. That is a criteria problem. Two reviewers who cannot see the feature share an evidence problem. Write those separately so a discussion about artistic preference does not masquerade as a measurement of model reliability. Retain the original annotations when the team resolves either issue.&lt;/p&gt;

&lt;p&gt;A natural animation does not need to expose every detail in every frame. The requirement is appropriate evidence for the actual production promise. An optional decorative effect can remain unresolved without being promoted to a confirmed failure; a critical unknown should remain visible in the handoff. No percentage in this example estimates a generator success rate. The linked FrameSprite checks describe bounded review policies, with synthetic controls and explicit limitations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Continue with the specific check you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.framesprite.com/guides/ai-sprite-review-unknown-not-pass?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=top2_guides210_20261116&amp;amp;utm_content=dev-ai-evidence-gaps" rel="noopener noreferrer"&gt;Record required and optional unknowns separately&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.framesprite.com/guides/ai-sprite-reference-feature-loss-checklist?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=top2_guides210_20261116&amp;amp;utm_content=dev-ai-evidence-gaps" rel="noopener noreferrer"&gt;Turn the reference into observable review features&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.framesprite.com/guides/sprite-art-review-conflicting-approval-criteria?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=top2_guides210_20261116&amp;amp;utm_content=dev-ai-evidence-gaps" rel="noopener noreferrer"&gt;Resolve conflicting approval criteria&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.framesprite.com/guides/sprite-workflow-decisions?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=top2_guides210_20261116&amp;amp;utm_content=dev-ai-evidence-gaps" rel="noopener noreferrer"&gt;Explore the complete 210-guide workflow collection&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These links open our own FrameSprite documentation. Each control states its tested scope and limitations.&lt;/p&gt;

</description>
      <category>gamedev</category>
    </item>
    <item>
      <title>Growing a sprite sheet without silently remapping old animations</title>
      <dc:creator>FrameSprite</dc:creator>
      <pubDate>Mon, 16 Nov 2026 07:28:53 +0000</pubDate>
      <link>https://dev.to/framesprite-team/growing-a-sprite-sheet-without-silently-remapping-old-animations-41l</link>
      <guid>https://dev.to/framesprite-team/growing-a-sprite-sheet-without-silently-remapping-old-animations-41l</guid>
      <description>&lt;p&gt;A sprite sheet maker can produce a perfectly valid larger PNG while an existing animation starts showing the wrong poses. Before adding more art, write down which identity your game promises to preserve: a named frame, an ordinal in a sequence, or a physical cell. Those are different migration contracts.&lt;/p&gt;

&lt;p&gt;Disclosure: This article was generated with AI for the FrameSprite team, which has a commercial interest in the linked website. Examples are constructed production exercises, not measured model performance or customer results.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put the compatibility decision in the change request
&lt;/h2&gt;

&lt;p&gt;Consider a hypothetical sheet with five columns. A named pose occupies column three, row two, using zero-based coordinates. Its row-major index is 2 × 5 + 3 = 13. Extend the same physical layout to seven columns, leaving that pose in the same cell, and its index becomes 17. Keeping the old integer now addresses a different cell. The PNG encoder has not necessarily failed.&lt;/p&gt;

&lt;p&gt;A repack creates another situation. If the exporter preserves the order of named frames but moves them into a new grid, ordinal 13 can remain ordinal 13 while its rectangle changes. A consumer holding cached rectangles needs a refresh even though its sequence numbers look unchanged. A migration must say which of these situations applies before anyone chooses a repair.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rehearse the migration with labels
&lt;/h2&gt;

&lt;p&gt;Use diagnostic cells carrying unmistakable identifiers before inserting finished character art. Select examples from the first row, a later row, and the last occupied row. Compare the old named-frame map with the proposed one. A first-cell-only preview is a weak compatibility check because that cell often stays at the origin under both layouts.&lt;/p&gt;

&lt;p&gt;Then write a small acceptance record: old layout revision, new layout revision, identity being preserved, mapping regenerated, and animations exercised. Release the image and its manifest together. If a scale variant or multipack export is involved, give every resulting page a distinct output path; a correct rectangle map is useless if another variant overwrites the file it names.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make rollback address the same contract
&lt;/h2&gt;

&lt;p&gt;Keep the previous image and mapping as one recoverable pair. Rolling back only the PNG can leave the game using new rectangles against old pixels. Conversely, restoring only an animation file can leave stale ordinals against the expanded grid. The useful rollback question is whether one complete layout revision has been restored, not whether a familiar filename is visible.&lt;/p&gt;

&lt;p&gt;Appending rows at unchanged width may preserve existing grid indices when the receiving format permits it. That is a design option, not a universal requirement to avoid repacking. Named frames and regenerated metadata can support a different choice. Test the real importer, including its cache behavior, before accepting either path. This arithmetic exercise does not certify an engine or imply that FrameSprite manages those runtime references automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Continue with the specific check you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.framesprite.com/guides/sprite-sheet-extension-add-columns-migration?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=top2_guides210_20261116&amp;amp;utm_content=dev-maker-migration" rel="noopener noreferrer"&gt;Distinguish fixed-cell and ordinal-preserving migrations&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.framesprite.com/guides/sprite-sheet-cell-id-rgb-sentinel-test?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=top2_guides210_20261116&amp;amp;utm_content=dev-maker-migration" rel="noopener noreferrer"&gt;Use labeled cells to test traversal&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.framesprite.com/guides/texturepacker-multipack-variant-output-placeholders?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=top2_guides210_20261116&amp;amp;utm_content=dev-maker-migration" rel="noopener noreferrer"&gt;Keep atlas pages and variants from overwriting each other&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.framesprite.com/guides/sprite-workflow-decisions?utm_source=dev&amp;amp;utm_medium=referral&amp;amp;utm_campaign=top2_guides210_20261116&amp;amp;utm_content=dev-maker-migration" rel="noopener noreferrer"&gt;Explore the complete 210-guide workflow collection&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These links open our own FrameSprite documentation. Each control states its tested scope and limitations.&lt;/p&gt;

</description>
      <category>gamedev</category>
    </item>
    <item>
      <title>Three checks before changing imported sprite artwork</title>
      <dc:creator>FrameSprite</dc:creator>
      <pubDate>Sat, 07 Nov 2026 06:38:00 +0000</pubDate>
      <link>https://dev.to/framesprite-team/three-checks-before-changing-imported-sprite-artwork-21ja</link>
      <guid>https://dev.to/framesprite-team/three-checks-before-changing-imported-sprite-artwork-21ja</guid>
      <description>&lt;p&gt;A character can look correct in a pixel editor and fail after import because the receiving tool interprets its coordinates, animation ownership or resource budget differently.&lt;/p&gt;

&lt;p&gt;Before replacing the artwork, write down the boundary that is failing. Here are three concrete checks for three different tools. The examples are calculated or proposed checks, not recorded engine benchmarks.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Roblox: keep image coordinates separate from UI dimensions
&lt;/h2&gt;

&lt;p&gt;For a uniform sprite sheet, record the source dimensions, cell dimensions, useful frame count and uploaded asset ID together. Then test fixed cells before testing an animation.&lt;/p&gt;

&lt;p&gt;For example, a 256×128 image containing 64×64 cells has four columns and two rows. Zero-based cell 5 starts at &lt;code&gt;(64, 64)&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight lua"&gt;&lt;code&gt;&lt;span class="kd"&gt;local&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cell&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;64&lt;/span&gt;
&lt;span class="n"&gt;imageLabel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ImageRectSize&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Vector2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cell&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cell&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;imageLabel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ImageRectOffset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Vector2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;cell&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nb"&gt;math.floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;cell&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Those values describe the source region. The size of the displayed &lt;code&gt;ImageLabel&lt;/code&gt; is another decision. If the selected pose is correct but stretched, changing crop offsets tackles the wrong boundary.&lt;/p&gt;

&lt;p&gt;Use a numbered, asymmetric control sheet in Studio and the published target clients. Keep the same asset revision in the comparison. Do not assume that a historical upload-size workaround applies to every current client.&lt;/p&gt;

&lt;p&gt;Primary reference: &lt;a href="https://create.roblox.com/docs/reference/engine/classes/ImageLabel" rel="noopener noreferrer"&gt;Roblox ImageLabel properties&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. SpriteKit: make appearance changes have one owner
&lt;/h2&gt;

&lt;p&gt;A restore-enabled texture animation can restore the sprite's original texture when the action is removed early. That matters when a skin switch assigns a new texture while the old appearance action still owns restoration.&lt;/p&gt;

&lt;p&gt;If the old action was started under the key &lt;code&gt;appearance&lt;/code&gt;, an intentional transition can cancel that action before assigning the new approved texture:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="n"&gt;sprite&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;removeAction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;forKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"appearance"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;sprite&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;texture&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;approvedSkinTexture&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, &lt;code&gt;approvedSkinTexture&lt;/code&gt; is the texture your application has already selected and prepared. The snippet does not load a new asset or define the next action.&lt;/p&gt;

&lt;p&gt;Test early cancellation as well as normal completion. Log which action session is allowed to change appearance. Removing every action can also stop unrelated movement, so give the visual property an explicit owner.&lt;/p&gt;

&lt;p&gt;Primary reference: &lt;a href="https://developer.apple.com/documentation/spritekit/skaction/animate(with:timeperframe:resize:restore:)" rel="noopener noreferrer"&gt;Apple's animate-with-resize-and-restore contract&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. GB Studio: budget unique tiles rather than compressed PNG bytes
&lt;/h2&gt;

&lt;p&gt;A more detailed background can consume shared VRAM that sprites need. In monochrome-compatible modes, the documented budget endpoints include:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Unique background tiles, 8×8&lt;/th&gt;
&lt;th&gt;Sprite tile capacity, 8×16&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;128&lt;/td&gt;
&lt;td&gt;Up to 96&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;192&lt;/td&gt;
&lt;td&gt;Up to 64&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The extra 64 background tiles occupy the shared space equivalent to 32 sprite tiles. This does not tell you how many complete actors fit: a composite character can use several hardware tiles, and repeated artwork may reuse them.&lt;/p&gt;

&lt;p&gt;Inspect the actual scene allocation in the debugger. Reducing a PNG's compressed file size does not by itself reduce its unique imported tile count. Color Only has different limits and is not a monochrome compatibility option.&lt;/p&gt;

&lt;p&gt;Primary reference: &lt;a href="https://www.gbstudio.dev/docs/project-editor/scenes/limits/" rel="noopener noreferrer"&gt;GB Studio scene limits&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turn the symptom into a useful question
&lt;/h2&gt;

&lt;p&gt;Include the tool, source contract and observed failure:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;“Which uploaded image revision does this crop manifest describe?”&lt;/li&gt;
&lt;li&gt;“Which action can still restore the old texture?”&lt;/li&gt;
&lt;li&gt;“Which unique tiles consumed the shared scene budget?”&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That gives the next check a specific input and acceptance condition.&lt;/p&gt;

&lt;p&gt;Disclosure: this is an AI-generated editorial post prepared for the FrameSprite team, with API claims checked against the linked primary documentation. We are building a &lt;a href="https://www.framesprite.com/guides/user-question-library?utm_source=devto&amp;amp;utm_medium=community&amp;amp;utm_campaign=question_library_20261107" rel="noopener noreferrer"&gt;question-led game-art guide library&lt;/a&gt; with primary references, worked examples and downloadable acceptance worksheets. The library distinguishes proposed checks from tests actually executed.&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>tutorial</category>
      <category>programming</category>
    </item>
    <item>
      <title>Why 8 sprite frames can last 500 ms, 667 ms, or 1 second</title>
      <dc:creator>FrameSprite</dc:creator>
      <pubDate>Thu, 05 Nov 2026 16:48:14 +0000</pubDate>
      <link>https://dev.to/framesprite-team/why-8-sprite-frames-can-last-500-ms-667-ms-or-1-second-429p</link>
      <guid>https://dev.to/framesprite-team/why-8-sprite-frames-can-last-500-ms-667-ms-or-1-second-429p</guid>
      <description>&lt;p&gt;Eight sprite frames have no fixed duration. At equal holds, divide the number of played entries by the playback FPS: eight frames at 16 FPS last 0.5 seconds; at 12 FPS they last about 0.667 seconds; at 8 FPS they last one second.&lt;/p&gt;

&lt;p&gt;I work on FrameSprite. Here is a small timing handoff you can use before exporting a character animation. The arithmetic works with hand-drawn and generated sprites alike.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the action's time budget
&lt;/h2&gt;

&lt;p&gt;Suppose an attack should take 500 ms from its first displayed pose to the end of its final hold. If the sequence contains eight equal-duration entries, the required rate is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FPS = played entries / target seconds
    = 8 / 0.5
    = 16

milliseconds per entry = 1000 / 16 = 62.5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here are three settings for the same eight entries:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Played entries&lt;/th&gt;
&lt;th&gt;Playback FPS&lt;/th&gt;
&lt;th&gt;Total duration&lt;/th&gt;
&lt;th&gt;Hold per entry&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;1000 ms&lt;/td&gt;
&lt;td&gt;125 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;666.667 ms&lt;/td&gt;
&lt;td&gt;83.333 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;500 ms&lt;/td&gt;
&lt;td&gt;62.5 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are calculated values, not measurements of engine latency or animation quality. Raising FPS plays the existing poses faster; it does not create additional poses.&lt;/p&gt;

&lt;h2&gt;
  
  
  Count the timeline, not the drawings
&lt;/h2&gt;

&lt;p&gt;A-B-C-B contains four played entries and three distinct drawings. At 8 FPS it lasts 500 ms. Removing the second B changes both the duration and the motion.&lt;/p&gt;

&lt;p&gt;A rectangular sheet can also contain unused cells. A 4-by-3 grid does not prove that an action contains twelve frames: count the entries actually selected for playback. For ping-pong playback, count the actual forward-and-return sequence and check how the player handles its endpoints.&lt;/p&gt;

&lt;h2&gt;
  
  
  Uneven holds need a different calculation
&lt;/h2&gt;

&lt;p&gt;If the holds are 80, 80, 160 and 80 ms, add them: the sequence lasts 400 ms. Flattening those holds to a single FPS can erase the longer impact pose even when the total duration looks right.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.aseprite.org/docs/frame-duration/" rel="noopener noreferrer"&gt;Aseprite's Frame Duration documentation&lt;/a&gt; explains where to edit individual holds. Keep the editable source and timing metadata when handing the animation to another tool; a plain PNG grid carries no timing instructions by itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check the destination player's speed too
&lt;/h2&gt;

&lt;p&gt;In Godot, a SpriteFrames entry has a relative duration. The &lt;a href="https://docs.godotengine.org/en/stable/classes/class_spriteframes.html#class-spriteframes-method-get-frame-duration" rel="noopener noreferrer"&gt;official SpriteFrames reference&lt;/a&gt; defines its absolute duration using relative duration, animation FPS and absolute playing speed. An entry with relative duration 2 lasts twice as long as one with relative duration 1 at the same speed.&lt;/p&gt;

&lt;p&gt;For eight unit-duration entries at 16 FPS and playing speed 1, the arithmetic gives 500 ms. Changing playing speed to 2 gives 250 ms. A pause, state transition or gameplay event can change the observed behavior further, so check those separately.&lt;/p&gt;

&lt;h2&gt;
  
  
  A repeatable handoff check
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Write down the ordered entries, including repeated poses.&lt;/li&gt;
&lt;li&gt;Record either equal playback FPS or the duration of every entry.&lt;/li&gt;
&lt;li&gt;Record loop mode and any engine speed multiplier.&lt;/li&gt;
&lt;li&gt;Preview at the intended runtime size and movement speed.&lt;/li&gt;
&lt;li&gt;Check when the hit event happens; total animation duration alone does not identify the impact instant.&lt;/li&gt;
&lt;li&gt;Pack the final PNGs while preserving the chosen canvas and pivot convention.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For the equal-hold calculation, you can &lt;a href="https://www.framesprite.com/tools/sprite-animation-timing-calculator?utm_source=devto_20261106&amp;amp;utm_medium=referral&amp;amp;utm_campaign=traffic_round_20261106&amp;amp;utm_content=timing_handoff" rel="noopener noreferrer"&gt;open our free animation timing calculator&lt;/a&gt;. It needs no account or artwork upload and does not modify your files or engine settings. The page includes a downloadable eight-frame sample and a CSV of timing examples.&lt;/p&gt;

&lt;p&gt;When the timing is settled, the &lt;a href="https://www.framesprite.com/tools/sprite-sheet?utm_source=devto_20261106&amp;amp;utm_medium=referral&amp;amp;utm_campaign=traffic_round_20261106&amp;amp;utm_content=timing_next_step" rel="noopener noreferrer"&gt;free PNG sprite-sheet packer and slicer&lt;/a&gt; handles the layout step.&lt;/p&gt;

&lt;p&gt;Disclosure: these links go to our own product. This article was prepared with AI assistance and checked against the live calculator and the linked documentation. Documentation checked November 6, 2026.&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>godot</category>
    </item>
    <item>
      <title>Why does Krita wait before drawing a short repair stroke?</title>
      <dc:creator>FrameSprite</dc:creator>
      <pubDate>Thu, 22 Oct 2026 21:06:05 +0000</pubDate>
      <link>https://dev.to/framesprite-team/why-does-krita-wait-before-drawing-a-short-repair-stroke-435l</link>
      <guid>https://dev.to/framesprite-team/why-does-krita-wait-before-drawing-a-short-repair-stroke-435l</guid>
      <description>&lt;p&gt;Disclosure: This article was generated with AI for the FrameSprite team, which has a commercial interest in FrameSprite. It received a separate AI editorial review against the cited sources. Executed synthetic fixtures are identified with their runtime and limits; no other editor, engine, production or performance test is implied.&lt;/p&gt;

&lt;p&gt;If a tiny correction leaves a dot or waits until the pointer moves farther, test the Freehand Brush tool's smoothing and Stabilizer Delay settings first. Delay controls a spatial dead zone around the cursor. That behavior can feel like slow rendering, especially when repairing a few pixels, but it needs a different diagnosis from a heavy brush or a display driver problem.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Key Takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Compare smoothing modes with the same brush, canvas, zoom, and input device.&lt;/li&gt;
&lt;li&gt;Treat a movement threshold separately from elapsed-time lag.&lt;/li&gt;
&lt;li&gt;Record the Krita version because stabilizer controls changed in 5.3.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Reproduce the smallest failing gesture
&lt;/h2&gt;

&lt;p&gt;Save the working file and create a disposable paint layer. Choose a simple brush preset, keep its size fixed, and make three gestures: a tap, a short line, and a longer line. Record whether the start waits for distance, whether the middle trails the cursor, and whether the stroke changes after pen-up. Do not change the renderer and tablet settings at the same time.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://docs.krita.org/en/reference_manual/tools/freehand_brush.html#smoothing" rel="noopener noreferrer"&gt;Freehand Brush reference&lt;/a&gt; documents No Smoothing, Basic, Weighted, and Stabilizer modes. Stabilizer averages input and draws behind the cursor; its Delay option defines the dead-zone size. The page also notes that 5.3 replaced the stabilizer's old Distance control with sample counts at maximum and minimum speed. Match instructions to your installed interface.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use a controlled comparison
&lt;/h2&gt;

&lt;p&gt;Make the same gestures in this order, retaining a screenshot or brief recording of each result:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Test&lt;/th&gt;
&lt;th&gt;Keep fixed&lt;/th&gt;
&lt;th&gt;What the comparison can isolate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;No Smoothing&lt;/td&gt;
&lt;td&gt;Brush, zoom, canvas, device&lt;/td&gt;
&lt;td&gt;Whether the start delay persists without smoothing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Basic&lt;/td&gt;
&lt;td&gt;Same conditions&lt;/td&gt;
&lt;td&gt;Whether mild input smoothing changes the symptom&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Weighted&lt;/td&gt;
&lt;td&gt;Same conditions&lt;/td&gt;
&lt;td&gt;Whether its own distance and ending settings matter&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stabilizer, Delay off then on&lt;/td&gt;
&lt;td&gt;Same stabilizer strength&lt;/td&gt;
&lt;td&gt;Whether the spatial dead zone explains short-stroke behavior&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This is a proposed manual matrix, not a benchmark performed for this guide. Use temporary settings and restore the preferred drawing setup afterward. A small-detail repair and a long contour may reasonably use different smoothing choices.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate distance from time
&lt;/h2&gt;

&lt;p&gt;A conceptual dead-zone example helps explain why moving faster is not the only relevant variable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;radius&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;
&lt;span class="n"&gt;positions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;outside&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&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;radius&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;positions&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;outside&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0ygx723d6qsns1haikld.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0ygx723d6qsns1haikld.webp" alt="Illustrative sample positions inside and outside an arbitrary radius-five dead zone" width="720" height="280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The synthetic Python 3.12.10/Pillow 13.0.0 fixture produced those Boolean values. It does not simulate Krita's algorithm, tablet sample rate, units, or timing. The &lt;a href="https://www.framesprite.com/guides/krita-stabilizer-delay-versus-render-lag-fixture-input.json" rel="noopener noreferrer"&gt;input&lt;/a&gt;, &lt;a href="https://www.framesprite.com/guides/krita-stabilizer-delay-versus-render-lag-fixture-results.json" rel="noopener noreferrer"&gt;results&lt;/a&gt;, and &lt;a href="https://www.framesprite.com/guides/krita-stabilizer-delay-versus-render-lag-art-fixtures.py" rel="noopener noreferrer"&gt;script&lt;/a&gt; make that limited scope explicit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Follow the symptom that remains
&lt;/h2&gt;

&lt;p&gt;If the initial wait disappears without Stabilizer Delay, choose a smaller dead zone or another smoothing mode for the repair. If the stroke starts promptly but changes after release, inspect &lt;a href="https://www.framesprite.com/guides/krita-instant-preview-brush-finish-pop" rel="noopener noreferrer"&gt;Instant Preview and brush-finish changes&lt;/a&gt;. If animation playback is choppy while individual strokes respond normally, use the &lt;a href="https://www.framesprite.com/guides/krita-animation-cache-preview-versus-export" rel="noopener noreferrer"&gt;animation-cache diagnosis&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If the same delayed drawing persists with No Smoothing and a simple brush, record that result before testing a smaller document or another input device. Then consult Krita's &lt;a href="https://docs.krita.org/en/reference_manual/preferences/display_settings.html#canvas-graphics-acceleration" rel="noopener noreferrer"&gt;display settings&lt;/a&gt; for renderer-specific investigation. A driver or rendering change should answer an observed remaining symptom, rather than serve as a universal fix.&lt;/p&gt;

&lt;p&gt;Finally undo or delete the diagnostic paint layer and export a clean reference. The &lt;a href="https://www.framesprite.com/guides/sprite-animation-handoff-checklist" rel="noopener noreferrer"&gt;handoff checklist&lt;/a&gt; helps keep test marks and temporary settings out of the approved asset package.&lt;/p&gt;

&lt;p&gt;Prepared by the &lt;a href="https://www.framesprite.com/about#workflow-team" rel="noopener noreferrer"&gt;FrameSprite Workflow Team&lt;/a&gt;. AI-assisted technical writing with a conceptual distance illustration; no tablet timing or Krita GUI performance was measured. &lt;a href="https://www.framesprite.com/about" rel="noopener noreferrer"&gt;Editorial method&lt;/a&gt; · &lt;a href="https://www.framesprite.com/contact" rel="noopener noreferrer"&gt;Corrections&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.framesprite.com/guides/krita-stabilizer-delay-versus-render-lag" rel="noopener noreferrer"&gt;Original guide and downloadable materials&lt;/a&gt;&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>debugging</category>
    </item>
    <item>
      <title>Why does PSD shading leak outside a character after opening in Krita?</title>
      <dc:creator>FrameSprite</dc:creator>
      <pubDate>Thu, 22 Oct 2026 21:05:45 +0000</pubDate>
      <link>https://dev.to/framesprite-team/why-does-psd-shading-leak-outside-a-character-after-opening-in-krita-4ejp</link>
      <guid>https://dev.to/framesprite-team/why-does-psd-shading-leak-outside-a-character-after-opening-in-krita-4ejp</guid>
      <description>&lt;p&gt;Disclosure: This article was generated with AI for the FrameSprite team, which has a commercial interest in FrameSprite. It received a separate AI editorial review against the cited sources. Executed synthetic fixtures are identified with their runtime and limits; no other editor, engine, production or performance test is implied.&lt;/p&gt;

&lt;p&gt;Compare the imported shading layer's clipping relationship with a flattened reference before erasing the overflow. A PSD can open with recognizable layers while a relationship between those layers needs inspection. Preserve the sender's editable master, identify the intended base alpha, and verify the receiver's grouping and alpha-inheritance settings on an exchange copy.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Key Takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Opening a layered file does not establish an exact editing round trip.&lt;/li&gt;
&lt;li&gt;Record which base shapes constrain each shading layer.&lt;/li&gt;
&lt;li&gt;Approve both the composite and a small reversible edit in the receiving application.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Send a reference that exposes the relationship
&lt;/h2&gt;

&lt;p&gt;Consider a shoulder plate with broad gold shading extending beyond its silhouette. The painted shading layer may intentionally contain those extra pixels; clipping hides them. Erasing them on import changes the editable design rather than repairing the relationship.&lt;/p&gt;

&lt;p&gt;Before exchange, export a flattened transparent reference from the sender's application. Include a close-up of the shoulder and one pose where equipment extends beyond the torso. Keep the native master separately. Krita's &lt;a href="https://docs.krita.org/en/general_concepts/file_formats/file_psd.html" rel="noopener noreferrer"&gt;PSD documentation&lt;/a&gt; lists supported layer features, but that list is not a guarantee that every document's editing semantics transfer exactly.&lt;/p&gt;

&lt;p&gt;A useful layer ledger names &lt;code&gt;shoulder-base&lt;/code&gt;, &lt;code&gt;shoulder-shading&lt;/code&gt;, and their containing group, then states: “Shading is constrained to the shoulder base; weapon silhouette is independent.” Add sender and receiver application versions and the export date. This is more actionable than saying “keep all masks.”&lt;/p&gt;

&lt;h2&gt;
  
  
  Inspect alpha inheritance and group scope
&lt;/h2&gt;

&lt;p&gt;Krita's &lt;a href="https://docs.krita.org/en/tutorials/clipping_masks_and_alpha_inheritance.html" rel="noopener noreferrer"&gt;clipping and alpha-inheritance tutorial&lt;/a&gt; explains how an inherited layer uses composited transparency below it within its group. That relationship need not match a sender's simple adjacent-layer mental model. Inspect which layers are below the shading, their visibility, and whether the group is in pass-through mode.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://docs.krita.org/en/reference_manual/layers_and_masks/group_layers.html" rel="noopener noreferrer"&gt;group-layer reference&lt;/a&gt; distinguishes separately composited groups from pass-through behavior. On an exchange copy, put the intended base and shading into a deliberate isolated scope before testing inheritance. Do not group the entire weapon merely to constrain one highlight; the weapon may need pixels outside the torso.&lt;/p&gt;

&lt;p&gt;If enabling inheritance hides the accessory instead, inspect the &lt;a href="https://www.framesprite.com/guides/krita-alpha-inheritance-empty-group" rel="noopener noreferrer"&gt;empty-group alpha problem&lt;/a&gt;. The present task concerns a cross-application relationship, rather than assuming the native file was already structured correctly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understand the transparency check
&lt;/h2&gt;

&lt;p&gt;Our abstract fixture starts with an elliptical base alpha and a full-width gold shading band. Multiplying the shading's alpha by that base removes the outside coverage while retaining the original source:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;PIL&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ImageChops&lt;/span&gt;

&lt;span class="n"&gt;clipped&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;shading&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;copy&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;clipped&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;putalpha&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ImageChops&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;multiply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;shading&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getchannel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;A&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;base_alpha&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4ta62lwdp46so9l7vzra.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4ta62lwdp46so9l7vzra.webp" alt="Unconstrained synthetic shading and the same pixels constrained by a base-alpha mask" width="720" height="280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The outside witness changed from &lt;code&gt;(255, 215, 0, 255)&lt;/code&gt; to &lt;code&gt;(255, 215, 0, 0)&lt;/code&gt; in Python 3.12.10/Pillow 13.0.0. RGB remains gold; alpha makes the pixel invisible. The &lt;a href="https://www.framesprite.com/guides/krita-psd-clipping-relationship-handoff-fixture-results.json" rel="noopener noreferrer"&gt;results&lt;/a&gt;, &lt;a href="https://www.framesprite.com/guides/krita-psd-clipping-relationship-handoff-fixture-input.json" rel="noopener noreferrer"&gt;inputs&lt;/a&gt;, and &lt;a href="https://www.framesprite.com/guides/krita-psd-clipping-relationship-handoff-art-fixtures.py" rel="noopener noreferrer"&gt;script&lt;/a&gt; document this illustration. No PSD or KRA file was written, imported, or round-tripped. It explains the intended relationship, not Krita's entire compositing implementation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Accept an editing exchange, not just a preview
&lt;/h2&gt;

&lt;p&gt;In the receiving application, compare the complete transparent composite with the sender's reference, then hide and show the named shading layer. Make one temporary edit to the base edge and confirm the shading follows the intended constraint. Undo that edit. Export a fresh reference and reopen the exchange file in the sender's application if a return trip is required.&lt;/p&gt;

&lt;p&gt;If the relationship cannot be preserved, agree on a rasterized exchange copy while retaining the editable native master. Record the lost capability explicitly. For animation, the &lt;a href="https://www.framesprite.com/guides/krita-kra-ora-animation-master-handoff" rel="noopener noreferrer"&gt;KRA versus ORA master discussion&lt;/a&gt; covers a different loss boundary: the timeline. Keep these decisions in the &lt;a href="https://www.framesprite.com/guides/sprite-animation-handoff-checklist" rel="noopener noreferrer"&gt;asset handoff notes&lt;/a&gt;, alongside the approved reference and actual versions tested.&lt;/p&gt;

&lt;p&gt;Prepared by the &lt;a href="https://www.framesprite.com/about#workflow-team" rel="noopener noreferrer"&gt;FrameSprite Workflow Team&lt;/a&gt;. AI-assisted technical writing with an abstract alpha fixture; application compatibility remains a manual acceptance task. &lt;a href="https://www.framesprite.com/about" rel="noopener noreferrer"&gt;Editorial method&lt;/a&gt; · &lt;a href="https://www.framesprite.com/contact" rel="noopener noreferrer"&gt;Corrections&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.framesprite.com/guides/krita-psd-clipping-relationship-handoff" rel="noopener noreferrer"&gt;Original guide and downloadable materials&lt;/a&gt;&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>debugging</category>
    </item>
    <item>
      <title>DDS Mip Sizes: Keep the Smallest Compression Block</title>
      <dc:creator>FrameSprite</dc:creator>
      <pubDate>Thu, 22 Oct 2026 21:04:30 +0000</pubDate>
      <link>https://dev.to/framesprite-team/dds-mip-sizes-keep-the-smallest-compression-block-4cc5</link>
      <guid>https://dev.to/framesprite-team/dds-mip-sizes-keep-the-smallest-compression-block-4cc5</guid>
      <description>&lt;p&gt;Disclosure: This article was generated with AI for the FrameSprite team, which has a commercial interest in FrameSprite. It received a separate AI editorial review against the cited sources. Executed synthetic fixtures are identified with their runtime and limits; no other editor, engine, production or performance test is implied.&lt;/p&gt;

&lt;p&gt;Calculate each BC-compressed DDS mip level from whole compression blocks. Do not keep dividing byte counts by four after the dimensions become smaller than a block. The smallest mip still occupies a block, even if it contains only a few logical pixels.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Key takeaway:&lt;/strong&gt; Mip dimensions shrink, but compressed storage has a minimum block size. Validate the emitted mip count rather than assuming every file contains a complete chain.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Start with a non-square texture
&lt;/h2&gt;

&lt;p&gt;The authored example uses a 7 by 3 BC3-style texture with 16-byte blocks and a legacy 128-byte DDS header. Its full dimension chain is 7×3, 3×1 and 1×1. This is a byte-layout exercise, not a claim that every engine accepts those source dimensions.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://learn.microsoft.com/en-us/windows/win32/direct3ddds/dds-file-layout-for-textures" rel="noopener noreferrer"&gt;Microsoft DDS layout documentation&lt;/a&gt; gives block-based level sizing. For this selected format:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;blocks_x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;blocks_y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;height&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;level_bytes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;blocks_x&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;blocks_y&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Level dimensions&lt;/th&gt;
&lt;th&gt;Payload bytes&lt;/th&gt;
&lt;th&gt;Offset in the authored file layout&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;7×3&lt;/td&gt;
&lt;td&gt;32&lt;/td&gt;
&lt;td&gt;128&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3×1&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;160&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1×1&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;176&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The payload totals 64 bytes and the authored file layout totals 192. Repeated quartering would incorrectly predict 32, 8 and 2 bytes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the header before choosing the formula
&lt;/h2&gt;

&lt;p&gt;Identify the compression format and its block byte size. An eight-byte BC1 block and a sixteen-byte BC3 block do not have the same payload calculation. Also account for any extended header, array layers, faces or additional surfaces in the actual file.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/microsoft/DirectXTex/wiki/DDS-I-O-Functions" rel="noopener noreferrer"&gt;DirectXTex DDS I/O notes&lt;/a&gt; document compatibility handling for older files and partial blocks. A validator should report its accepted profile instead of silently guessing which historical convention a damaged file intended.&lt;/p&gt;

&lt;h2&gt;
  
  
  Do not equate a partial chain with corrupted pixels
&lt;/h2&gt;

&lt;p&gt;Some files intentionally contain fewer mip levels than a full chain. Validate the declared count, byte ranges and the target importer's capabilities separately. A &lt;a href="https://github.com/godotengine/godot/issues/96635" rel="noopener noreferrer"&gt;Godot DDS import report&lt;/a&gt; illustrates a real partial-mip compatibility problem. It concerns the reported versions and files; it does not prove a current engine-wide failure.&lt;/p&gt;

&lt;p&gt;When a target rejects a file, preserve the original header and level-size report. Re-export a compatible file from the source rather than adding zero bytes until a size check happens to pass.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recorded arithmetic and failure control
&lt;/h2&gt;

&lt;p&gt;Python 3.12.10 ran three assertions in the &lt;a href="https://www.framesprite.com/guides/dds-sprite-mip-chain-minimum-block-size-fixture-check.py" rel="noopener noreferrer"&gt;checker&lt;/a&gt;. The &lt;a href="https://www.framesprite.com/guides/dds-sprite-mip-chain-minimum-block-size-fixture-results.json" rel="noopener noreferrer"&gt;result&lt;/a&gt; records all level offsets, sizes and the 192-byte total. The &lt;a href="https://www.framesprite.com/guides/dds-sprite-mip-chain-minimum-block-size-fixture-input.json" rel="noopener noreferrer"&gt;input&lt;/a&gt; fixes the dimensions, block bytes and legacy header assumption. No DDS file was decoded, no BC encoder was run and no GPU texture was created.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check the rest of the delivery contract
&lt;/h2&gt;

&lt;p&gt;Use the &lt;a href="https://www.framesprite.com/guides/gpu-compressed-sprite-texture-capability-fallback" rel="noopener noreferrer"&gt;GPU-compression fallback guide&lt;/a&gt; for target capability, the &lt;a href="https://www.framesprite.com/guides/mobile-sprite-texture-memory-budget" rel="noopener noreferrer"&gt;texture-memory budget guide&lt;/a&gt; for runtime allocation planning, and the &lt;a href="https://www.framesprite.com/guides/sprite-asset-version-manifest-cache-handoff" rel="noopener noreferrer"&gt;asset-version manifest guide&lt;/a&gt; to keep the validated file paired with its release metadata.&lt;/p&gt;

&lt;p&gt;The final acceptance test is still the target build loading the exact exported file with the intended mip count. Correct byte arithmetic is a useful preflight step, not a substitute for that import test.&lt;/p&gt;

&lt;h2&gt;
  
  
  Editorial ownership
&lt;/h2&gt;

&lt;p&gt;Prepared by the &lt;a href="https://www.framesprite.com/about#workflow-team" rel="noopener noreferrer"&gt;workflow team&lt;/a&gt;, which has a commercial relationship with this site. This guide was drafted with AI assistance; independent editorial review is recorded separately. &lt;a href="https://www.framesprite.com/contact" rel="noopener noreferrer"&gt;Report a technical correction&lt;/a&gt; with the relevant input, tool version and observed result.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.framesprite.com/guides/dds-sprite-mip-chain-minimum-block-size" rel="noopener noreferrer"&gt;Original guide and downloadable materials&lt;/a&gt;&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>debugging</category>
    </item>
  </channel>
</rss>
