PHPackages                             powerbuoy/sleek-image-sizes - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. powerbuoy/sleek-image-sizes

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

powerbuoy/sleek-image-sizes
===========================

Utility functions for registering WordPress image sizes.

v1.2.0(6y ago)03.3k1GPL-2.0-or-laterPHP

Since Sep 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/powerbuoy/sleek-image-sizes)[ Packagist](https://packagist.org/packages/powerbuoy/sleek-image-sizes)[ RSS](/packages/powerbuoy-sleek-image-sizes/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (9)Used By (1)

[Sleek Image Sizes](https://github.com/powerbuoy/sleek-image-sizes/)
====================================================================

[](#sleek-image-sizes)

[![Packagist](https://camo.githubusercontent.com/9f9d438b0dc8150035eb1f754b2695610ffeb6636864f9636b5ed5376fcf8d07/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f706f77657262756f792f736c65656b2d696d6167652d73697a65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/powerbuoy/sleek-image-sizes)[![GitHub license](https://camo.githubusercontent.com/14f9354a29d03fcc3fe281836c2a5aae9ddb8cad899af0a8fb73d105dcf73426/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f706f77657262756f792f736c65656b2d696d6167652d73697a65732e7376673f7374796c653d666c61742d737175617265)](https://github.com/powerbuoy/sleek-image-sizes/blob/master/LICENSE)[![GitHub issues](https://camo.githubusercontent.com/749247ee130cc9a7bb8f095ae982c2d9d9ba9e08512d3add9af9438afc2396cd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f706f77657262756f792f736c65656b2d696d6167652d73697a65732e7376673f7374796c653d666c61742d737175617265)](https://github.com/powerbuoy/sleek-image-sizes/issues)[![GitHub forks](https://camo.githubusercontent.com/8b38e67f0eeb84dcee821b58bae4a87eae7be4771948d9b00048f119bf7224b6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f706f77657262756f792f736c65656b2d696d6167652d73697a65732e7376673f7374796c653d666c61742d737175617265)](https://github.com/powerbuoy/sleek-image-sizes/network)[![GitHub stars](https://camo.githubusercontent.com/023b4bad6b565f8662cbc78df018bbbbebf535c979a528c27f73a1757de76150/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f706f77657262756f792f736c65656b2d696d6167652d73697a65732e7376673f7374796c653d666c61742d737175617265)](https://github.com/powerbuoy/sleek-image-sizes/stargazers)

Utility functions for registering WordPress image sizes.

Theme support
-------------

[](#theme-support)

N/A

Hooks
-----

[](#hooks)

N/A

Functions
---------

[](#functions)

### `Sleek\ImageSizes\register($width, $height, $crop, $additionalSizes)`

[](#sleekimagesizesregisterwidth-height-crop-additionalsizes)

Overrides WordPress' built-in thumbnail sizes (thumbnail, medium, medium\_large and large) using the dimensions passed to the function, e.g: `Sleek\ImageSizes\register(1920, 1080, ['center', 'center']);` where large will be `1920x1080`, `medium_large` will be 75% of that size, `medium` 50% and `thumbnail` 25%.

Also accepts a fourth argument, `$additionalSizes`, which allows you to register more sizes under different names;

```
Sleek\ImageSizes\register(1920, 1080, ['center', 'center'], [
	'portrait' => ['width' => 1080, 'height' => 1920, 'crop' => ['center', 'top']],
	'square' => ['width' => 1920, 'height' => 1920],
]);

```

Each additional size will be registered as `{$name}_large`, `{$name}_medium_large` (75%), `{$name}_medium` (50%) and `{$name}_thumbnail` (25%)

### `Sleek\ImageSizes\get_image_sizes($width, $height)`

[](#sleekimagesizesget_image_sizeswidth-height)

Helper function for `register()`.

Classes
-------

[](#classes)

N/A

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~23 days

Recently: every ~30 days

Total

8

Last Release

2308d ago

Major Versions

v0.0.1 → v1.0.02019-09-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/a7d034a25f49ff2aa981870d3dd3aca41cff17638931a9fdb5f1d0de46fcc12c?d=identicon)[powerbuoy](/maintainers/powerbuoy)

---

Top Contributors

[![powerbuoy](https://avatars.githubusercontent.com/u/1027780?v=4)](https://github.com/powerbuoy "powerbuoy (11 commits)")

### Embed Badge

![Health badge](/badges/powerbuoy-sleek-image-sizes/health.svg)

```
[![Health](https://phpackages.com/badges/powerbuoy-sleek-image-sizes/health.svg)](https://phpackages.com/packages/powerbuoy-sleek-image-sizes)
```

###  Alternatives

[philipnewcomer/acf-unique-id-field

An ACF field which generates a unique ID value, intended for use in ACF Repeaters

4829.1k](/packages/philipnewcomer-acf-unique-id-field)[davedevelopment/pimple-aware-event-dispatcher

A Symfony compatible event dispatcher that allows services to be lazy loaded from an instance of the Pimple DI container

122.5k1](/packages/davedevelopment-pimple-aware-event-dispatcher)

PHPackages © 2026

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