PHPackages                             jscustom/laravel-image-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. jscustom/laravel-image-resize

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

jscustom/laravel-image-resize
=============================

Laravel package for resizing images. Supports PNG, JPG, JPEG, GIF.

2.0.0(2y ago)020MITPHPPHP ^8.2

Since Jan 14Pushed 2y agoCompare

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

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Laravel User Management API
===========================

[](#laravel-user-management-api)

Laravel package for resizing images. Supports PNG, JPG, JPEG, GIF.

Table of Contents
-----------------

[](#table-of-contents)

[Getting Started](#getting-started)
[Installation](#installation)
[How to Use](#how-to-use)
[Download Postman API](#download-postman-api)
[Image Resize](#image-resize)
[Sample Image Resize API](#sample-image-resize-api)
[How To Implement Image Resize Service](#how-to-implement-image-resize-service)
[Common Issues Encountered](#common-issues-encountered)
[Support](#support)

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

[](#getting-started)

Below are the steps in order to integrate image resize API to your Laravel project.

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

[](#installation)

Install the package using composer:

```
composer require jscustom/laravel-image-resize
```

Export the configuration file:

```
php artisan vendor:publish --provider="JSCustom\ImageResize\Providers\ImageResizeServiceProvider" --tag="config"
```

How To Use
----------

[](#how-to-use)

### Download Postman API

[](#download-postman-api)

Download the Postman API Collection [here](https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/JSCustom/laravel-image-resize/blob/master/src/assets/postman/Laravel_Image_Resize.postman_collection.json).

### Image Resize

[](#image-resize)

Features

- Resize
- Crop
- Change Quality

**Service**

```
JSCustom\ImageResize\Services\ImageResizeService
```

Sample Image Resize API
-----------------------

[](#sample-image-resize-api)

**Controller**

```
JSCustom\ImageResize\Http\Controllers\ImageResize\ImageResizeController
```

**URL**

```
{{url}}/api/image-resize
```

**Form Data**

```
{
  "image": `FILE`,
  "width": 150,
  "height": 150,
  "quality": 75,
  "option": "crop"
}
```

**Method**

```
POST
```

**Headers**

```
{
  "Content-Type": "multipart/form-data"
}
```

**Response**

```
{
    "status": true,
    "code": 201,
    "message": "Image has been created. Please see PUBLIC\\PATH\\OF\\RESIZED\\IMAGE\\2141667567259_DSC05028-Edit_FB.jpg",
    "payload": {
        "image": "PUBLIC\\PATH\\OF\\RESIZED\\IMAGE\\2141667567259_DSC05028-Edit_FB.jpg"
    }
}
```

How To Implement Image Resize Service
-------------------------------------

[](#how-to-implement-image-resize-service)

**Add the service to your controller**

```
use JSCustom\ImageResize\Services\ImageResizeService;
```

**In your controller, follow this code structure**

```
$image = ImageResizeService::imageResize($request);
```

**Or initiate in the construct of your controller**

```
public function __construct(
    \JSCustom\ImageResize\Services\ImageResizeService $ImageResizeService
) {
    $this->_imageResizeService = $ImageResizeService;
}
```

**Then follow this code structure**

```
$image = $this->_imageResizeService->imageResize($request);
```

Common Issues Encountered
-------------------------

[](#common-issues-encountered)

**GD error(s)**

For PHP8.0 use (php8.1-gd and php8.2-gd are also available):

```
sudo apt-get install php8.0-gd
```

For PHP7.0 use (php7.1-gd, php7.2-gd, php7.3-gd and php7.4-gd are also available):

```
sudo apt-get install php7.0-gd
```

Support
-------

[](#support)

For support, email .

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity55

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

Every ~0 days

Total

2

Last Release

849d ago

Major Versions

1.0.0 → 2.0.02024-01-14

PHP version history (2 changes)1.0.0PHP ^7.0|^8.0

2.0.0PHP ^8.2

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jscustom-laravel-image-resize/health.svg)

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

###  Alternatives

[creativeorange/gravatar

A Laravel Gravatar package for retrieving gravatar image URLs or checking the existance of an image.

5467.5M54](/packages/creativeorange-gravatar)[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)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4719.6k5](/packages/ralphjsmit-laravel-glide)[spatie/laravel-og-image

Generate OG images for your Laravel app

305.2k](/packages/spatie-laravel-og-image)[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)
