design-assets: document GPT Image 2 div-by-16 size constraint - #91
Open
goannajezweb wants to merge 1 commit into
Open
design-assets: document GPT Image 2 div-by-16 size constraint#91goannajezweb wants to merge 1 commit into
goannajezweb wants to merge 1 commit into
Conversation
GPT Image 2 returns HTTP 400 if width or height isn't divisible by 16. Aspect ratio is free, but the pixel grid is fixed. Discovered while generating an OG card at 1792x936 (rejected) and landing on 1792x944 (1.898:1, accepted, OG-canonical after resize to 1200x630). Adds: - New "Pixel size constraints" subsection under "GPT Image 2 Specifics" with a cheat-sheet of useful aspect ratios at div-16-compliant dims - OG-specific recipe: generate 1792x944, resize to 1200x630 for serving - Two new "Common Mistakes" rows: odd pixel dims, and crop-after-gen vs generate-native-shape Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
widthandheightmust be divisible by 16. Aspect ratio is free; the pixel grid isn't.1792x944natively (= 1.898:1, OG-canonical), resize to1200x630for serving.Why
Hit empirically while generating an OG card for a Jezmail newsletter edition. First attempt at native 1.91:1 returned:
Without this in the skill, the loop became: generate wrong shape → crop → clip the wordmark → regenerate. The doc-only fix is two short sections and saves anyone hitting this later from the same retry cycle.
Test plan
(w % 16 == 0) and (h % 16 == 0)1792x944returns a valid image (verified during the OG generation that prompted this PR)🤖 Generated with Claude Code