Social size presets
Fits the screenshot into fixed 1200×630, 1080×1080, 1080×1920 or 1600×900 canvases using contain-fit; padding and radius still apply; export pixels are exactly the preset size × 1x/2x.
Inputs and parameters
spec— Geometry / layer model JSONpreset— Social size presetscale— Export scalebackgroundPreset— Switch background (keeps input/crop)frameAssetStatus— Frame asset statusclipboardMode— Input scenario (paste / file fallback)format— Output format (field in the plan)
Real example
{"image":{"id":"shot-01","width":1280,"height":800,"bytes":245760,"hasAlpha":true,"format":"png"},"crop":{"x":0,"y":0,"width":1280,"height":800},"padding":48,"radius":20,"background":{"kind":"gradient","from":"#E8F3EC","to":"#F7F8F5","alpha":1},"shadow":{"blur":24,"offsetY":12,"alpha":0.18},"frame":{"kind":"browser","assetStatus":"ok"},"preset":"auto","format":"png","scale":2,"clipboardMode":"desktop-paste"}
(preset=og-1200x630; padding=48; radius=20; scale=2)
→ The preset canvas stays 1200×630 and does not grow with padding; the source is contain-fitted into the available area preserving its 1280:800 ratio; 2x export = 2400×1260 (3,024,000 px), preview 1200×630; the 64 MP ceiling is still checked in advance.
Limits and failure handling
Four fixed presets; no custom canvas sizes; no real social card images; contain-fit is geometric only and browser drawing is untested; other budgets are the same as beautify.
FAQ
Do presets stretch the image?
No: contain-fit preserves the aspect ratio and centres the image; excessive padding that leaves no room returns PADDING_TOO_LARGE.
Does 2x change the composition?
No, it is an integer upscale of the same design canvas; the layer signature is unchanged.