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

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

lersoft/laravel-thumbnail
=========================

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

143.7k5PHP

Since Mar 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/leartgjoni/laravel-thumbnail)[ Packagist](https://packagist.org/packages/lersoft/laravel-thumbnail)[ RSS](/packages/lersoft-laravel-thumbnail/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#laravel-thumbnail)

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 lersoft/laravel-thumbnail dev-master
2. in config/app.php add in providers: Lersoft\LaravelThumbnail\LaravelThumbnailServiceProvider::class
3. in config/app.php add in aliases: 'Thumbnail' => Lersoft\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

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16462044?v=4)[Leart Gjoni](/maintainers/leartgjoni)[@leartgjoni](https://github.com/leartgjoni)

---

Top Contributors

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

---

Tags

imageintervention-imagelaravelpackagethumbnailthumbnails

### Embed Badge

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

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

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135931.0k3](/packages/goat1000-svggraph)[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

138121.6k7](/packages/stefangabos-zebra-image)[treinetic/imageartist

ImageArtist is a php gd Wrapper which makes Image manipulation insanely easy, we introduce ImageArtist as Photoshop for php

8783.2k](/packages/treinetic-imageartist)[johncarter/filament-focal-point-picker

An image focal point picker for Filament Admin.

4431.7k1](/packages/johncarter-filament-focal-point-picker)[yk/laravel-ocr

A wrapper for gocr.

1356.6k](/packages/yk-laravel-ocr)

PHPackages © 2026

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