2017 © Pedro Peláez
 

library imageme

Image resizing on the fly - with caching

image

nckg/imageme

Image resizing on the fly - with caching

  • Saturday, October 11, 2014
  • by nckg
  • Repository
  • 1 Watchers
  • 1 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Image Me

Travis CI Latest Stable Version, (*1)

Installation

Simply add a dependency on nckg/imageme to your project's composer.json file if you use Composer to manage the dependencies of your project., (*2)

{
    "require-dev": {
        "nckg/imageme": "dev-master"
    }
}

Usage

This is an example for Laravel., (*3)

Route::get('/my_image_path/{modifiers}/{src}', function($modifiers, $src)
{
    $directory = Config::get('upload.display_path');
    $imageMe = new \Nckg\ImageMe\ImageMe;

    // optional: save to the filesystem
    $storage = new \Nckg\ImageMe\Storage\FileSystem($directory.DIRECTORY_SEPARATOR.$modifiers, $src);
    $imageMe->addStorage($storage);

    // resize
    $image = $imageMe->make($directory, $src, $modifiers);

    // return image response
    return $image->response();
})
    ->where('modifiers', '^((w|h)\d+(\-?))+$')
    ->where('src', '.*\.(?:jpg|gif|png|jpeg)$');

Development

Use terminal to go inside the example directory. Once inside the directory fire up the built-in web server with php -S 0.0.0.0:1337. Use your browser to navigate to http::0.0.0.0:1337., (*4)

License

MIT license, (*5)

The Versions

11/10 2014

dev-master

9999999-dev

Image resizing on the fly - with caching

  Sources   Download

The Requires

 

The Development Requires

by Nick Goris

10/10 2014

0.1.2

0.1.2.0

Image resizing on the fly - with caching

  Sources   Download

The Requires

 

The Development Requires

by Nick Goris

10/10 2014

0.1.1

0.1.1.0

Image resizing on the fly - with caching

  Sources   Download

The Requires

 

The Development Requires

by Nick Goris

10/10 2014

0.1.0

0.1.0.0

Image resizing on the fly - with caching

  Sources   Download

The Requires

 

The Development Requires

by Nick Goris