PHPackages                             offbeatwp/re-smush - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. offbeatwp/re-smush

ActiveOffbeatwp-service[Image &amp; Media](/categories/media)

offbeatwp/re-smush
==================

Makes images so much smaller

052[1 PRs](https://github.com/offbeatwp/re-smush/pulls)PHP

Since Nov 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/offbeatwp/re-smush)[ Packagist](https://packagist.org/packages/offbeatwp/re-smush)[ RSS](/packages/offbeatwp-re-smush/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Re-smush service for offbeatWP
==============================

[](#re-smush-service-for-offbeatwp)

This is a re-smush service package for [offbeatWP](https://github.com/offbeatwp). After loading the service into offbeatWP it's going to send images to the [resmush.it](https://resmush.it) API every time an image is uploaded. When the API has smushed the image, the service will fetch the image and replace the original by it.

### By default

[](#by-default)

- The images are optimized to 90% of the quality of the original.
- If the API is offline or giving an error code you can find this error in the debug log [(if enabled)](https://wordpress.org/support/article/debugging-in-wordpress/).
- If the API is offline it will ignore the call and just only upload the images.
- If the size of the image is bigger than 5MB the image will be ignored.

[![example](https://github.com/offbeatwp/re-smush/raw/master/example.png)](https://github.com/offbeatwp/re-smush/blob/master/example.png)

### Workflow

[](#workflow)

After uploading, a copy of the original file is made. The thumbnails are created after this. These are optimized based on the original (non-optimized) image. The original image is also optimized in this hook. The original file can be found in the upload folder 'filename.extension. original' without any compression. If you generate thumbnails again, it will use the (non-optimized) image.

### Regenerate image

[](#regenerate-image)

If you are not happy with the optimization, you can set the options differently and re-optimize the images. You can do this by recreating the thumbnails. For example via this plug-in (). I use the hook which is called when the thumbnails are (re-)generated. It is also possible to use the [CLI function to regenerate the thumbnails](https://developer.wordpress.org/cli/commands/media/regenerate/)

Installation
------------

[](#installation)

Install the package using [Composer](https://getcomposer.org/) (**First you need to go to the OffbeatWP theme folder**)

```
composer require offbeatwp/re-smush

```

Then you need to add the re-smush as service. You can do this by adding the service in the `config/service.php` file.

```
OffbeatWP\ReSmush\Service::class,

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ade73108a50285c69498c010ae11da6afc1e1c0bbb7f58e801a8044cc5dc47f7?d=identicon)[chris-raow](/maintainers/chris-raow)

![](https://avatars.githubusercontent.com/u/6848396?v=4)[Daan Seegers](/maintainers/dseegers)[@dseegers](https://github.com/dseegers)

---

Top Contributors

[![dseegers](https://avatars.githubusercontent.com/u/6848396?v=4)](https://github.com/dseegers "dseegers (19 commits)")

### Embed Badge

![Health badge](/badges/offbeatwp-re-smush/health.svg)

```
[![Health](https://phpackages.com/badges/offbeatwp-re-smush/health.svg)](https://phpackages.com/packages/offbeatwp-re-smush)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
