dearmadman/laravel-image-tool
Larablocks Analysis
dearmadman/laravel-image-tool has no release yet to check Laravel compatibility against.
Recommendation checks
Use with careUse with care: meets 0 of 3 checks.
- No dated releases
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
Data from Packagist and GitHub, checked by Larablocks on Dec 4, 2026.
| Install | |
|---|---|
composer require dearmadman/laravel-image-tool:dev-master |
|
| License: | MIT |
| Last Updated: | Jun 26, 2015 |
| Links: | GitHub · Packagist |
Laravel ImageTool
Simple ImageTool for laravel 5
Installation
The ImageTool Service Provider can be installed via Composer by requiring the
dearmadman/laravel-image-tool package and setting the minimum-stability to dev (required for Laravel 5) in your
project's composer.json.
{
"require": {
"laravel/framework": "5.0.*",
"dearmadman/laravel-image-tool": "dev-master"
},
"minimum-stability": "dev"
}
Usage
To use the ImageTool Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.
Find the providers key in app/config/app.php and register the ImageTool Service Provider.
'providers' => array(
// ...
'Dearmadman\ImageTool\ImageToolServiceProvider',
)
Example Usage
// [your site path]/app/routes.php
Route::Post('image-tool',function(){
$target=false;
if (config('image.compress_config_enable')) {
/* compress image */
$image_tool = ImageTool::GetInstance();
$arr=[
'jpeg_quality'=>config('image.compress_rate'),
'cover_img'=>config('image.compress_cover'),
];
$image_tool->SetConfig($arr);
$target = $image_tool->GetImageFromString($target,'img');
}
return $target ? $target : "false" ;
});
^_^
Related Packages
Client per serveis de l'ERP de Tsystems (Tercers, Padró, Vialer)