<?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: Selcukatli</title>
    <description>The latest articles on DEV Community by Selcukatli (@selcukatli).</description>
    <link>https://dev.to/selcukatli</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%2F4032701%2F00f87748-96c7-4274-91b8-f08614da6d90.jpg</url>
      <title>DEV Community: Selcukatli</title>
      <link>https://dev.to/selcukatli</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/selcukatli"/>
    <language>en</language>
    <item>
      <title>Image models kept getting my App Store screenshots rejected, so I made my coding agent render them to exact spec</title>
      <dc:creator>Selcukatli</dc:creator>
      <pubDate>Thu, 16 Jul 2026 22:23:49 +0000</pubDate>
      <link>https://dev.to/selcukatli/image-models-kept-getting-my-app-store-screenshots-rejected-so-i-made-my-coding-agent-render-them-3afp</link>
      <guid>https://dev.to/selcukatli/image-models-kept-getting-my-app-store-screenshots-rejected-so-i-made-my-coding-agent-render-them-3afp</guid>
      <description>&lt;p&gt;Like a lot of people shipping iOS apps this year, I tried generating App Store screenshots with image models. GPT Image, nano banana — the results looked genuinely great. Then App Store Connect rejected them: wrong canvas sizes, subtly warped text, device frames that don't match any real device.&lt;/p&gt;

&lt;p&gt;After the third rejection I realized the problem wasn't prompt engineering. &lt;strong&gt;Frames and canvases are geometry, and geometry is arithmetic&lt;/strong&gt; — something a coding agent expresses perfectly in CSS, and something an image model can only approximate statistically. Asking a diffusion model to hit 1290×2796 exactly, with a pixel-true bezel and crisp 17px mono type, is asking statistics to do arithmetic.&lt;/p&gt;

&lt;p&gt;So I split the work, and open-sourced the result as a skill for Claude Code and Codex: &lt;strong&gt;&lt;a href="https://github.com/hypersocialinc/hypershots" rel="noopener noreferrer"&gt;HyperShots&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The split: deterministic where Apple has rules, generative where it sells
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Deterministic half (no AI involved at all):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your agent designs marketing panels as plain HTML/CSS against a small geometric contract — a device frame with a fixed screen aspect (0.460, matched to real captures), profile-driven canvas variables, sticker primitives&lt;/li&gt;
&lt;li&gt;Headless Chrome renders them at exact store dimensions: 430×932 CSS at 3× = 1290×2796, to the pixel&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;fail-closed validator&lt;/strong&gt; checks everything Apple actually rejects for: dimensions, alpha channels (yes, an RGBA PNG gets bounced), non-sRGB ICC profiles, panel count (max 10), and the 8 MB size cap. Green means the store cannot reject the set for asset specs&lt;/li&gt;
&lt;li&gt;Localization is one command per language: &lt;code&gt;data-i18n&lt;/code&gt; markers, atomic string injection (missing &lt;em&gt;or&lt;/em&gt; unused keys are fatal — no silently shipping English), and auto-fit headlines that shrink until they clear the device instead of overflowing when German runs 30% long&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Generative half (optional, bring your own fal.ai key):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cut-out sticker art: image generation → background removal → transparent PNG, positioned by the agent with plain CSS transforms&lt;/li&gt;
&lt;li&gt;An optional whole-set "makeover" pass — image-to-image over the rendered panel, where a mask plus a re-composite step restores your text and frames from the clean render afterward. The model never ships your typography&lt;/li&gt;
&lt;li&gt;Set consistency via a style anchor: grade the first panel freely, then pass it as a reference image for the rest. Measured drift across an anchored set: ~4% in palette&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then &lt;code&gt;fastlane deliver&lt;/code&gt; pushes the set to App Store Connect — the skill ships the runbook, including the first-version metadata crash workaround that cost me an afternoon.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things I learned the hard way
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Chrome's &lt;code&gt;1fr&lt;/code&gt; respects min-content.&lt;/strong&gt; Same-aspect images in a CSS grid rendered at different heights because nowrap captions silently widened their columns. &lt;code&gt;repeat(N, minmax(0, 1fr))&lt;/code&gt; or your geometry lies to you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Headless Chrome's minimum window width is 500px.&lt;/strong&gt; If your "mobile" screenshots look clipped, you may be cropping a 500px layout to 390 — the page was fine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Image-model edit endpoints can't output store dimensions at all.&lt;/strong&gt; gpt-image edits snap to multiples of 16; 1290, 1284, and 1320 aren't. Any AI style pass &lt;em&gt;must&lt;/em&gt; end with a resample + re-composite, or the output is nonconforming by construction.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Masks are guidance, not guarantees.&lt;/strong&gt; Inpainting-style "protected" regions come back approximately preserved — re-rendered through the model. If text must be pixel-true, composite it back from the source. Always.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fonts must be vendored.&lt;/strong&gt; Google Fonts &lt;code&gt;@import&lt;/code&gt; at render time means your "deterministic" renderer silently falls back to system fonts under a timeout, and upstream font updates drift your metrics. &lt;code&gt;@font-face&lt;/code&gt; with local woff2 or nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does it actually work?
&lt;/h2&gt;

&lt;p&gt;Two production apps have shipped sets through it so far — one went from a one-paragraph brief to a store-ready, validated set in a single agent session, then through ~8 founder-driven revision rounds without a single spec failure. The gallery at &lt;a href="https://hypershots.dev" rel="noopener noreferrer"&gt;hypershots.dev&lt;/a&gt; shows both sets; every image on that page, including the site's own icons, was generated by the pipeline it describes.&lt;/p&gt;

&lt;p&gt;It's MIT, works with whatever agent you already use, and the deterministic half needs no API keys:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx skills add hypersocialinc/hypershots
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Honest limitations, because those belong in the README and in posts: iPad needs a separate authoring pass (0.75 aspect doesn't re-render from iPhone panels), RTL/CJK is roadmap (latin + latin-ext fonts are vendored today), and the style pass has documented caveats on layouts where text and device cover the whole canvas.&lt;/p&gt;

&lt;p&gt;If you've been through screenshot-rejection hell, I'd genuinely love to hear what broke for you — and if you ship a set with it, submissions to the gallery are open (featured apps get a backlink).&lt;/p&gt;

</description>
      <category>ios</category>
      <category>ai</category>
      <category>opensource</category>
      <category>mobile</category>
    </item>
  </channel>
</rss>
