RepositoryPHPGBVương quốc Anh
typisttech

typisttech/image-optimize-command

Easily optimize images using WP CLI

173sao
19fork
2issue
2lượt xem

🖼️ Tối ưu hóa ảnh WordPress qua dòng lệnh với image-optimize-command

WP-CLI wrapper quanh spatie/image-optimizer: tối ưu GIF, JPEG, PNG, SVG, WebP bằng công cụ thực sự.

Image Optimize Command là một gói WP-CLI mã nguồn mở, miễn phí, được xây dựng bởi Typist Tech. Dự án bọc quanh spatie/image-optimizer, chạy ảnh qua chuỗi công cụ tối ưu hóa thực sự như JpegOptim, Optipng, Pngquant, SVGO, Gifsicle, cwebp để giảm kích thước mà không mất chất lượng.

✨ Điểm nổi bật

  • Tối ưu nhiều định dạng: GIF, JPEG, JPG, PNG, SVG, WebP.
  • WP-CLI toàn diện: hỗ trợ attachment, batch, restore, reset, find.
  • Tích hợp spatie/image-optimizer: dùng chuỗi công cụ thực sự để nén.
  • Hỗ trợ thư mục tùy chỉnh: tối ưu toàn bộ ảnh trong thư mục bất kỳ.
  • Lệnh nhanh: tối ưu ảnh trong mu-plugins, plugins, themes, wp-admin, wp-includes.
  • Hỗ trợ khôi phục: restore ảnh gốc hoặc reset toàn bộ meta.
  • Yêu cầu nhẹ: PHP 7.2+, WP-CLI 2.3.0+.
  • Cài đặt đơn giản: wp package install typisttech/image-optimize-command.

💡 Vì sao đáng chú ý

Không phải là công cụ nén ảnh giả lập — image-optimize-command gọi trực tiếp các công cụ thực sự (cwebp, svgo, gifsicle...) qua spatie/image-optimizer, mang lại hiệu quả nén cao. Phù hợp với workflow DevOps WordPress, đặc biệt khi cần tối ưu hàng loạt ảnh hoặc tích hợp vào pipeline triển khai.


#WPCLI #WordPress #ImageOptimization #PHP #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPHP
wp-cli/wp-cli

⚙️ WP-CLI framework

5.2k
Nov 25, 2026
RepositoryPHP
spatie/image-optimizer

Easily optimize images using PHP

2.9k
Nov 5, 2026
RepositoryPHP
wp-cli/profile-command

Quickly identify what's slow with WordPress

295
Nov 23, 2026
RepositoryPHP
wp-cli/restful

Unlocking the potential of the WP REST API at the command line

155
Nov 24, 2026
RepositoryPHP
wp-cli/entity-command

Manage WordPress comments, menus, options, posts, sites, terms, and users.

105
Nov 26, 2026
RepositoryPHP
nlemoine/wp-cli-fixtures

Easily generate custom fake data for WordPress using YAML and WP-CLI

102
Aug 29, 2025
RepositoryPHP
igorhrcek/wp-cli-secure-command

Secure package for WP CLI, built to provide an easier way of securing your WordPress installation

95
Feb 1, 2026
RepositoryPHP
wp-cli/db-command

Performs basic database operations using credentials stored in wp-config.php.

76
Nov 9, 2026
RepositoryPHP
wp-cli/server-command

Launches PHP's built-in web server for a specific WordPress installation.

68
Nov 9, 2026