Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Context aware image sizing

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 images
Octocat-spinner-32 README
Octocat-spinner-32 demo.html
Octocat-spinner-32 getimage.php
README
Simple image library for serving up image files at different resolutions.
Useful for serving images for responsive websites.

Author:     Craig Russell
Email:      craig@craig-russell.co.uk
Web:        www.craig-russell.co.uk
Copyright:  Puppy Image (c) 2009 Craig Russell
            Source (c) 2011 Craig Russell

- HOW TO USE -

Image files are defined in the $images array like

$images['id']['scale'] = "file";

    id      A URL safe identifier for the image
    scale   A percentage scale of the image file
            100 is fullsize image
            0   is default image
            Define as many intermediate images as you want
    file    The name of the image file

Images are reqested like
http://localhost/getimage.php?id=html5logo&scale=100
Something went wrong with that request. Please try again.