PHPackages                             lmkhang10/lara\_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. lmkhang10/lara\_thumbnail

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

lmkhang10/lara\_thumbnail
=========================

Generating thumbnail in laravel basing intervention Image

020PHP

Since Oct 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/lmkhang10/lara_thumbnail)[ Packagist](https://packagist.org/packages/lmkhang10/lara_thumbnail)[ RSS](/packages/lmkhang10-lara-thumbnail/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

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

[](#installation)

This package can be installed through Composer.

```
composer require LaraX/thumbnail
```

### Laravel Setup

[](#laravel-setup)

When using Laravel, if you are using a version pre v5.5 you will need to include the Service Provider manually:

```
// app/config/app.php

'providers' => [
    // ...
    'LaraX\Screenshots\LaraXProvider'
];
```

Setup your API keys:

```
// config/larax.php

'THUMBNAIL'  =>  [
    'PREFIX'        =>  'thumbnail_',
    'SIZE'          =>  [
        'width'     =>  267,
        'height'    => null
    ]
];
```

and in your .env file:

```
# THUMBNAIL
GENERATE_THUMBNAIL=TRUE
```

Usage
-----

[](#usage)

Here is a sample call to generate a LaraXThumbnail screenshot URL:

```
    use LaraX\Thumbnail\LaraXThumbnail;
    $LaraXThumbnail = new LaraXThumbnail();
    $thumbnailUrl = $LaraXThumbnail->makeThumbnail(storage_path('app/public/'. $folder .$newFileName), $folder, 'public', 'thumbnail_', 240);

    // Generate a screenshot by loading the Urlbox URL in an img tag:
    echo ''
```

If you're using Laravel and have set up the service provider, you can use the Facade provided:

```
use LaraX\Thumbnail\LaraXThumbnail;

// Create the thumbnail URL
$LaraXThumbnail = new LaraXThumbnail();
$thumbnailUrl = $laraXThumbnail->makeThumbnail(storage_path('app/public/'. $folder .$newFileName), $folder, 'public', 'thumbnail_', 240);
```

You can now use the result (`$thumbnailUrl`) by placing it inside an `` tag as the `src` parameter.

Contributing
------------

[](#contributing)

We are open to pull requests.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

About LaraXThumbnail
--------------------

[](#about-laraxthumbnail)

Generating thumbnail in laravel basing intervention Image

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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://www.gravatar.com/avatar/8521a15fbd5ddec3d67b8449eeb8bbb2c686b5ce23db70e14c7f38994f48fa1f?d=identicon)[lmkhang10](/maintainers/lmkhang10)

---

Top Contributors

[![lmkhang10](https://avatars.githubusercontent.com/u/13195916?v=4)](https://github.com/lmkhang10 "lmkhang10 (19 commits)")

### Embed Badge

![Health badge](/badges/lmkhang10-lara-thumbnail/health.svg)

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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