1.2.0 • Published 2 years ago

imgopt v1.2.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

GitHub Repo stars

Welcome to imgopt!

This cli tool is inspired by the awesome expo-optimize tool. Unlike the former, imgopt allows the user to convert images to other formats, or limit their width outside of an npm project and without the need to install the sharp-cli package.

Usage :rocket:

# Simply run this
npx imgopt <input-directory> [options]

See npx imgopt --help for more.

Examples :pencil:

# Convert all files in the current directory to JPEG with quality=80, save to ./optimized
npx imgopt . --format jpg --quality 80 -o optimized

#Convert all files to PNG, limit width to 1000px, also copy non-image files, save to ./output (default)
npx imgopt . --format png --max-width 1000 --copy-all

# Keep format, quality=90, clear the output folder before optimizing
npx imgopt . --quality 90 --clear
1.2.0

2 years ago

1.1.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago