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

ActiveLibrary

tarunmangukiya/laravel-image-resizer
====================================

Laravel 5 Package for Image uploading, auto-resizing and retriving library.

v1.3.0-beta(10y ago)123737[1 PRs](https://github.com/tarunmangukiya/laravel-image-resizer/pulls)MITPHPPHP &gt;=5.4.0

Since Jan 11Pushed 7y ago1 watchersCompare

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

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

Laravel Image Resizer
=====================

[](#laravel-image-resizer)

Laravel Image Resizer is a **Laravel 5.x Package** for Image uploading, auto re-sizing and retrieving library. The package allows to define types of images and their directories to upload image, apply transformations on them using **Intervention Image** such as Crop and Rotate, and save different types of images (such as small, medium, large) using sync or push the job on to Laravel Queue.

Features
--------

[](#features)

- Save File via File Input or from an URL of file
- Leave crop, resize and saving the file in different dimensions on Laravel Image Resizer
- Supports conversion of file types such as jpg, png or keep original extension
- Supports to give append random text to file name to avoid any conflicts
- Supports Image Resizing using background Laravel Job
- Easy Image Retrieval based on file name of image
- Supports Image Retrieval from CDN (Supports Pull CDN)
- For new users, you can generate image dynamically for your existing images on the go. When user requests the resized resource it will be generated and served. (This can be useful for those who are alreading having previous data and want to use Laravel Image Resizer, just define your config file and images will be generated on the time of image retrieval.)

Getting Started
---------------

[](#getting-started)

1. [Installation](#install)
2. [Configuration](#configuration)
3. [Quick Start](#quick-start)
4. [Options](#options)
5. [Demo](http://laravel-image-resizer.azurewebsites.net)

Install
-------

[](#install)

Begin by installing this package through Composer.

```
	{
	    "require": {
	    	"tarunmangukiya/laravel-image-resizer": "dev-master"
		}
	}
```

Configuration
-------------

[](#configuration)

Laravel Image Resizer requires a configuration file for images to be resized. To get started, you'll need to publish all vendor assets:

```
php artisan vendor:publish
```

You can add the `--provider="TarunMangukiya\ImageResizer\ImageResizerServiceProvider"` option to only publish assets of the Image Resizer package.

This will create a `config/imageresizer.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes compared to the original config file after an upgrade.

### Sample Configuration File

[](#sample-configuration-file)

We have defined a sample configuration file for your reference.

```
return array(
    'types' => [
        'profile' => [
            'original' => storage_path() . '/profile',
            'crop' => [
                'enabled' => false,
                'uncropped_image' => storage_path() . '/profile/uncropped',
            ],
            'compiled' => 'images/profile',
            'default' => 'images/profile-default.jpg',
            'sizes' => [
                'small' => [100, 100, 'fit', 'jpg'],
                'large' => [400, null, 'stretch']
            ]
        ],
    ],
);
```

Here in this config file we have defined one image type `profile` and the location of `original` image storage, `compiled` (resized) images location, `sizes` of the images that has to be resized like `small`, `large`, etc.

We have also defined `default` image to be returned in case of original image does not exists.

Thus, by using this basic configuration your **profile** image will be saved in original, small and large format with their defined respective sizes.

Quick Start
-----------

[](#quick-start)

You can upload &amp; resize your images both from **File Input** or from **URL**.

If you want to process your image from File Input, you just need to write

```
$file = \ImageResizer::upload('profile', 'file_input_name', $output_file_name);
```

or pass an url of the image file

```
$url = 'https://invinciblengo.org/photos/slider/large/dalhousie-winter-trekking-expedition-himachal-pradesh-2RV7Udy-1337x390.jpg';
$file = \ImageResizer::upload('profile', $url, $output_file_name);
```

At the time of retrieval of image,

```

```

Options
-------

[](#options)

All the options available for config are defined in config file (imageresizer.php) of the package.

Contact
-------

[](#contact)

You can write me at [@tarunmangukiya](https://twitter.com/TarunMangukiya) for additional information.

**Don't forget to provide your suggestions and reviews for continuous improvements.**

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.4% 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 ~28 days

Total

4

Last Release

3690d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3bd8cb095d2051a77ada2437be1668cbb25819249fdd7fa322d390983cc4acac?d=identicon)[tarunmangukiya](/maintainers/tarunmangukiya)

---

Top Contributors

[![tarunmangukiya](https://avatars.githubusercontent.com/u/12470086?v=4)](https://github.com/tarunmangukiya "tarunmangukiya (37 commits)")[![rankarpan](https://avatars.githubusercontent.com/u/9264092?v=4)](https://github.com/rankarpan "rankarpan (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[laravolt/avatar

Turn name, email, and any other string into initial-based avatar or gravatar.

2.0k5.4M31](/packages/laravolt-avatar)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M74](/packages/unisharp-laravel-filemanager)[aimeos/aimeos-core

Full-featured e-commerce components for high performance online shops

4.5k346.9k48](/packages/aimeos-aimeos-core)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)

PHPackages © 2026

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