PHPackages                             salmanbe/resize - 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. salmanbe/resize

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

salmanbe/resize
===============

This easy to use library uploads, validates, resize, watermark and save images to disk.

v1.0(5y ago)036MITPHP

Since Feb 21Pushed 2y ago1 watchersCompare

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

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

Perfect Image Resize
====================

[](#perfect-image-resize)

This easy to use library to uploads, validates, resize, watermark and save images to disk.

[![License](https://camo.githubusercontent.com/d80a31c879aef8043b088e78f1c18810ab536577954bfc1617ffaefab8a9efdc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73616c6d616e62652f726573697a65)](https://github.com/salmanbe/resize/blob/master/LICENSE)

Depenencies
-----------

[](#depenencies)

You must install following packages before installing this package.

[Intervention Image](https://github.com/Intervention/image)

[Perfect File Name](https://github.com/salmanbe/filename)

Laravel Installation
--------------------

[](#laravel-installation)

Install using composer:

```
composer require salmanbe/resize
```

There is a service provider included for integration with the Laravel framework. This service should automatically be registered else to register the service provider, add the following to the providers array in `config/app.php`:

```
Salmanbe\Resize\ResizeServiceProvider::class,
```

You can also add it as a Facade in `config/app.php`:

```
'Filename' => Salmanbe\Resize\Resize::class,
```

Global Configuration
--------------------

[](#global-configuration)

Run `php artisan vendor:publish --provider="Salmanbe\Resize\ResizeServiceProvider"` to publish configuration file.

Basic Usage
-----------

[](#basic-usage)

Add `use Salmanbe\Resize\Resize;` or `use Resize;` at top of the class where you want to use it. Then

```
$image = new Resize($request->image);
```

```
$image->resize(public_path('pictures/blog/large/'), 768, 400);
```

Full Documentation
------------------

[](#full-documentation)

[Follow the link for installation, configuration, options and code examples.](https://www.salman.be/api/resize)

Uninstall
---------

[](#uninstall)

First remove `Salmanbe\Resize\ResizeServiceProvider::class,` and `'Filename' => Salmanbe\Resize\Resize::class,` from `config/app.php` if it was added. Then Run `composer remove salmanbe/resize`

License
-------

[](#license)

This library is licensed under THE MIT License. Please see [License File](https://github.com/salmanbe/resize/blob/master/LICENSE) for more information.

Security contact information
----------------------------

[](#security-contact-information)

To report a security vulnerability, follow [these steps](https://tidelift.com/security).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

1912d ago

### Community

Maintainers

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

---

Tags

laravelimage resize

### Embed Badge

![Health badge](/badges/salmanbe-resize/health.svg)

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

###  Alternatives

[ctessier/nova-advanced-image-field

An advanced image field for Nova with cropping and resizing.

103548.4k1](/packages/ctessier-nova-advanced-image-field)[classic-o/nova-media-library

Tool and field that will let you managing files and add them to the posts

154172.0k](/packages/classic-o-nova-media-library)[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)[ayvazyan10/nova-imagic

Imagic is a Laravel Nova field package that allows for image manipulation capabilities, such as cropping, resizing, quality adjustment, and WebP conversion. It utilizes the powerful Intervention Image class for image manipulation.

144.3k1](/packages/ayvazyan10-nova-imagic)[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)

PHPackages © 2026

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