DEV Community

Sahadat Husain profile picture

Sahadat Husain

Founder and developer of Blinkimg (blinkimg.com), an image compressor and converter with an API. I write about image pipelines, AVIF, WebP, sharp, Pillow and page speed.

Work

Founder at Blinkimg

Read image width and height without decoding, in Node

Read image width and height without decoding, in Node

Comments
5 min read
sharp resize kernels compared: lanczos3, mitchell, nearest by PSNR

sharp resize kernels compared: lanczos3, mitchell, nearest by PSNR

Comments
5 min read
Decoding a 50 MP JPEG vs a PNG in sharp: peak memory, measured

Decoding a 50 MP JPEG vs a PNG in sharp: peak memory, measured

Comments
5 min read
Stop shipping WebP as your default in 2026: AVIF was 12–43% smaller on every photo we tested

Stop shipping WebP as your default in 2026: AVIF was 12–43% smaller on every photo we tested

Comments
2 min read
16-bit PNG in sharp silently becomes 8-bit: bytes and banding

16-bit PNG in sharp silently becomes 8-bit: bytes and banding

Comments
5 min read
Fail CI when an image is over its byte budget (Node script)

Fail CI when an image is over its byte budget (Node script)

Comments
4 min read
Never lazy-load your LCP image: the fetchpriority, preload and srcset checklist

Never lazy-load your LCP image: the fetchpriority, preload and srcset checklist

Comments 1
2 min read
The picture element: which format each browser downloads

The picture element: which format each browser downloads

Comments
4 min read
Pillow JPEG optimize=True and progressive: bytes and CPU time

Pillow JPEG optimize=True and progressive: bytes and CPU time

Comments
4 min read
AVIF vs WebP vs JPEG in 2026: one photo, same width, real bytes

AVIF vs WebP vs JPEG in 2026: one photo, same width, real bytes

Comments
2 min read
WebP effort in sharp: size and time for levels 0 to 6

WebP effort in sharp: size and time for levels 0 to 6

Comments
5 min read
Stop shipping GIFs: a 2.77 MB loop became 370 KB

Stop shipping GIFs: a 2.77 MB loop became 370 KB

Comments
2 min read
Auto-orient before you resize: sharp rotate() and exif_transpose

Auto-orient before you resize: sharp rotate() and exif_transpose

1
Comments 1
5 min read
Retrying an image API on 429: backoff, jitter and credits

Retrying an image API on 429: backoff, jitter and credits

1
Comments 1
5 min read
CMYK JPEG uploads in a web pipeline: convert to sRGB with sharp

CMYK JPEG uploads in a web pipeline: convert to sRGB with sharp

Comments
5 min read
Reproducing Lighthouse's image audits on one page, in Node

Reproducing Lighthouse's image audits on one page, in Node

Comments
5 min read
Cache headers for images: immutable, hashed names and CDNs

Cache headers for images: immutable, hashed names and CDNs

Comments
5 min read
Content-addressed keys for transformed images in object storage

Content-addressed keys for transformed images in object storage

Comments
5 min read
Pick JPEG quality by an SSIM target instead of a fixed number

Pick JPEG quality by an SSIM target instead of a fixed number

Comments 1
5 min read
Golden-image regression tests for an image pipeline in CI

Golden-image regression tests for an image pipeline in CI

Comments
6 min read
Batch image processing in Python: threads vs processes with Pillow

Batch image processing in Python: threads vs processes with Pillow

Comments
5 min read
A batch image compressor CLI in Node with bounded concurrency

A batch image compressor CLI in Node with bounded concurrency

Comments
5 min read
Compress images from Python with the Blinkimg API and requests

Compress images from Python with the Blinkimg API and requests

Comments
5 min read
When can a PNG become a JPEG? Check opacity with sharp stats

When can a PNG become a JPEG? Check opacity with sharp stats

Comments
5 min read
Tiny image placeholders with sharp: bytes for 8 to 32 px LQIPs

Tiny image placeholders with sharp: bytes for 8 to 32 px LQIPs

1
Comments 1
4 min read
An AVIF quality ladder in sharp: q30 to q80, bytes and time

An AVIF quality ladder in sharp: q30 to q80, bytes and time

Comments
4 min read
The sizes attribute: how the browser picks a srcset candidate

The sizes attribute: how the browser picks a srcset candidate

Comments
5 min read
Why image encodes belong in a queue worker, with BullMQ

Why image encodes belong in a queue worker, with BullMQ

Comments
5 min read
An image upload endpoint in Fastify: five checks before decode

An image upload endpoint in Fastify: five checks before decode

Comments
6 min read
Compress images from your AI editor with an MCP server

Compress images from your AI editor with an MCP server

1
Comments
5 min read
Serve AVIF or WebP by Accept header, and the Vary header trap

Serve AVIF or WebP by Accept header, and the Vary header trap

1
Comments 1
5 min read
Accepting HEIC uploads in Node: what sharp can and cannot decode

Accepting HEIC uploads in Node: what sharp can and cannot decode

Comments
5 min read
Progressive vs baseline JPEG with mozjpeg: the byte difference

Progressive vs baseline JPEG with mozjpeg: the byte difference

Comments
4 min read
WebP lossless vs near-lossless vs lossy for UI screenshots

WebP lossless vs near-lossless vs lossy for UI screenshots

Comments
6 min read
Chroma subsampling 4:2:0 vs 4:4:4 for screenshots with text

Chroma subsampling 4:2:0 vs 4:4:4 for screenshots with text

Comments
6 min read
Stripping metadata without breaking colour: keep the ICC profile

Stripping metadata without breaking colour: keep the ICC profile

Comments
6 min read
limitInputPixels and MAX_IMAGE_PIXELS: pixel caps, tested

limitInputPixels and MAX_IMAGE_PIXELS: pixel caps, tested

Comments
5 min read
Detect image formats from magic bytes in Node and Python

Detect image formats from magic bytes in Node and Python

Comments
6 min read
Compress images from Node.js with the Blinkimg API and fetch

Compress images from Node.js with the Blinkimg API and fetch

Comments
5 min read
Generating srcset widths with sharp: bytes per width, measured

Generating srcset widths with sharp: bytes per width, measured

Comments
5 min read
sharp vs Pillow at the same JPEG quality: why the bytes differ

sharp vs Pillow at the same JPEG quality: why the bytes differ

Comments
5 min read
AVIF in sharp: what each effort level costs in time and bytes

AVIF in sharp: what each effort level costs in time and bytes

Comments
5 min read
loading...