{"uid":"cap_DIU2w9m7cAM4xiwwTNypw","slug":"gardenpatch-xyz-image-resize-481e5adc","name":"gardenpatch.xyz Image Resize","description":"Image resize — Fetch one public JPEG, PNG, WebP or GIF image (up to 25 MP) and return it resized and re-encoded (webp, jpeg, png or avif) as base64, with metadata stripped. $0.02 per call.","url":"https://gardenpatch.xyz/api/v1/tools/image-resize/call?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_cl_rWDWkCcmoXEnkU1RCH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a public image URL, resizes it, re-encodes it to a specified format (WebP, JPEG, PNG, or AVIF), strips metadata, and returns the result as a base64 string.","exampleAgentPrompt":"Can you fetch the image at https://example.com/photo.jpg, resize it to 800×600, and give it back to me as a base64 WebP with all metadata stripped?","exampleUseCases":[{"title":"Product thumbnail for e-commerce listing","prompt":"Take this product image at https://shop.example.com/images/jacket.png and resize it to 400×400 pixels, convert it to WebP, and strip all the metadata — I need the base64 to embed it in our product catalog."},{"title":"Avatar downscaling for user profiles","prompt":"I have a user-uploaded profile photo at https://cdn.myapp.com/users/avatar_12345.jpeg that's way too large — can you resize it to 150×150 and re-encode it as AVIF with metadata removed? Give me the base64 back."},{"title":"Blog hero image format conversion","prompt":"Resize the hero image at https://myblog.com/assets/hero.png to 1200×630 and convert it to WebP so I can use it as an Open Graph image — strip the metadata and return it as base64."}],"resultDescription":"A base64-encoded image in the requested output format (WebP, JPEG, PNG, or AVIF) at the specified dimensions, with all metadata (EXIF, XMP, ICC profiles, etc.) stripped. No binary file download — the result is returned inline as a base64 string ready for embedding.","failureModes":["Image URL is not publicly accessible or returns a non-200 status","Source image exceeds the 25 megapixel limit","Unsupported input image format (only JPEG, PNG, WebP, GIF accepted)","Invalid or malformed target dimensions","Network timeout fetching the remote image URL","Output format not recognized (must be webp, jpeg, png, or avif)"],"whenToPreferThis":"Choose this endpoint when you need to fetch, resize, and re-encode a remote image in a single step without setting up image processing infrastructure. It is especially useful when you need a base64-encoded result suitable for embedding directly in APIs, emails, or documents, and when stripping metadata (EXIF, GPS, etc.) is a requirement. Prefer it over general-purpose image CDNs if you want a simple per-call pricing model with no configuration overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:31:15.717Z","isFirstParty":false,"canonicalSlug":"gardenpatch-xyz-image-resize-481e5adc"}