Skip to content

design-assets: document GPT Image 2 div-by-16 size constraint - #91

Open
goannajezweb wants to merge 1 commit into
mainfrom
jezmail/gpt-image-2-size-constraints
Open

design-assets: document GPT Image 2 div-by-16 size constraint#91
goannajezweb wants to merge 1 commit into
mainfrom
jezmail/gpt-image-2-size-constraints

Conversation

@goannajezweb

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a new Pixel size constraints subsection under GPT Image 2 Specifics, documenting the empirically-discovered rule that both width and height must be divisible by 16. Aspect ratio is free; the pixel grid isn't.
  • Cheat-sheet of useful aspect ratios at div-16-compliant dimensions (1:1, 16:9, 1.91:1 OG, 2:1, 3:1, 2:3, 9:16).
  • OG-specific recipe: generate 1792x944 natively (= 1.898:1, OG-canonical), resize to 1200x630 for serving.
  • Two new rows in Common Mistakes: "Submitting odd pixel dims" and "Generating at one shape and cropping to another" (the model composes for the canvas; cropping clips intentional wordmarks / accents).

Why

Hit empirically while generating an OG card for a Jezmail newsletter edition. First attempt at native 1.91:1 returned:

HTTP 400: Invalid size '1792x936'. Width and height must both be divisible by 16.

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

  • Skill loads cleanly (no markdown syntax errors)
  • Cheat-sheet sizes all satisfy (w % 16 == 0) and (h % 16 == 0)
  • Recipe 1792x944 returns a valid image (verified during the OG generation that prompted this PR)

🤖 Generated with Claude Code

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants