Skip to content
UniKit

Image share preview

Upload an image and read its real metadata: container format (PNG/JPEG/GIF/WebP/BMP/ICO/AVIF/HEIC/SVG), pixel size from the file header, byte count, whether the browser can decode it, an EXIF summary and a byte fingerprint. It then checks the image against the Google / X / WeChat share-card recommendations and renders a card preview with the real file.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

The image is read and previewed locally in your browser; nothing is uploaded.

Pick an image first (PNG / JPEG / GIF / WebP / HEIC all work), then choose a platform.

Result

No result yet

Real metadata & checks

Every value below is read from the file bytes: container format, dimensions, size, EXIF summary and a byte-dependent fingerprint.

Pick an image and its real format, size, dimensions, EXIF summary and platform checks show up here.

What this tool does

  • Check an image before you point og:image at it: the tool reads the real pixel size from the file header and compares it with the Google / X / WeChat recommendations, so a squashed or cropped card is obvious early.
  • Look at an image of unknown origin: the container is sniffed from the bytes rather than the extension (PNG / JPEG / GIF / WebP / BMP / ICO / AVIF / HEIC / SVG), together with size, aspect ratio and a byte fingerprint.
  • See camera info before sharing: the Exif IFD0 and Exif sub-IFD are parsed for camera make, model, capture time, orientation, aperture, shutter, ISO and focal length.
  • Tune an SEO / social card: type the title, description and site name and see whether they get truncated, with character and pixel estimates from a real width table.

Example

Input

Upload an 8 × 6 four-quadrant PNG (82 bytes, no Exif), platform Google, title “在线图片工具 · 本地处理不上传”, default description

Output

File name: blocks.png
Container format: PNG · image/png
File size: 82 B (82 B)
Container size: 8 × 6
Browser decode: yes (8 × 6)
Pixels: 48
Aspect ratio: 1.333
Byte fingerprint: 0x50e5cb30
EXIF: none
Platform: Google search thumbnail
Recommended: ≥ 300 × 300 · ≤ 5.24 MB
Checks: smaller than the platform recommends (8×6 < 300×300)
Title: 16 chars · 282 px (fits)
Description: 50 chars · 655 px (fits)

Format, size, EXIF and the fingerprint all come from this file’s real bytes: the container is detected from the header (not the extension), the dimensions from the PNG IHDR, and the fingerprint is an FNV-1a 32-bit hash. The check uses the platform threshold, and 8 × 6 is far below 300 × 300, hence “smaller than the platform recommends”.

Frequently asked questions

Is my image uploaded or stored?

No. Format sniffing, dimension reading, Exif parsing and the fingerprint all run on the raw bytes in your browser, and the share card uses a local object URL. The page sends no requests and the image never leaves your device.

Why do some HEIC files show a size and others do not?

The tool only reads the dimension fields of PNG (IHDR), JPEG (SOF), GIF (logical screen), WebP (VP8/VP8L/VP8X), BMP and ICO. HEIC and AVIF keep their size in a meta box that is not parsed here, so “container size” says it could not be read. If the browser can decode the file, the decoded size is used as a fallback; when neither is available the value is “—”, never a guess.

Why are there only a dozen Exif fields?

It reads a whitelist of the fields people actually look at: ImageWidth, ImageLength, Make, Model, Software, DateTime, DateTimeOriginal, Orientation, ExposureTime, FNumber, ISOSpeedRatings and FocalLength, at most 48 entries in IFD0 and 48 in the Exif sub-IFD. Vendor MakerNote blocks and GPS coordinates are not parsed — which also means the tool never leaks your location.

Where do the platform recommendations come from?

Common thresholds: a Google search thumbnail is recommended to be at least 300 × 300 within 5 MB; an X / Twitter card at least 300 × 157; a WeChat share thumbnail 300 × 300 within 32 KB. Platforms change their rules, so the numbers live in constants and are printed on the page for you to judge against your own requirements.

How are the title and description pixel widths calculated?

By summing an Arial advance-width table per character (title at 20px with a ~600px cap, description at 14px with a ~920px cap), counting CJK and full-width characters as one em. It is an estimate rather than a real layout measurement, which is enough to spot truncation; measure in a browser when exact typography matters.

Keywords:meta previewimage share previewog imagetwitter cardexif summaryopen graph

Related tools