2.5.8 • Published 1 year ago

phoptimizer v2.5.8

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

PhOptimizer

This package optimizes images on localdisk via command line.

Usage

Installation

npm install -g phoptimizer

Story

You have a example.jpg in current command line directory. Example.jpg is (4,752px X 3,168px) and 1.95MB.

Command

phoptimizer --file example.jpg

Result

In current path we have a 2 images now. "example.jpg" , "example_optimised.jpg". Example.jpg is still (4,752px X 3,168px) and 1.95mB. Example_optimised.jpg is (1920px X 1280px) and 351kB.

Args

ArgAliasTypeDescriptionDefaultExample
--file-fstringFile NameALL in pathexample.jpg
--path-pstringPath NameCurrent path (process.cwd())C:/users/phibersoft
--overwrite-obooleanOptimized image will overwrite original image.falsetrue
--width-wnumberImage width19202400
--height-henumberImage heightAuto by width1080
--quality-qnumberImage Quality70100

Examples

Specific file with custom configuration

phoptimizer -f example.jpeg --height 1080 --width 1920 --quality 95 --overwrite

Specific path (All Files)

phoptimizer -p C:\\users\\spirn\\images

Specific path (Single File)

phoptimizer -p C:\\users\\spirn\\images -f example.jpeg
2.5.6

1 year ago

2.5.8

1 year ago

2.5.7

1 year ago

2.5.5

1 year ago

2.3.0

1 year ago

2.2.0

1 year ago

2.5.0

1 year ago

2.4.0

1 year ago

2.5.2

1 year ago

2.5.1

1 year ago

2.5.4

1 year ago

2.5.3

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.1

3 years ago

1.0.0

3 years ago