Jab - Image Resizing
Saturday, 5 February 2011
Jab can now serve up scaled images by simply appending query string parameters to the image name.
For example, to limit an image to maximum width of 600px, use a URL like this:
myimage.png?maxw=600
Similarly for height:
myimage.png?maxh=400
Or, to scale by an arbitrary percentage:
myimage.png?scale=0.5
For details on the image resizing itself, read this where I explain how ImageMagick can be used for high-quality image resampling under Mono.
Of course all of the above is tied in with Jab's HTTP caching and it's Memory Cache.
Leave a comment