PluginProbe ʕ •ᴥ•ʔ
TinyPNG – JPEG, PNG & WebP image compression / 3.8.0
TinyPNG – JPEG, PNG & WebP image compression v3.8.0
3.8.0 3.7.0 3.6.14 trunk 1.0.0 1.1.0 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.4.0 1.5.0 1.6.0 1.7.0 1.7.1 1.7.2 2.0.0 2.0.1 2.0.2 2.1.0 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.0.0 3.0.1 3.1.0 3.2.0 3.2.1 3.3 3.4 3.4.1 3.4.2 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.5.2 3.6.0 3.6.1 3.6.10 3.6.11 3.6.12 3.6.13 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.6.9
tiny-compress-images / docs / cli / index.md
tiny-compress-images / docs / cli Last commit date
index.md 1 week ago
index.md
41 lines
1 # CLI
2
3 TinyPNG provides several CLI commands allowing you to automate actions on your website.
4
5 ## Commands
6
7 ### `wp tiny optimize`
8
9 Optimizes images in the WordPress media library.
10 When run without arguments, all images that have not yet been optimized are processed. You can also target specific attachments by providing a comma-separated list of attachment IDs.
11
12 **Options**
13
14 | Option | Description |
15 |---|---|
16 | `--attachments=<ids>` | Comma-separated list of attachment IDs to optimize. Omit to optimize all unoptimized images. |
17
18 **Examples**
19
20 Optimize all unoptimized images:
21
22 ```bash
23 wp tiny optimize
24 ```
25
26 Optimize specific attachments by ID:
27
28 ```bash
29 wp tiny optimize --attachments=532,603,705
30 ```
31
32 **Output**
33
34 Skipped attachments (invalid or unsupported file types) are reported as warnings. When finished, a summary shows how many images were successfully optimized.
35
36 ```
37 Optimizing 3 images.
38 Optimizing images: 100% (3 of 3)
39 Success: Done! Optimized 3 of 3 images.
40 ```
41