The Diamond Image Service supports several functionalities, accessible through structured URLs. The following is a subset of the many features the service provides:
Here's an example of how to set an image's lifespan during an upload:
curl -X PUT -F "media=@dahlia-8546849_1280.jpg" "http://image-service.diamond.ac.uk/unsafe/upload?lifespan=<number of days>"Resize an image to 300x200 pixels:
https://image-service.diamond.ac.uk/unsafe/300x200/filename.jpgConvert an image to PNG:
https://image-service.diamond.ac.uk/unsafe/300x200/filename.jpg.pngCrop an image to focus on a specific area:
https://image-service.diamond.ac.uk/unsafe/100x100:200x200/filename.jpgRotate an image by 90 degrees:
https://image-service.diamond.ac.uk/unsafe/filters:rotate(90)/filename.jpgApply a grayscale filter:
https://image-service.diamond.ac.uk/unsafe/filters:grayscale()/filename.jpg