PHP Image Resizer

Image resized by width only

src: images/10.jpg

Array
(
    [w] => 300
)

Image resized by width and height

src: images/10.jpg

Array
(
    [w] => 300
    [h] => 300
)

Image resized by width and height and custom canvas color

src: images/10.jpg

Array
(
    [w] => 240
    [h] => 240
    [canvas-color] => #ff0000
)

Image cropped & resized by width and height

src: images/10.jpg

Array
(
    [w] => 300
    [h] => 300
    [crop] => 1
)

Image scaled by width and height

src: images/10.jpg

Array
(
    [w] => 300
    [h] => 300
    [scale] => 1
)

Image cropped & resized by width and height from a remote location.

src: http://farm4.static.flickr.com/3210/2934973285_fa4761c982.jpg

Array
(
    [w] => 100
    [h] => 100
    [crop] => 1
)

Compressing Image To JPEG

src: images/10.jpg

Array
(
    [w] => 300
    [compress] => 1
)

Compressing to higher value (Will Affect Quality!)

src: images/10.jpg

Array
(
    [w] => 300
    [compress] => 300
    [compression] => 70
)