{"uid":"cap_UZkGICC_JqdgY45E8rPVY","slug":"jpeg-file-format-inspector-6292bd17","name":"JPEG File Format Inspector","description":"Read a JPEG's width, height, components and baseline/progressive mode by walking its markers; flags JFIF and Exif.","url":"https://file-formats.x402tookit.com/jpeg-info?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["hex"],"properties":{"hex":{"type":"string","description":"First bytes of the JPEG as hex, up to 512 bytes; the frame header usually appears within the first few hundred"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"mode":{"type":["null","string"]},"width":{"type":["null","number"]},"height":{"type":["null","number"]},"source":{"type":["null","string"]},"hasExif":{"type":["boolean","null"]},"hasJfif":{"type":["boolean","null"]},"reasons":{"type":["array","null"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"hasAdobe":{"type":["boolean","null"]},"components":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"frameMarker":{"type":["null","string"]},"markersSeen":{"type":["array","null"],"items":{"type":"string"}},"progressive":{"type":["boolean","null"]},"bytesExamined":{"type":["null","number"]},"precisionBits":{"type":["null","number"]}}}}}}},"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_9c1iBI_4D8tabj-Qx_kLF","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":"Parses the first bytes of a JPEG file (as hex) to extract width, height, color components, baseline/progressive mode, and detect JFIF/Exif/Adobe markers.","exampleAgentPrompt":"Can you inspect this JPEG's header and tell me its width, height, number of color components, and whether it's progressive or baseline — here are the first 512 bytes in hex: FFD8FFE000104A464946...","exampleUseCases":[{"title":"Validate uploaded image dimensions","prompt":"I'm receiving user-uploaded JPEG files and need to check their width and height before storing them — can you read the dimensions from the first 512 bytes of this file in hex without fully downloading it: FFD8FFE000104A464946..."},{"title":"Detect progressive JPEG for web optimization","prompt":"Check if this JPEG is encoded in progressive mode or baseline — here are the first 512 bytes as hex: FFD8FFE000104A464946... — I want to know whether I need to re-encode it for faster web loading."},{"title":"Audit JPEG metadata presence for privacy","prompt":"Tell me whether this JPEG contains Exif or JFIF metadata headers — I need to know before sharing it publicly. Here are the first 512 bytes as hex: FFD8FFE1024545786966..."}],"resultDescription":"Returns a structured object containing the image width, height, number of color components, precision bits, progressive or baseline mode flag, frame marker identifier, list of JPEG markers seen, JFIF/Exif/Adobe presence flags, a human-readable summary and verdict, number of bytes examined, and any degraded or error reasons if parsing was incomplete.","failureModes":["Insufficient hex bytes provided — frame header not found within first 512 bytes returns null dimensions","Invalid or non-JPEG hex input causes parsing failure with error reasons in the reasons array","Truncated or corrupted JPEG header results in degraded=true with partial results","Hex string malformed or not valid hexadecimal causes bad request error","Missing required 'hex' query parameter returns validation error"],"whenToPreferThis":"Use this endpoint when you need to extract JPEG image metadata (dimensions, mode, color info, marker flags) from raw file bytes without a full image processing library or full file download. Ideal for lightweight server-side validation, privacy audits (Exif detection), web optimization checks (progressive detection), or CI pipelines that inspect image uploads. Prefer this over general file-type detection when you specifically need JPEG-internal structural data beyond just format identification.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:11:24.081Z","isFirstParty":false,"canonicalSlug":"jpeg-file-format-inspector-6292bd17"}