image-video-optimizer 3.5.1 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/package.json +2 -2
- package/src/index.js +1 -1
- package/.image-video-optimizer-status.json +0 -6
package/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A powerful CLI tool to optimize images, videos, audio, and PDFs with configurable resize and compression settings.
|
|
4
4
|
|
|
5
|
+
## now Smart Image Compression: Compares original, WebP, AVIF formats in v4
|
|
5
6
|
## Features
|
|
6
7
|
|
|
7
8
|
- **Image Optimization**: Resize and convert images to specified formats
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "image-video-optimizer",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "CLI tool to optimize and compress images and
|
|
3
|
+
"version": "4.0.3",
|
|
4
|
+
"description": "CLI tool to optimize and compress images, videos and pdfs with configurable settings",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"image-video-optimizer": "./bin/cli.js"
|
package/src/index.js
CHANGED
|
@@ -44,7 +44,7 @@ function parseConfig(configPath) {
|
|
|
44
44
|
if (!key || !value) continue;
|
|
45
45
|
|
|
46
46
|
// Parse appropriate types
|
|
47
|
-
if (key === 'img_max_width' || key === 'video_max_width') {
|
|
47
|
+
if (key === 'max_image_width' || key === 'img_max_width' || key === 'video_max_width') {
|
|
48
48
|
config[key] = parseInt(value, 10);
|
|
49
49
|
} else {
|
|
50
50
|
config[key] = value;
|