2017 © Pedro Peláez
 

library php-image-resizer

A simple image resizing library for PHP.

image

suin/php-image-resizer

A simple image resizing library for PHP.

  • Tuesday, February 25, 2014
  • by suin
  • Repository
  • 2 Watchers
  • 5 Stars
  • 1,379 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 17 % Grown

The README.md

\Suin\ImageResizer

This is a simple image resizing library for PHP., (*1)

Requirements

  • PHP 5.3 or later
  • GD 2.0.28 or later
  • GD needs to support JPEG, GIF, PNG

Installation

The recommended way to install this library is through composer. Just create a composer.json file and run the php composer.phar install command to install it:, (*2)

{
    "require": {
        "php":          ">=5.3.0",
        "suin/php-image-resizer": ">=1.0.0"
    }
}

How to Use

<?php
use \Suin\ImageResizer\ImageResizer;

$resizer = new ImageResizer('/path/to/your/image.jpeg');

if ( $resizer->maxWidth(480)->maxHeight(640)->resize() === false ) {
    // error
} else {
    // success
}

License

MIT License, (*3)

The Versions

25/02 2014

dev-master

9999999-dev

A simple image resizing library for PHP.

  Sources   Download

The Requires

  • php >=5.3.0
  • ext-gd *

 

31/07 2012

1.1.0

1.1.0.0

A simple image resizing library for PHP.

  Sources   Download

The Requires

  • php >=5.3.0
  • ext-gd *

 

26/07 2012

1.0.0

1.0.0.0

A simple image resizing library for PHP.

  Sources   Download

The Requires

  • php >=5.3.0
  • ext-gd *