• The best import export plugin
  • Supports very large files
  • Simple interface & flexible API
  • Import, Export, Migrate, Bulk Edit

Squidge

by Ainsley Clark

3 Ratings

  • 3.5

Active Installations

40+

Last Update

3 years

Quality

D

Plugin Description

Description
Squidge is a FREE WordpPress Plugin built for developers in mind compressing and convert images using jpegoptim,
optipng, cwebp, and libavif. It’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’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’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 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).
*
* Appropriateelements 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 element.
*
* @param $image_id
* @param string $class
* @param false $lazy
* @return string
*/
function squidge_image($image_id, $class = ”, $lazy = false)
Output
Alt text
Credits
Written by Ainsley Clark

Similar Plugins

  • Report Bug
The content on this website originates from various sources. All rights to the original content remain with the respective author. If you believe that your copyrights have been infringed by the use of content on this website, please contact us at info@plugin-guru.com. We will remove the content in question immediately.

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Regular Price

Free download

Key Features

  • You will be redirected to the retailer

Collections

Create your first Collection

To create a collection, simply click on the symbol on the desired plugin.

You can see this symbol when you move the mouse over the plugin. 

Current Level

Plugin Magican

You have reached 0 views on your collections and are currently Plugin Magican. You magically help people find the right plugins and are a great asset to the community

0 of 500 views reached