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 2d 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

Maturity47

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

899d 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

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

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

16653.6k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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