{"uid":"cap_OLr_eI5qpzkGxsdNMSlxf","slug":"imagcon-app-image-resizer-06416b8e","name":"imagcon.app Image Resizer","description":"Resize any image to exact dimensions or social-media presets — Open Graph (1200x630), Twitter card, YouTube thumbnail, Instagram, LinkedIn. Smart fit modes avoid distortion: cover (focal-point crop), contain (padded), blur-fill letterbox, stretch. Deterministic and instant — no AI, no account required. Returns the resized PNG/JPEG/WebP directly. Images from generate-image resize free at /routes/x402/resize-generated (pass your image_key).","url":"https://imagcon.app/routes/x402/resize-image","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["cover","contain","blur","stretch"],"type":"string","description":"Fit mode (default cover; blur recommended for OG images)"},"focal":{"enum":["center","top","bottom","left","right"],"type":"string","description":"Crop anchor for cover mode"},"image":{"type":"string","format":"binary","description":"Source image file"},"width":{"type":"integer","description":"Target width in pixels"},"format":{"enum":["png","jpeg","webp"],"type":"string","description":"Output format (default png)"},"height":{"type":"integer","description":"Target height in pixels"},"preset":{"enum":["github-social","instagram-portrait","instagram-square","instagram-story","linkedin-post","og","twitter-card","twitter-header","youtube-thumbnail"],"type":"string","description":"Social/OG preset (wins over width/height)"},"quality":{"type":"integer","description":"JPEG/WebP quality 1-100 (default 90)"},"background_color":{"type":"string","description":"Hex background for contain mode (default #ffffff)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Qs0Tpu3KjFYc8iFmxQcZ4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resizes any uploaded image to exact pixel dimensions or social-media presets (OG, Twitter card, YouTube thumbnail, etc.) with smart fit modes including cover crop, contain padding, blur-fill letterbox, and stretch.","exampleAgentPrompt":"Resize this image to the Open Graph preset using blur-fill letterbox mode and return it as a JPEG.","exampleUseCases":[{"title":"OG image for blog post","prompt":"Take this screenshot and resize it to the og preset with blur letterbox fill so it looks great when shared on social media — output as JPEG."},{"title":"YouTube thumbnail crop","prompt":"Resize my photo to a YouTube thumbnail using cover mode with center crop focus, output as JPEG at quality 85."},{"title":"Instagram story from landscape photo","prompt":"I have a landscape photo I need resized for an Instagram story — use the instagram-story preset with blur fill mode and return a PNG."}],"resultDescription":"Returns the resized image binary directly (PNG, JPEG, or WebP) at the requested dimensions or preset dimensions, processed with the chosen fit mode. No JSON wrapper — the response body is the image file ready for use.","failureModes":["Missing or unreadable image file returns an error","Invalid width/height values (non-integer or negative) return a validation error","Unsupported image format in source file may fail","Conflicting preset and explicit dimensions — preset takes priority","Payment failure via x402 protocol blocks the request","Image too large may result in timeout or processing error"],"whenToPreferThis":"Choose this endpoint when you need deterministic, instant, no-AI image resizing to exact pixel dimensions or common social-media presets. It is ideal for pipelines that generate images and need platform-ready sizes immediately, especially when paired with imagcon.app's AI generation endpoints (use the free sibling endpoint for images generated there). Prefer it over generic image CDN transformations when you need guaranteed output format control, smart fit modes, and per-call micropayment pricing with no account setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T03:45:50.709Z","isFirstParty":false}