PHPackages                             yusufshakeel/dyreimage-php - 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. yusufshakeel/dyreimage-php

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

yusufshakeel/dyreimage-php
==========================

This is an image resizing project.

v1.1.2(8y ago)0121PHPPHP ^5.5.0

Since Apr 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/yusufshakeel/dyreimage-php)[ Packagist](https://packagist.org/packages/yusufshakeel/dyreimage-php)[ Docs](https://github.com/yusufshakeel/dyreimage-php)[ RSS](/packages/yusufshakeel-dyreimage-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

dyreimage-php
=============

[](#dyreimage-php)

This is an image resizing project.

Status
======

[](#status)

[![license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/yusufshakeel/dyreimage-php)[![Build Status](https://camo.githubusercontent.com/7170fe4e8a68564827be6736004dc862ca6c2e43c7ee8f79ff785c88aa8563ad/68747470733a2f2f7472617669732d63692e6f72672f79757375667368616b65656c2f64797265696d6167652d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yusufshakeel/dyreimage-php)[![npm version](https://camo.githubusercontent.com/0f858671d5021552a6cab02735e0f9134cc810e05d2f4f2cb68e1bde3dd80532/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6e706d2d312e312e302d626c75652e737667)](https://www.npmjs.com/package/dyreimage-php)[![Bower](https://camo.githubusercontent.com/5278791032dc09c69918362f7ee1043f34870fc650d31c1c8b3bcc52f17a8d50/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f626f7765722d312e312e302d626c75652e737667)](https://bower.io/search/?q=dyreimage-php)

Documentation
=============

[](#documentation)

[Click here for the documentation.](https://www.dyclassroom.com/dyreimage-php/getting-started)

Getting started
===============

[](#getting-started)

- [Download the latest release.](https://github.com/yusufshakeel/dyreimage-php/releases)
- Clone the repo: `git clone https://github.com/yusufshakeel/dyreimage-php.git`
- Install with [Bower](https://bower.io): `bower install dyreimage-php`
- Install with [npm](https://www.npmjs.com): `npm install dyreimage-php`
- Install using composer `composer require yusufshakeel/dyreimage-php`

Requirement
===========

[](#requirement)

DYReImage requires the following:

- PHP version 5.5 or higher.
- GD extension.

Brief history
=============

[](#brief-history)

I was working on an [Image Processing Project](https://github.com/yusufshakeel/Java-Image-Processing-Project) when I was in college back in 2014. Created this project back then and then decided to make some more changes and put it on GitHub.

What's inside
=============

[](#whats-inside)

```
dyreimage-php/
├── image/
│   └── sample.jpeg
├── src/
│   └── DYReImage/
│       ├── Core/
│       │   ├── Config.php
│       │   ├── Helper.php
│       │   └── Validator.php
│       ├── Utilities/
│       │   ├── Image.php
│       │   └── Resize.php
│       ├── autoload.php
│       └── DYReImage.php
├── tests/
└── index.php

```

How to use?
===========

[](#how-to-use)

Include the `DYReImage` directory which is inside the `src` directory in your project. Now to start using it write the following code.

```

```

Note! You must have write permission in order to save the resized image in the destination directory.

Create grayscale image
======================

[](#create-grayscale-image)

```
require_once 'path/to/DYReImage/autoload.php';

$source = 'path/to/image/sample.jpg';
$destination = 'path/to/image/output.png';
$option = array(
	"quality" => 80
);

try {
	$obj = new DYReImage\DYReImage($source, $destination, $option);
	$obj->grayscaleImage();
} catch(\Exception $e) {
	die("Error: " . $e->getMessage());
}

```

Create red image
================

[](#create-red-image)

```
require_once 'path/to/DYReImage/autoload.php';

$source = 'path/to/image/sample.jpg';
$destination = 'path/to/image/output.png';
$option = array(
	"quality" => 80
);

try {
	$obj = new DYReImage\DYReImage($source, $destination, $option);
	$obj->redImage();
} catch(\Exception $e) {
	die("Error: " . $e->getMessage());
}

```

Create green image
==================

[](#create-green-image)

```
require_once 'path/to/DYReImage/autoload.php';

$source = 'path/to/image/sample.jpg';
$destination = 'path/to/image/output.png';
$option = array(
	"quality" => 80
);

try {
	$obj = new DYReImage\DYReImage($source, $destination, $option);
	$obj->greenImage();
} catch(\Exception $e) {
	die("Error: " . $e->getMessage());
}

```

Create blue image
=================

[](#create-blue-image)

```
require_once 'path/to/DYReImage/autoload.php';

$source = 'path/to/image/sample.jpg';
$destination = 'path/to/image/output.png';
$option = array(
	"quality" => 80
);

try {
	$obj = new DYReImage\DYReImage($source, $destination, $option);
	$obj->blueImage();
} catch(\Exception $e) {
	die("Error: " . $e->getMessage());
}

```

License
=======

[](#license)

It's free and released under [MIT License](https://github.com/yusufshakeel/dyreimage-php/blob/master/LICENSE)Copyright (c) 2017 Yusuf Shakeel

Buy me a cup of tea
===================

[](#buy-me-a-cup-of-tea)

If you enjoy watching my [YouTube](https://www.youtube.com/yusufshakeel) videos and find my projects here on [GitHub](https://github.com/yusufshakeel) interesting and helpful then feel free to buy me a cup of tea or coffee. It helps in creating more :)

[Donate via PayPal](https://paypal.me/yusufshakeel)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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 ~181 days

Total

3

Last Release

2948d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.5.0

v1.1.2PHP ^5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b55b5306534e2e0083b3372571508105575e6490da8827e46d01203b20b9bbc?d=identicon)[yusufshakeel](/maintainers/yusufshakeel)

---

Top Contributors

[![yusufshakeel](https://avatars.githubusercontent.com/u/6522504?v=4)](https://github.com/yusufshakeel "yusufshakeel (48 commits)")

---

Tags

image-compressionimage-processingimagesphpphp-gdresize-imagesphpimage-resizing

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yusufshakeel-dyreimage-php/health.svg)

```
[![Health](https://phpackages.com/badges/yusufshakeel-dyreimage-php/health.svg)](https://phpackages.com/packages/yusufshakeel-dyreimage-php)
```

###  Alternatives

[dereuromark/media-embed

A PHP library to deal with all those media services around, parsing their URLs and embedding their audio/video content in websites.

182530.3k11](/packages/dereuromark-media-embed)[jkphl/iconizr

A PHP command line tool for converting SVG images to a set of CSS icons (SVG &amp; PNG, single icons and / or CSS sprites) with support for image optimization and Sass output

4869.0k](/packages/jkphl-iconizr)[tomatophp/filament-media-manager

Manage your media files using spatie media library with easy to use GUI for FilamentPHP

14543.9k3](/packages/tomatophp-filament-media-manager)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.6k](/packages/nikkanetiya-laravel-color-palette)[kiwilan/php-audio

PHP package to parse and update audio files metadata, with `JamesHeinrich/getID3`.

3012.6k1](/packages/kiwilan-php-audio)[lciolecki/php-image-optimizer

PHP image file optimizer (uses https://github.com/bensquire/php-image-optim)

347.4k](/packages/lciolecki-php-image-optimizer)

PHPackages © 2026

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