Image Info Checker: Dimensions, Format & Size from URLs avatar

Image Info Checker: Dimensions, Format & Size from URLs

Pricing

from $0.80 / 1,000 image checkeds

Go to Apify Store
Image Info Checker: Dimensions, Format & Size from URLs

Image Info Checker: Dimensions, Format & Size from URLs

Check images in bulk from URLs: width, height, format, file size, animated flag, transparency and EXIF orientation, read from the first bytes only (no full download). Optional min-size and format rules. Direct image links only; no page crawling, no pixel analysis.

Pricing

from $0.80 / 1,000 image checkeds

Rating

0.0

(0)

Developer

Data Done Right

Data Done Right

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Features

Limited permissions

Share

Use this image info checker to get the dimensions, format and file size of images from a list of URLs without downloading them. It asks each server for only the first bytes of the file (an HTTP Range request), reads the image header, and returns one row per image: width, height, real format, file size in bytes, animated or not, transparency and EXIF orientation. Add optional rules (minimum width and height, maximum file size, allowed formats) and every row gets a passes flag, so you can filter a list before you download, convert or publish it.

What it does NOT do (read this first)

  • It takes direct links to image files, not web pages. It does not find images on a page (use "Download Images from URLs: Bulk Image & File Downloader" for that). A page URL is reported as failed with that reason.
  • It reads headers only. It does not decode pixels, so it cannot tell you about blur, brightness, faces, duplicates, text or content, and it cannot confirm that the whole file is intact (a truncated JPEG with a good header still reports its size).
  • It does not download, store or convert the images. There are no download links in the output.
  • Animation is detected for GIF, WebP, APNG and AVIF. When the answer is not in the first bytes it says animated: null instead of guessing. Animated HEIC is not detected.
  • It honours the host's robots.txt (a disallowed URL is skipped), does not log in, use proxies or work around hotlink protection. A 401, 403 or 429 from the host is reported as failed.
  • The file size comes from the server's Content-Range or Content-Length. If the server sends neither and the file is bigger than the read limit, fileBytes is null.

What you get

  • One dataset row per URL: format, width, height, displayWidth / displayHeight (after EXIF rotation), orientation, aspectRatio, megapixels, fileBytes, animated, hasAlpha, colorSpace, exifOrientation, contentType, mimeMismatch, lastModified, bytesRead, status, error.
  • With rules set: passes (true or false) and filterFailures (the reasons).
  • A SUMMARY record with totals and a FAILED record listing every failed URL and why.

What can this image checker do

  • Real format from the bytes, not from the file name or the server's Content-Type: JPEG, PNG, GIF, WebP, BMP, TIFF, ICO, AVIF, HEIC and SVG. mimeMismatch is true when the server labels a file as a different format than it is.
  • Pixel size and file size without a full download. In our local runs a 224 KB PNG needed about 12 KB, a 18 KB JPEG about 2 KB and a 1 MB animated GIF about 58 KB (the second frame proves it is animated); the rest was never requested. If a server ignores Range requests, the connection is closed after the read limit.
  • EXIF orientation: phone photos often store 4000 x 3000 with a "rotate 90" flag. displayWidth and displayHeight show what a browser shows.
  • Animated and transparent images flagged, so you can skip animated GIFs or keep PNG logos.
  • Rules: minWidth, minHeight, maxFileSizeMb, allowedFormats, rejectAnimated.
  • Safe with bad input: one bad URL never stops the run. Private, loopback and cloud-metadata addresses are refused. Requests to one host are spaced out and limited to 4 at a time.

How to get image dimensions from a list of URLs

  1. Paste the image links in Image URLs, one per line.
  2. Run it. Each row has width, height, format and fileBytes.
  3. Download the dataset as CSV, Excel or JSON.

How to check image file size without downloading the image

fileBytes comes from the server's Content-Range header (when it honours the Range request, rangeRequestsSupported is true) or from Content-Length. fileSizeSource says which. Set maxFileSizeMb to get passes: false for files over the limit.

How to filter images by minimum size before you download them

Set minWidth and minHeight (in displayed pixels), optionally allowedFormats (for example jpeg, png, webp) and rejectAnimated. Then keep the rows with passes: true and pass those URLs to your downloader. Every image is still charged once it was read, whether it passes or not.

How to find animated GIFs and mislabelled image files

Look at animated (true for animated GIF, WebP, APNG, AVIF) and mimeMismatch (true when Content-Type and real format disagree). format is always the real format.

Input example

