Title: Squidge
Author: Ainsley Clark
Published: <strong>Ọ̀pẹ  8, 2021</strong>
Last modified: Ọ̀pẹ  21, 2021

---

Ṣàwárí àwọn plugin

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/squidge/assets/icon.svg?rev=2641409)

# Squidge

 Láti ọwọ́ [Ainsley Clark](https://profiles.wordpress.org/ainsleyclark/)

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

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

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

## Àpèjúwe

Squidge is a FREE WordpPress Plugin built for developers in mind compressing and
convert images using jpegoptim,
 optipng, cwebp, and libavif. ItÌtumọ̀ Yorùbá: ’
s extremley simple to use and is designed to increase PSI and boost rankings.

### Why?

Image compression in WordPress can be costly, confusing and sometimes just simply
donÌtumọ̀ Yorùbá: ’t work. We have aimed to simplify
 the process by requiring the
developer to install the required package on the operating system and Squidge does
the hard work for you.

 * **ITÌtumọ̀ Yorùbá: ’S FREE**
 * Unlimited file size, no limits.
 * Optimised for your site to rank.
 * CLI to regenerate all of your media files.
 * Helper functions to output images in templates.
 * Uses the native `cwebp` and `libavif` libraries.

### What does Squidge do?

Squidge compresses and converts image files when the user has uploaded a file to
WordPress.

 * Compresses JPG images using `jpegoptim`.
 * Compresses PNG images using `optipng`.
 * Converts JPG and PNG images to `.webp` files using `cwebp` with the appended 
   extension e.g. `image.jpg.webp`.
 * Converts JPG and PNG images to `.avif` files using `libavif` with the appended
   extension e.g. `image.jpg.avif`.

### Render Images

To render images in templates, you can either set up nginx or apache rules to serve
images dynamically or used the
 squidge_image helper function. This dynamically 
checks if an `.avif` or `.webp` file is available on the file system and returns
the output.

### Function

    ```
    /**
     * Returns a <picture> element with source media for the standard file passed
     * (such as a JPG), the .avif file, the .webp file (if to exist on the file system).
     *
     * Appropriate <source> elements for image sizes with max widths.
     * Finally, the main be outputted with alt and title text.
     *
     * - If lazy is true, the data-src or data-srcset will be appended.
     * - If a class is set, the class will be outputted on the <picture> element.
     *
     * @param $image_id
     * @param string $class
     * @param false $lazy
     * @return string
     */
    function squidge_image($image_id, $class = '', $lazy = false)
    ```

### Output

    ```
    <picture class="picture">
        <!-- Loads if AVIF is supported and the window is smaller than 400px wide -->
        <source media="(max-width: 400px)" srcset="/sample-image.jpg.avif" type="image/avif">
        <source media="(max-width: 400px)" srcset="/sample-image.jpg.webp" type="image/webp">
        <source media="(max-width: 400px)" srcset="/sample-image.jpg">
        <!-- AVIF & Wep Initial Sizes -->
        <source srcset="/sample-image.jpg.avif" type="image/avif">
        <source srcset="/sample-image.jpg.webp" type="image/webp">
        <!-- Default -->
        <img src="/sample-image.jpg" alt="Alt text" title="Sample JPG">
    </picture>
    ```

### Credits

Written by [Ainsley Clark](https://github.com/ainsleyclark)

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

[⌊Plugin settings page⌉⌊Plugin settings page⌉[

Plugin settings page

[⌊Example compression tab⌉⌊Example compression tab⌉[

Example compression tab

## Ìgbéwọlẹ̀

 1. Go to the [releases](https://github.com/ainsleyclark/squidge/releases) section 
    and download the plugin.
 2. Upload the `squidge` plugin to your `/wp-content/plugins/` directory.
 3. Activate the plugin through the “Plugins” menu in WordPress.
 4. Check the Settings tab under `Settings | Squidge Options` to ensure the libraries
    are installed, if they arenÌtumọ̀ Yorùbá: ’t, run the commands listed dependent
    on your operating system.
 5. Check the individual optimisation tabs and adjust settings accordingly.
 6. Done!

## FAQ

### Does the plugin replace existing images?

Yes

### What are the supported operating systems?

Windows, Linux, & Mac OSX.

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

![](https://secure.gravatar.com/avatar/295394aed1bab38e59adfe9ab0b49af466ef111e036c506e780437880dc8cf0d?
s=60&d=retro&r=g)

### 󠀁[Settings page empty](https://wordpress.org/support/topic/settings-page-empty-8/)󠁿

 [Hans Konings](https://profiles.wordpress.org/kamawp/) Èrèlé 13, 2023

DoesnÌtumọ̀ Yorùbá: ’t work at all. Tried it on two different websites. On both 
websites the settings pages is empty. No setting adjustments possible.

![](https://secure.gravatar.com/avatar/8f4f5bd7847efbf7dd93c2bf9939447c7d2e8601b380520c51efa99a65afb8f9?
s=60&d=retro&r=g)

### 󠀁[Cool Idea](https://wordpress.org/support/topic/cool-idea-6/)󠁿

 [pressport](https://profiles.wordpress.org/pressport/) Ọ̀pẹ 30, 2021

This looks promising! It seems to be the only such solution for avif that can run
on the userÌtumọ̀ Yorùbá: ’s own hosting.

![](https://secure.gravatar.com/avatar/c2d8590b3bd25e67a6ed4ef8bee9c915d7b22c816f65c94909fd2c55535cbaa1?
s=60&d=retro&r=g)

### 󠀁[Awesome plugin!](https://wordpress.org/support/topic/awesome-plugin-6277/)󠁿

 [OhColar](https://profiles.wordpress.org/ohcolar/) Ọ̀pẹ 21, 2021

IÌtumọ̀ Yorùbá: ’ll be using this plugin for all my projects for sure! ItÌtumọ̀ 
Yorùbá: ’s really useful as compression can be a nightmare with WordPress. CanÌtumọ̀
Yorùbá: ’t believe itÌtumọ̀ Yorùbá: ’s free too.

 [ Ka gbogbo àwọn àgbéyẹ̀wò 3 ](https://wordpress.org/support/plugin/squidge/reviews/)

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

“Squidge” 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

 *   [ Ainsley Clark ](https://profiles.wordpress.org/ainsleyclark/)

A ti túmọ̀ “Squidge” sí àwọn èdè agbègbè 2. Ọpẹ́lọpẹ́ fún [àwọn atúmọ̀ èdè](https://translate.wordpress.org/projects/wp-plugins/squidge/contributors)
fún àwọn ìkópa wọn.

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

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

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

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

#### 0.1.0

 * Initial Release

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **0.1.4**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 4 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **30+**
 *  Ẹ̀yà WordPress ** 5.5 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **5.8.13**
 *  Ẹ̀yà PHP ** 5.6 tàbí ju bẹ́ẹ̀ lọ **
 *  Àwọn èdè
 * [English (US)](https://wordpress.org/plugins/squidge/), [German](https://de.wordpress.org/plugins/squidge/),
   àti [Russian](https://ru.wordpress.org/plugins/squidge/).
 *  [Túmọ̀ sí èdè rẹ](https://translate.wordpress.org/projects/wp-plugins/squidge)
 * Àwọn àmì
 * [compression](https://yor.wordpress.org/plugins/tags/compression/)[image](https://yor.wordpress.org/plugins/tags/image/)
   [image compression](https://yor.wordpress.org/plugins/tags/image-compression/)
   [lazy load](https://yor.wordpress.org/plugins/tags/lazy-load/)[webp](https://yor.wordpress.org/plugins/tags/webp/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/squidge/advanced/)

## Àwọn ìbò

 3.7 lára àwọn ìràwọ̀ 5.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/squidge/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/squidge/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/squidge/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/squidge/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/squidge/reviews/?filter=1)

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

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

## Àwọn Olùkópa

 *   [ Ainsley Clark ](https://profiles.wordpress.org/ainsleyclark/)

## Ì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/squidge/)

## Ṣ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/donate?hosted_button_id=PQG5A34KWUXRJ)