2017 © Pedro Peláez
 

library imagemax

Simple helper to generate ImageMax URL

image

roketid/imagemax

Simple helper to generate ImageMax URL

  • Monday, May 30, 2016
  • by mrofi
  • Repository
  • 2 Watchers
  • 0 Stars
  • 968 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

php-imagemax

PHP helper to make life easier with ImageMax(TM) image convertion, (*1)

use case

Helper : ```` php // Configuration $config = [ 'canonical' => '', 'baseurl' => '', 'profiles' => [ 'thumb' => [ 'w' => 128, // width 'h' => 128, // height 'q' => 8, // quality 'fm' => 'jpg', // format 'bri' => -10, // brightness ], 'medium' => '500x300-imxq-8-imxbri--10', // w = 500; h = 300; q = 8; bri = -10 'large' => '800x600', // w = 800; h = 600 ], ];, (*2)

// Initial $imx = new ImageMax($config);, (*3)

// Get thumbnail URL $imx->make('files/my_picture.jpg', 'thumb');, (*4)

// with different format, mention it in third parameter $imx->make('files/my_picture.jpg', 'thumb', 'png');, (*5)

// Get image directly from options array $imx->make('files/my_picture.jpg', [ 'w' => 128, // width 'h' => 128, // height 'q' => 8, // quality 'fm' => 'jpg', // format 'bri' => -10, // brightness ]);, (*6)

// Get image from absolute URL $imx->make('https://my.base.url/files/my_picture.jpg', 'thumb');, (*7)

The Versions

30/05 2016

dev-master

9999999-dev https://github.com/roketID/php-imagemax

Simple helper to generate ImageMax URL

  Sources   Download

MIT

The Requires

  • php >=5.5.3

 

by Mokhamad Rofiudin