Fork me on GitHub
The League of Extraordinary Packages

Our Packages:

Presented by The League of Extraordinary Packages

Getting Started

Configuration

Image API

Size

Width w

Sets the width of the image, in pixels.

<img src="kayaks.jpg?w=500">

© Photo Joel Reynolds

Height h

Sets the height of the image, in pixels.

<img src="kayaks.jpg?h=333">

© Photo Joel Reynolds

Fit fit

Sets how the image is fitted to its target dimensions.

Accepts:

<img src="kayaks.jpg?w=300&h=300&fit=crop">

© Photo Joel Reynolds

Crop Mode crop

Sets where the image is cropped when the fit parameter is set to crop. Accepts top-left, top, top-right, left, center, right, bottom-left, bottom or bottom-right. Default is center.

<img src="kayaks.jpg?w=300&h=300&fit=crop&crop=left">

© Photo Joel Reynolds

Rectangle rect

Crops the image to specific dimensions prior to any other resize operations. Required format: width,height,x,y.

<img src="kayaks.jpg?rect=100,100,915,155">

© Photo Joel Reynolds

Orientation or

Rotates the image. Accepts auto, 0, 90, 180 or 270. Default is auto. The auto option uses Exif data to automatically orient images correctly.

<img src="kayaks.jpg?h=500&or=90">

© Photo Joel Reynolds