{
"urls": [
"https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png",
"https://interactive-examples.mdn.mozilla.net/media/cc0-images/grapefruit-slice-332-332.jpg",
"https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif"
],
"minWidth": 400,
"maxFileSizeMb": 5
}

Output example

Real row from a local run (rows are shortened to the main fields; the full row has all fields listed above, unused ones are null):

{
"index": 1,
"sourceUrl": "https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png",
"status": "ok",
"format": "png",
"mimeType": "image/png",
"contentType": "image/png",
"mimeMismatch": false,
"width": 800,
"height": 600,
"displayWidth": 800,
"displayHeight": 600,
"orientation": "landscape",
"aspectRatio": 1.333,
"megapixels": 0.48,
"fileBytes": 224566,
"fileSizeSource": "content-range",
"animated": false,
"hasAlpha": true,
"colorSpace": "rgb",
"rangeRequestsSupported": true,
"bytesRead": 12588,
"passes": true,
"filterFailures": []
}

Input reference

FieldDefaultMeaning
urlsprefilled samplesDirect image URLs, one per line (required).
minWidth, minHeight0 (no rule)Displayed size below this gives passes: false.
maxFileSizeMb0 (no rule)Files larger than this (1 MB = 1,000,000 bytes) give passes: false.
allowedFormatsempty (any)jpeg, png, gif, webp, bmp, tiff, ico, avif, heic, svg.
rejectAnimatedfalseAnimated (or not provably still) images give passes: false.
maxImages1000Cap on checked URLs (max 20,000). Extra URLs are skipped and not charged.
maxReadKb512Most bytes read per image (16 to 8192).
concurrency10Images checked in parallel (1 to 32).
timeoutSecs30Give up on one image after this long.

How much does it cost

$0.001 per image read ($1 per 1,000 images). No start fee. An image that fails (404, not an image, blocked by robots.txt, forbidden) or is skipped (duplicate, over maxImages) is free.

  • 1,000 images: $1.00
  • 10,000 images: $10.00
  • 100,000 images: $100.00 (run it as several runs of up to 20,000 URLs)

Platform compute for these runs is small, because each image costs a few KB of traffic and a fraction of a second.

Use cases

  1. Pre-flight before a bulk download: skip thumbnails and oversized files before running "Download Images from URLs: Bulk Image & File Downloader".
  2. E-commerce catalog checks: find product images below a marketplace's minimum size, or in the wrong format.
  3. SEO and page-weight audits: list the heaviest images and which are PNG where WebP would be smaller.
  4. Dataset cleaning for AI/ML: drop tiny, animated or CMYK images from a URL list before training or captioning.
  5. Link and content QA: find images that 404, redirect, or are served with the wrong Content-Type.

FAQ

Does it download the image? No. It requests the first bytes only (up to maxReadKb) and closes the connection. Servers that ignore Range requests are cut off the same way, though some may still send a little more before the connection closes.

Why is fileBytes null for some images? The server sent neither Content-Range nor Content-Length and the file is bigger than the read limit. The format and size in pixels are still reported.

Why did an image fail with "size was not found in the first N KB"? The header is further into the file than maxReadKb (large embedded previews, some TIFFs). Raise maxReadKb.

Can it check images behind a login or on Instagram? No. It does not log in and does not work around blocks. Use only image URLs you may request.

Is width the real pixel size? It is the size stored in the file. For JPEGs with an EXIF rotation of 5 to 8, displayWidth and displayHeight are swapped to match what is displayed. For SVG it is the declared size, not pixels.

Are the results always right? Format, size and animation come straight from the file header, so they are exact when present. It does not validate the pixel data, so a damaged file with a valid header is still reported.

Use with the Apify API / MCP / n8n / Make

Python:

from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("<your-username>/image-info-checker").call(run_input={
"urls": ["https://example.com/a.jpg", "https://example.com/b.png"],
"minWidth": 800,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
print(row["sourceUrl"], row["width"], row["height"], row["fileBytes"], row["passes"])

JavaScript:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<APIFY_TOKEN>' });
const run = await client.actor('<your-username>/image-info-checker').call({
urls: ['https://example.com/a.jpg', 'https://example.com/b.png'],
allowedFormats: ['jpeg', 'png', 'webp'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();

The same input works in n8n, Make and the Apify MCP server (call the Actor by name and read its dataset).

  • Download Images from URLs: Bulk Image & File Downloader
  • Batch Image Converter & Resizer: WebP, AVIF, PNG & JPEG
  • Image Compressor & Resizer: Compress Images in Bulk
  • Image to Text OCR: Screenshots, Scans & Photos in Bulk