It caches!
Served images are cached and repeating request do not touch the original
source most of the time. Right now the cache never expires so feel free to
fill up my free storage. I will wipe it mercy-lessly anyway.
Supported parameters
- url=URL (required): a HTTP URL of an image
- op=STRING: a list of operations to be performed on the image (see below)
Supported operations
- resize: resize the image to fit given dimensions
- resize,N - fit image into square NxN (for example resize=100)
- resize,W,H - fit image into square WxH (for example resize=50,100)
- crop: crop the specified area of the image
- crop,X,Y,W,H - crop the rectangle defined by parameters
- crop,X,Y,D - crop the area around X,Y with diameter D
- rotate,DEG: rotate the images in degrees (must by multiple of 90)
- hflip: flip the image horizontally
- vflip: flip the image vertically
Examples
- ?url=http://.../image.jpeg&op=vflip - flip the image vertically
- ?url=http://.../image.jpeg&op=resize,200,300 - resize to fit 200x300
- ?url=http://.../image.jpeg&op=resize,200,crop,50,50,10
- resize to fit 200x200 and then crop the are around 50,50
- ?url=http://.../image.jpeg&op=rotate,90,crop,50,50,10
- rotate by 90 degrees and then crop the are around 50,50
- ?url=http://.../image.jpeg&op=hflip,rotate,90,crop,50,50,10,vflip
- horizontal flip, rotate, crop and vertical flip in the end