1.0.0 • Published 8 months ago

img-optimizer-cli v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

Web Image optimizer

The goal here is to create multiple image formats and sizes to optimize web page loading.

The image formats are:

  • AVIF
  • WEBP
  • Raw

There are 2 types of sizes:

  • small for file that are supposed to be displayed in small size (like thumbnails max half of the wiewport)
  • large for file that are supposed to be displayed in large size (like full screen images)

The image sizes are defined according to these 2 types.

A snippet for usage is generated for each image.

The folder structure is as follows:

  • raw_img_src.extension
  • raw_img_src

Usage

Get help on the package

npx img-optimizer-cli help

Create an image optimization

npx img-optimizer-cli optimize test.png
1.0.0

8 months ago

0.0.0

12 months ago