2017 © Pedro Peláez
 

library imageprofessor

Independent image processor with routing and caching

image

maciekpaprocki/imageprofessor

Independent image processor with routing and caching

  • Saturday, September 12, 2015
  • by maciekpaprocki
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Easy image processor microservice.

Unfortunately most of the image processors built-in in standard cms's are not good enough for more advanced usecases. In cases like that you want to use microservice to show process your images in more gentle way. =, (*1)

Instalation

    composer install maciekpaprocki/imageprofessor

Be sure that you have imagemagick(preferred)||GD installed on your server., (*2)

Usage

Define image processor name, paths and transformation., (*3)

    use ImageProfessor\ImageProfessor;

    var $thumbnail = New ImageProfessor('thumbnail','assets/*',function($image){

        return $image->thumbnail(200,200)
            ->placeImage('thisisyourwatermarkimage.png');


    },'cache');

Because we are using Imanee package for image tranformation, you have whole array of possibilities., (*4)

To get link to image just use:, (*5)

    echo $thumbnail->getUrl('path/to.jpg');

to process all images use (require app autoloader):, (*6)

    $thumbnail->process();

to process one image use (require app autoloader):, (*7)

    $thumbnail->process('path/to.jpg');

Future api

Bescause it's extremally annoying to each time get all variables for one file it's better to just use, (*8)

The Versions

12/09 2015

dev-master

9999999-dev http://paprocki.co.uk

Independent image processor with routing and caching

  Sources   Download

MIT

The Requires

 

The Development Requires

microframework imageprocessing