LinuxCommandLibrary

tinifier

CLI tool for compressing images via TinyPNG

TLDR

Compress all images in a directory
$ tinifier compress --api-key [KEY] [./images/]
copy
Compress with 4 threads
$ tinifier compress -t 4 --api-key [KEY] [photo.png]
copy
Compress while preserving EXIF metadata
$ tinifier compress --keep-metadata --api-key [KEY] [./img/]
copy

SYNOPSIS

tinifier [options] path...

DESCRIPTION

tinifier compresses images using the TinyPNG API with parallel processing support. It handles WEBP, AVIF, JPEG, and PNG files, supports multiple API keys with automatic switching when quotas are exceeded, and can preserve original file metadata.

PARAMETERS

--api-key KEY

TinyPNG API key. Can be specified multiple times.
-t N
Number of parallel threads.
--keep-metadata
Preserve original file metadata.

CAVEATS

Requires a TinyPNG API key.

HISTORY

tinifier was created by tarampampam and is written in Go.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard