Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.
/ ImgSizer Public archive

A simple application for resizing and caching images on-demand

License

Notifications You must be signed in to change notification settings

glennkentwell/ImgSizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageSizer

A simple application for resizing and caching images on-demand.

Configurable to use either GD2 or ImageMagick libraries. Can also include preset image sizes in the config file.

##Installation

Application is built on top of Slim and Imagine, so need to install those dependencies first.

Install Composer and run composer update on this directory.

Ensure that img/ is writable.

Visit img/640x/uploads/test.jpg in browser.

##Usage

visit img/[derivative]/[path_to_file] e.g. img/640x/uploads/test.jpg

Named derivative - uses the config file. N - Resizes image to fit into an NxN square whilst maintaining aspect ratio. Nx - Resizes image to N pixels wide while maintaining aspect ratio. xN - Resizes image to N pixels tall while maintaining aspect ratio. N1xN2 - Creates a cropped thumbnail of the image at the given size.

About

A simple application for resizing and caching images on-demand

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published