poznet / laravel-smple-image by j00seph

Simple Image procesing for Laravel 5 - wrapper for intervention/image
155
2
2
Package Data
Maintainer Username: j00seph
Maintainer Contact: pozycjoner.net@gmail.com (Michal Glajc / poznet)
Package Create Date: 2015-11-02
Package Last Update: 2016-10-11
Language: PHP
License: MIT
Last Refreshed: 2024-12-17 03:04:42
Package Statistics
Total Downloads: 155
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Simple Image procesing for Laravel 5

Wrapper for intervention/image

SensioLabsInsight

Bundle/Service created for simple dynamic image manipulation (resize for example). Stores manipulated images in cache for better performance.

###Requirments

  • Laravel 5.0 + (this bundle is for Laravel5+ )
  • intervention/image >= 2.3

###Installation

  • Add to poznet/image your composer.json

composer require poznet/image:dev-master

  • In config/app.php register service in providers (add "Poznet\Image\PoznetImageProvider" to providers)
providers' => [

		/*
		 * Laravel Framework Service Providers...
		 */
         ...
		'Poznet\Image\PoznetImageProvider',
],

###Usage All paths is relative to /storage/app/ and it's get by Storage Facade (local), so it can be easily change to ftp/scp/Amazon/Dropbox etc.

  1. Resized image in Blade view to get resized image with widh of 450px use code below. Output is cached for 60 minutes with Cache Facade.

<img src="{{route('imagemin', ['width'=>'450','path'=>'logo.jpg'])}}">

Licence

Intervention Imagecache Class is licensed under the MIT License. Feel free to contribute.