跳到内容

Slimage

v1.0.4

Giorgos Sarigiannidis · 2018年9月12日 上架

A WordPress plugin that uses jpegoptim and optipng to compress images during upload, allowing you to override the compression level and quality on a p …

正在使用
20+
评分
暂无
累计下载
3,224
最近更新
2026年10月15日
需要 WordPress 4.8+已测试到 7.1.5PHP 7.0+

截图

The main settings of the plugin, under Settings / Media.
The main settings of the plugin, under Settings / Media.
The option to override quality for a specific image under the image's edit page.
The option to override quality for a specific image under the image's edit page.
A sample of a few compression levels. The first image keeps the default WordPress compression and no Slimage compression applied (65.33KB). The rest of the samples are compressed with 60% (40.26KB), 50% (35.5KB), 40% (33.03KB), 30% (26.25KB), 20% (20.64KB) and 10% (13.3KB).
A sample of a few compression levels. The first image keeps the default WordPress compression and no Slimage compression applied (65.33KB). The rest of the samples are compressed with 60% (40.26KB), 50% (35.5KB), 40% (33.03KB), 30% (26.25KB), 20% (20.64KB) and 10% (13.3KB).

Slimage uses jpegoptim and optipng to compress your images during upload. It will compress the thumbnails that WordPress generates but will leave the original file intact, so that you can safely restore your changes if necessary.

The plugin will also allow you to manually set the compression level and quality on a per-image basis. That way you have absolute control on how much quality you are willing to sacrifice in order to achieve better performance improvements, which can be handy if you want to pass the Google PageSpeed test.

Using it in conjuction with the wp media regenerate command of WP-CLI or with some thumbnail regeneration plugin, you can bulk optimize your photos and even experiment until you find the combination of quality/size that suits you.

To use the plugin you need to have jpegoptim and optipng installed on your server and make sure that PHP shell_exec() function isn’t disabled in your php.ini.

Features

  • Compress an image during upload.
  • You can set a default level of compression for all newly uploaded images.
  • You can override that compression level on a per-image basis.
  • You can use all the available options of jpegoptim and optipng.
  • Combining it with some image regeneration tool, you can bulk compress your existing images.
  • The plugin leaves the original image intact, so that any change that you make can be reversible.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums