PHPackages                             imeysam/laravel-picsize - 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. imeysam/laravel-picsize

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

imeysam/laravel-picsize
=======================

This package helps developers to easily change images dimensions.

v2.0.1(9mo ago)04MITPHPPHP ^8.1CI passing

Since Jul 29Pushed 9mo agoCompare

[ Source](https://github.com/imeysam/laravel-picsize)[ Packagist](https://packagist.org/packages/imeysam/laravel-picsize)[ RSS](/packages/imeysam-laravel-picsize/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Picsize
===============

[](#laravel-picsize)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0e29b1e4276530f8ad5cb5b89155896231c2d3e8e1c46a88b826afa76968a868/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696d657973616d2f6c61726176656c2d70696373697a652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/imeysam/laravel-picsize)[![License](https://camo.githubusercontent.com/04a68818559031018de67cd28ac065915598a309fe27b51ddd8690a741b53aeb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f696d657973616d2f6c61726176656c2d70696373697a652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

---

✂️ Simple &amp; Flexible Laravel Picsize
----------------------------------------

[](#️-simple--flexible-laravel-picsize)

**Laravel Picsize** is a simple and flexible Laravel package that helps you to resize images on the fly, then store and reuse the resized versions — all with one line of code.

It’s designed for Laravel projects that need **on-demand thumbnails**, **resized images**, or **optimized storage**, without reinventing the wheel every time.

---

📋 Features
----------

[](#-features)

✅ Simple Facade: `Picsize::resize($path, $width, $height)`
✅ Disk-based storage (local, public, S3, FTP, etc.)
✅ Automatic fallback image if source is missing
✅ Respects Laravel’s Filesystem &amp; URL helpers
✅ Auto-creates output folders with proper permissions (local disks)
✅ Compatible with **Laravel 9.x – 12.x**

---

⚙️ Requirements
---------------

[](#️-requirements)

- **PHP** &gt;= 8.1
- **Laravel** &gt;= 9.x
- [Intervention Image](http://image.intervention.io/) (included)

---

🚀 Installation
--------------

[](#-installation)

Install the package via Composer:

```
composer require imeysam/laravel-picsize
```

🔧 1️⃣ Add &amp; Customize Config
--------------------------------

[](#-1️⃣-add--customize-config)

By default, the package uses these settings:

- `disk` → `public`
- `input_path` → `uploads`
- `output_path` → `images`
- `fallback_image` → `images/default.jpg`

To customize these, **publish the config file**.
You can do this in two ways:

**Option 1 — Using the Provider name (recommended)**

```
php artisan vendor:publish --provider="Imeysam\Picsize\Providers\PicsizeServiceProvider"
```

**Option 1 — Using the tag `config`**

```
php artisan vendor:publish --tag=config
```

> `config/picsize.php`

```
return [
    'disk' => 'public',

    'input_path' => 'uploads',

    'output_path' => 'images',

    'fallback_image' => 'images/default.jpg',
];
```

✨ Usage
-------

[](#-usage)

Once installed and configured, using the picsize is super simple.

You can call the `resize` method using the Facade, or inject the service into your classes.

---

### 📌 Basic Using

[](#-basic-using)

```
use Imeysam\Picsize\Facades\Picsize;

class ImageController extends Controller
{
    public function show()
    {
        // Resize to 400x300 and get the full URL
        $url = Picsize::resize('photos/test.jpg', 400, 300);
        ...
    }
}
```

### 🧩 Using Dependency Injection

[](#-using-dependency-injection)

```
use Imeysam\Picsize\Picsize;

class ImageController extends Controller
{
    public function show(Picsize $picsize)
    {
        // Resize to 400x300 and get the full URL
        $url = $picsize->resize('photos/test.jpg', 400, 300);
        ...
    }
}
```

### ⚡ Using In Blade

[](#-using-in-blade)

```

```

⚖️ License
----------

[](#️-license)

- This package is created for Laravel &gt;= 9.x and is released under the **MIT License** and, based on [Intervention Image](https://github.com/intervention/image).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance57

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Every ~0 days

Total

4

Last Release

286d ago

Major Versions

v1.1.0 → v2.0.02025-07-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/07c1cd3f14c8b7f13aaf462c0e8dbc07b9d42384664a3b2223e1659b19a2923b?d=identicon)[ameysam](/maintainers/ameysam)

---

Top Contributors

[![imeysam](https://avatars.githubusercontent.com/u/20730914?v=4)](https://github.com/imeysam "imeysam (9 commits)")

---

Tags

imagelaravelresizeresize-imageslaravelimageresizepicture

### Embed Badge

![Health badge](/badges/imeysam-laravel-picsize/health.svg)

```
[![Health](https://phpackages.com/badges/imeysam-laravel-picsize/health.svg)](https://phpackages.com/packages/imeysam-laravel-picsize)
```

###  Alternatives

[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)[ctessier/nova-advanced-image-field

An advanced image field for Nova with cropping and resizing.

103548.4k1](/packages/ctessier-nova-advanced-image-field)[reliqarts/laravel-guided-image

Simplified and ready image manipulation for Laravel via intervention image.

351.4k](/packages/reliqarts-laravel-guided-image)[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)[danihidayatx/image-optimizer

Optimize your Filament images before they reach your database. Forked from joshembling/image-optimizer for Filament v4 &amp; v5 support.

254.4k](/packages/danihidayatx-image-optimizer)

PHPackages © 2026

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