PHPackages                             hsnmsri/pixel - 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. hsnmsri/pixel

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

hsnmsri/pixel
=============

resize, compress and other image processing.

v1.0.0(2y ago)05PHP

Since Jan 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Hsnmsri/pixel_php)[ Packagist](https://packagist.org/packages/hsnmsri/pixel)[ RSS](/packages/hsnmsri-pixel/feed)WikiDiscussions main Synced 1mo ago

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

Pixel
=====

[](#pixel)

Optimize and enhance your web application's image performance effortlessly with Pixel, a powerful PHP toolkit for resizing, compressing, and optimizing image quality. Boost your site's loading speed and user experience by seamlessly integrating our efficient image processing functions. Whether you're a developer or a website owner, Pixel simplifies the complex task of image optimization, ensuring your visuals look stunning without compromising performance. Elevate your website's speed and aesthetics with this lightweight and easy-to-use PHP image processing solution.

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

[](#installation)

You can install Pixel PHP via [Composer](https://getcomposer.org/):

```
composer require hsnmsri/pixel
```

Resize image tool
-----------------

[](#resize-image-tool)

Pixel PHP is a lightweight image resizing library for PHP, designed to simplify the process of resizing images while providing flexibility and ease of use.

```
Pixel::resizeImage(imagePath,resizedImagePath,newWidth, newHeight, createPathIfNotExists = false)
```

### Features

[](#features)

- Resize images with specified dimensions.
- Support for both local file paths and URLs.
- Option to create the destination directory if it doesn't exist.
- Error handling with detailed exceptions.

Change image quality tool
-------------------------

[](#change-image-quality-tool)

Pixel PHP is a versatile image processing library for PHP, designed to simplify common image operations. The `changeQuality` function allows you to modify the quality of both JPEG and PNG images.

```
Pixel::changeQuality(imagePath,resizedImagePath,quality, createPathIfNotExists = false)
```

### Features

[](#features-1)

- Change the quality of JPEG and PNG images.
- Support for both local file paths and URLs.
- Option to create the destination directory if it doesn't exist.
- Error handling with detailed exceptions.

Compress Image tool
-------------------

[](#compress-image-tool)

Pixel PHP is a versatile image processing library for PHP, designed to simplify common image operations. The `compressImage` function allows you to compress and reduce the file size of both JPEG and PNG images without significantly lowering the quality.

```
Pixel::changeQuality(imagePath,resizedImagePath,compressionLevel = 9, createPathIfNotExists = false)
```

### Features

[](#features-2)

- Compress and lower the file size of JPEG and PNG images.
- Lossless compression to maintain image quality.
- Support for both local file paths and URLs.
- Option to create the destination directory if it doesn't exist.
- Error handling with detailed exceptions.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

852d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e3d5bcaae20d3a14d0d7c2def9f5739568bb2a3462b01831611cdd03bdbfe39?d=identicon)[mr\_mansouri](/maintainers/mr_mansouri)

---

Top Contributors

[![Hsnmsri](https://avatars.githubusercontent.com/u/88803613?v=4)](https://github.com/Hsnmsri "Hsnmsri (8 commits)")

---

Tags

imageimage-processingphp-image-processorphp-image-resizerphp-image-watermarkerphp-imagespixel

### Embed Badge

![Health badge](/badges/hsnmsri-pixel/health.svg)

```
[![Health](https://phpackages.com/badges/hsnmsri-pixel/health.svg)](https://phpackages.com/packages/hsnmsri-pixel)
```

###  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.0k23](/packages/bkwld-croppa)[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)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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