PHPackages                             jmucak/wp-image-pack - 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. jmucak/wp-image-pack

ActiveLibrary[Image &amp; Media](/categories/media)

jmucak/wp-image-pack
====================

WP image pack

v1.0.0(1y ago)079MITPHPPHP &gt;=8.0

Since Sep 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jmucak/wp-image-pack)[ Packagist](https://packagist.org/packages/jmucak/wp-image-pack)[ RSS](/packages/jmucak-wp-image-pack/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

wp-image-pack
=============

[](#wp-image-pack)

Table of contents
-----------------

[](#table-of-contents)

1. [Project info](#project-info)
2. [Requirements](#requirements)
3. [Installation](#installation)
4. [Features](#features)
5. [Usage](#usage)

### Project info

[](#project-info)

WordPress image pack for custom theme and plugins development

- repository: `https://github.com/jmucak/wp-image-pack`

### Requirements

[](#requirements)

- PHP &gt; 8.1
- composer v2

### Installation

[](#installation)

#### Template setup

[](#template-setup)

- Run `composer require jmucak/wp-image-pack` inside your custom theme or plugin folder

### Features

[](#features)

- creating images on demand
- de registering non-core image sizes

### Usage

[](#usage)

- inside your theme/plugin call ImageProvider to register custom image sizes or de register non-core image sizes

#### Register image Sizes

[](#register-image-sizes)

```
new ImageProvider(array(
    'image_sizes' => array(
        'image_200'  => array( 200, 0, false ), // width, height, crop
        'image_800'  => array( 800, 0, true ),
        'image_1000' => array( 1000, 0, true ),
    ),
));

```

#### De register non-core image sizes

[](#de-register-non-core-image-sizes)

```
new ImageProvider(array(
    'deregister_image_sizes' => array('1536x1536', '2048x2048'),
));

```

- You can use ImageService class to get image by custom size name or by custom size

#### Get image by size name

[](#get-image-by-size-name)

```
$image_url = ImageService::get_instance()->get_image_url(1, 'image_800');

```

- you can also use registered image sizes

```
$image_url = ImageService::get_instance()->get_image_url(1, 'thumbnail');
$image_url = ImageService::get_instance()->get_image_url(1, 'medium');

```

#### Get image by custom size name

[](#get-image-by-custom-size-name)

```
$image_url = ImageService::get_instance()->get_image_url( 1, array( 500, 0, true ) );

```

#### Get alt value

[](#get-alt-value)

- This will get alt value from meta, but if nothing is entered in admin, it will show attachment's title

```
$image_alt = ImageService::get_instance()->get_image_alt(1);

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

586d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2badb8c97a53b62fdd92e6cf28b96e901a27401c4ffdbab3ca1e45c3f37540be?d=identicon)[jmucak](/maintainers/jmucak)

---

Top Contributors

[![jmucak](https://avatars.githubusercontent.com/u/27969784?v=4)](https://github.com/jmucak "jmucak (10 commits)")

### Embed Badge

![Health badge](/badges/jmucak-wp-image-pack/health.svg)

```
[![Health](https://phpackages.com/badges/jmucak-wp-image-pack/health.svg)](https://phpackages.com/packages/jmucak-wp-image-pack)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)[marc1706/fast-image-size

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

959.4M20](/packages/marc1706-fast-image-size)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)

PHPackages © 2026

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