Title: Slimage
Author: Giorgos Sarigiannidis
Published: <strong>Ọwẹ́wẹ̀  12, 2018</strong>
Last modified: Bélú 5, 2023

---

Ṣàwárí àwọn plugin

![](https://ps.w.org/slimage/assets/banner-772x250.jpg?rev=2841235)

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://ps.w.org/slimage/assets/icon-256x256.jpg?rev=2841235)

# Slimage

 Láti ọwọ́ [Giorgos Sarigiannidis](https://profiles.wordpress.org/gsarig/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/slimage.1.0.3.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/slimage/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/slimage/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/slimage/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/slimage/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/slimage/)

## Àpèjúwe

Slimage uses [jpegoptim](https://github.com/tjko/jpegoptim) and [optipng](http://optipng.sourceforge.net/)
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](https://wp-cli.org/)
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Ìtumọ̀ Yorùbá: ’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.

## Àwọn àwòrán ìbòjú

 * [[
 * The main settings of the plugin, under Settings / Media.
 * [[
 * The option to override quality for a specific image under the imageÌtumọ̀ Yorùbá:’
   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).

## Ìgbéwọlẹ̀

 1. Install jpegoptim and optipng on your server.
 2. Make sure that shell_exec() is active on your php.ini (it usually is).
 3. Upload the Slimage plugin to your WordPress plugins directory and activate it.
 4. Go to Settings / Media and check the “Enable Slimage” under “Compress images with
    Slimage”. If jpegoptim and optipng are installed on a custom path on your server,
    set that path under “Server path for jpegoptim & optipng”.

## FAQ

### Can I bulk regenerate already uploaded images?

Yes. After you set your desired compression level on the plugin settings and save
your changes, you can use the `wp media regenerate` command of the amazing [WP-CLI](https://wp-cli.org/)
to regenerate the thumbnails. If you donÌtumọ̀ Yorùbá: ’t feel comfortable with 
the command line and prefer to do it with a plugin, [Force Regenerate Thumbnails](https://wordpress.org/plugins/force-regenerate-thumbnails/)
and [AJAX Thumbnail Rebuild](https://wordpress.org/plugins/ajax-thumbnail-rebuild/)
have been tested and confirmed to play nice with Slimage.

### Can I set different compression level for a specific image?

Yes. On each image edit page there is an option called “Override quality” which 
allows you to set your specific settings for that particular image. After changing
your image settings, you still need to regenerate its thumbnails in order to run
the compression.

### Can I use this plugin if I donÌtumọ̀ Yorùbá: ’t have jpegoptim or optipng installed on my server?

If neither jpegoptim nor optipng exist on your server, then the plugin wonÌtumọ̀
Yorùbá: ’t work. It wonÌtumọ̀ Yorùbá: ’t break your site, but it will not do anything(
except from showing a related warning message on itÌtumọ̀ Yorùbá: ’s settings page).
If only one of the tools exists, then it will use it to process the specific type
of images only (JPEGs for jpegoptim and PNGs for optipng).

### Can I use this plugin if `shell_exec()` isnÌtumọ̀ Yorùbá: ’t enabled on my php.ini?

No. The plugin relies on the PHP `shell_exec()` function which is by default enabled
by most hosting companies. If, in your case, it is disabled, you will not be able
to use it. Again, this will not break your site.

### What extra arguments can I set?

The default extra arguments should be fine for most cases. If you really want to
play around with it, though, there are various additional options for both [jpegoptim](http://www.kokkonen.net/tjko/src/man/jpegoptim.txt)
and [optipng](http://optipng.sourceforge.net/optipng-0.7.7.man.pdf).

### Can I pass the Google Pagespeed test with that plugin?

Yes. But you might need to make some compromise on the quality of your photos. For
JPEGs, setting the quality level to 50 or 60 is enough to pass the test on most 
cases. Depending on the complexity of the image, though, on some cases the quality
loss might be visible to the naked eye so you might need to experiment with the 
level of quality.

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“Slimage” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin
yìí.

Àwọn Olùkópa

 *   [ Giorgos Sarigiannidis ](https://profiles.wordpress.org/gsarig/)

[Túmọ̀ “Slimage” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/slimage)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/slimage/), ṣàyẹ̀wò [ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/slimage/),
tàbí ṣe àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/slimage/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/slimage/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 1.0.3

 * CSS fix for better compatibility with ACF

#### 1.0.2

 * Check sizes existence to prevent PHP warning
 * CSS fixes

#### 1.0.1

 * Moved project to Github (https://github.com/gsarig/slimage).
 * Updated WP version compatibility.

#### 1.0

 * Initial release

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.0.3**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 3 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **20+**
 *  Ẹ̀yà WordPress ** 4.8 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **6.4.8**
 *  Ẹ̀yà PHP ** 7.0 tàbí ju bẹ́ẹ̀ lọ **
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/slimage/)
 * Àwọn àmì
 * [compress](https://yor.wordpress.org/plugins/tags/compress/)[image](https://yor.wordpress.org/plugins/tags/image/)
   [optimization](https://yor.wordpress.org/plugins/tags/optimization/)[Optimize](https://yor.wordpress.org/plugins/tags/optimize/)
   [optipng](https://yor.wordpress.org/plugins/tags/optipng/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/slimage/advanced/)

## Àwọn ìbò

Kò sí ìwádìí tí a tíì fi ránṣẹ́.

[Your review](https://wordpress.org/support/plugin/slimage/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/slimage/reviews/)

## Àwọn Olùkópa

 *   [ Giorgos Sarigiannidis ](https://profiles.wordpress.org/gsarig/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/slimage/)

## Ṣe ìtọrẹ

Ṣé o fẹ́ ṣe àtìlẹ́yìn fún ìlọsíwájú plugin yìí?

 [ Ṣe ìtọrẹ sí plugin yìí ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WLR4KUNK7NZJE)