mro / thumbnail
This Package Use To Create Thumbnail Image in Laravel (Writer:MohammadRezaOrdooni)
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/mro/thumbnail
This package is auto-updated.
Last update: 2025-10-25 16:06:14 UTC
README
Thumbnail Can Use To Create Image Thumbnail In Laravel.
Installation
composer require mro/thumbnail
Add the following code to providers in config/app.php
Mro\Thumbnail\ThumbnailServiceProvider::class,
Add the following code to aliases in config/app.php
'Thumbnail'=>Mro\Thumbnail\ThumbnailFacade::class,
Usage
public function store(Request $request) { # create function arguments: create($_FILES['image'],$quality,$newWidth,newHeight); # the defaults are $quality=100 & $newWidth=300 & newHeight=300. # Images will be upload in "public/uploads/thumbnails/" directory. $image=\Thumbnail::create($request->image,100,200,200); Post::create([ 'image'=>$image, ]); }
Contributing
I hope that will be usefull for you.