2017 © Pedro Peláez
 

library easyimage

Image handling and manipulation library with support for Laravel integration

image

bingvanmoorsel/easyimage

Image handling and manipulation library with support for Laravel integration

  • Sunday, January 22, 2017
  • by bingvanmoorsel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

EasyImage

This is a small simple package that extends intervention/imagecache. All credits for that package belong to the creator. This is my first package and i made this to help myself in some of my own projects. Feel free to comment, fork or even better: improve it!, (*1)

What does it do?

this package makes it possible to call the fit, crop and grayscale option right from the url., (*2)

Installation

require the package trough composer:, (*3)

composer require bingvanmoorsel/easyimage

Then add the the service providers:, (*4)

// config/app.php
Intervention\Image\ImageServiceProvider::class,
Bingvanmoorsel\EasyImage\Providers\EasyImageServiceProvider::class,

How does it work?

First of all you need to setup Image Intervention described on this page: http://image.intervention.io/use/url, (*5)

This package extends the route in the config with an 'c_' so for example if your config is:, (*6)

// config/imagecache.php   
    'route' => 'img',

the package enables a route 'c_img', (*7)

Explained

the URL is build up in 3 parts:, (*8)

http://<yourdomain>.com/c_<route>/<command>/<params>/<path-to-image>
placeholder description
yourdomain your website url.
route defined in app/imagecache.php
command The effect you want: fit, crop, grayscale
params required field and sepperated by a dash('-'), if no params place one dash.
path-to-image The original path to the image.

Examples of commands

// Fit
http://<yourdomain>.com/c_img/fit/300-300/images/profiles/peter.jpg

// Crop
http://<yourdomain>.com/c_img/crop/300-300/images/profiles/peter.jpg

// Greyscale
http://<yourdomain>.com/c_img/greyscale/-/images/profiles/peter.jpg

License

This package iss open-sourced software licensed under the MIT license., (*9)

The Versions

22/01 2017

dev-master

9999999-dev http://bingvanmoorsel.nl/

Image handling and manipulation library with support for Laravel integration

  Sources   Download

MIT

The Requires

 

laravel image gd imagick thumbnail watermark

22/01 2017

0.1

0.1.0.0 http://bingvanmoorsel.nl/

Image handling and manipulation library with support for Laravel integration

  Sources   Download

MIT

The Requires

 

laravel image gd imagick thumbnail watermark