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

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

tranlongpc/laravel-thumbnail
============================

Laravel Package to resize images on the fly with cache functionalities.

2.7(5y ago)050MITPHP

Since Apr 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tranlongpc/laravel-thumbnail)[ Packagist](https://packagist.org/packages/tranlongpc/laravel-thumbnail)[ RSS](/packages/tranlongpc-laravel-thumbnail/feed)WikiDiscussions master Synced 2d ago

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

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

[](#laravel-thumbnail)

v2 Laravel Package to resize images on the fly with cache functionalities.

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 tranlongpc/laravel-thumbnail dev-master
2. in config/app.php add in providers: tranlongpc\LaravelThumbnail\LaravelThumbnailServiceProvider::class
3. in config/app.php add in aliases: 'Thumbnail' => tranlongpc\LaravelThumbnail\Facades\LaravelThumbnail::class
4. php artisan vendor:publish --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

```

Don't forget to star this repo ;)
=================================

[](#dont-forget-to-star-this-repo-)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.2% 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

Unknown

Total

1

Last Release

1897d ago

### Community

Maintainers

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

---

Top Contributors

[![tranlongpc](https://avatars.githubusercontent.com/u/464283?v=4)](https://github.com/tranlongpc "tranlongpc (13 commits)")[![leartgjoni](https://avatars.githubusercontent.com/u/16462044?v=4)](https://github.com/leartgjoni "leartgjoni (5 commits)")

### Embed Badge

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

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

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

1558.1M160](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

506511.0k27](/packages/bkwld-croppa)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)

PHPackages © 2026

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