PHPackages                             hungnm1518/laravel-thumbnail - 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. hungnm1518/laravel-thumbnail

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

hungnm1518/laravel-thumbnail
============================

Laravel Package to resize images on the fly by Hung Nguyen &lt;hungnm144@gmail.com&gt;

1.0.4.4(1y ago)1551MITPHPPHP ^7.4|^8.0

Since Jan 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hungnm1518/laravel-thumbnail)[ Packagist](https://packagist.org/packages/hungnm1518/laravel-thumbnail)[ Docs](https://fb.com/hungnm1518/)[ RSS](/packages/hungnm1518-laravel-thumbnail/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (2)Versions (11)Used By (0)

Laravel Thumbnail
=================

[](#laravel-thumbnail)

Laravel Package to resize images on the fly.

Using Thumbnail facade you will get resized images' paths on the fly. If an image resizing with same dimensions has been already requested before, the package will return the cached image from the previous request. Cached images are stored in "thumbs" folder inside your images root path.

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

[](#installation)

```
1. composer require hungnm1518/laravel-thumbnail
2. in config/app.php add in providers: HungNM\LaravelThumbnail\LaravelThumbnailServiceProvider::class
3. in config/app.php add in aliases: 'Thumbnail' => HungNM\LaravelThumbnail\Facades\LaravelThumbnail::class
4. php artisan vendor:publish --provider="HungNM\LaravelThumbnail\LaravelThumbnailServiceProvider" --tag=config

```

How to use
----------

[](#how-to-use)

In your blade view insert:

```

```

thumb function takes 4 parameters:

```
1. path of image (change root path in config/thumb.php
2. $width (nullable)
3. $height (nullable)
4. $type (by default = fit). Types are:
    a. "fit" - best fit possible for given width & height
    b. "resize" - exact resize of image
    c. "background" - fit image perfectly keeping ratio and adding black background
    d. "resizeCanvas" - keep only center

```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance48

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

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

Recently: every ~211 days

Total

10

Last Release

379d ago

PHP version history (2 changes)v1.0PHP &gt;=7.4

v1.0.3.1PHP ^7.4|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1074467?v=4)[Hưng Nguyễn](/maintainers/hungnm144)[@hungnm144](https://github.com/hungnm144)

---

Top Contributors

[![hungnm1518](https://avatars.githubusercontent.com/u/43890051?v=4)](https://github.com/hungnm1518 "hungnm1518 (17 commits)")

---

Tags

laravelthumbnailimageresize

### Embed Badge

![Health badge](/badges/hungnm1518-laravel-thumbnail/health.svg)

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

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

1588.9M183](/packages/intervention-image-laravel)[unisharp/laravel-filemanager

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

2.2k3.5M85](/packages/unisharp-laravel-filemanager)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

506516.3k29](/packages/bkwld-croppa)[laravel-at/laravel-image-sanitize

A small but handy package to prevent malicious code execution coming into your application through uploaded image files.

33866.8k](/packages/laravel-at-laravel-image-sanitize)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5443.8k](/packages/hasinhayder-tyro-dashboard)[reliqarts/laravel-guided-image

Simplified and ready image manipulation for Laravel via intervention image.

351.7k](/packages/reliqarts-laravel-guided-image)

PHPackages © 2026

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