PHPackages                             trisnawan/image-resizer - 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. trisnawan/image-resizer

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

trisnawan/image-resizer
=======================

Resizer, Thumbnailer, Cropper Image with PHP Imagick

v1.1.0(2y ago)161MITPHPPHP &gt;=7.4.0

Since Jan 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/trisnawan/image-resizer)[ Packagist](https://packagist.org/packages/trisnawan/image-resizer)[ RSS](/packages/trisnawan-image-resizer/feed)WikiDiscussions master Synced 1mo ago

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

Image Resizer
=============

[](#image-resizer)

Change the maximum image size to get storage-efficient image files. Crop the image into a square to make it easier to create a profile photo.

Instalation
-----------

[](#instalation)

```
composer require trisnawan/image-resizer
```

Initialization
--------------

[](#initialization)

```
use Trisnawan\ImageResizer\ImageResizer;
```

```
// Image from user upload
$filePath = $_FILES["image"]["tmp_name"];

// Image from local storage
$filePath = "path/to/image_file.jpg";

$resizer = new ImageResizer($filePath);
```

Simple reduce image size
------------------------

[](#simple-reduce-image-size)

Use the maximum pixels and the image will be automatically reduced to the maximum size.

```
// Max Width in pixels
$maxWidth = 640;
$resizer->maxWidth($maxWidth);
```

Simple crop image
-----------------

[](#simple-crop-image)

```
// Crop the image into a square from the center
$resizer->cropCenter();

// Crop the image into a square from the top
$resizer->cropTop();
```

Save to local storage
---------------------

[](#save-to-local-storage)

```
$saveFilePath = "path/to/image_new.jpg";
$resizer->writeImage($saveFilePath);
```

Show Blob image
---------------

[](#show-blob-image)

```
// Show in blob
$resizer->getBlob();
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Every ~0 days

Total

2

Last Release

839d ago

### Community

Maintainers

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

---

Top Contributors

[![trisnawan](https://avatars.githubusercontent.com/u/64518006?v=4)](https://github.com/trisnawan "trisnawan (5 commits)")

---

Tags

thumbnailresizecrop

### Embed Badge

![Health badge](/badges/trisnawan-image-resizer/health.svg)

```
[![Health](https://phpackages.com/badges/trisnawan-image-resizer/health.svg)](https://phpackages.com/packages/trisnawan-image-resizer)
```

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[sybio/image-workshop

Powerful PHP class using GD library to work easily with images including layer notion (like Photoshop or GIMP)

860918.1k11](/packages/sybio-image-workshop)[jbzoo/image

A PHP class that simplifies working with images

171126.9k3](/packages/jbzoo-image)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

141110.4k6](/packages/stefangabos-zebra-image)[ctessier/nova-advanced-image-field

An advanced image field for Nova with cropping and resizing.

103548.4k1](/packages/ctessier-nova-advanced-image-field)

PHPackages © 2026

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