On The Fly Image Transformation Serving Images
Serving Images
As soon as your storage is set up, you can start serving images with SlashedCloud
https://
example-1-otf
Your Service Subdomain .
slashed.cloud
SlashedCloud Domain /
example.jpg
Image Path ?
w=250&h=500
Query StringLet's break this down:
https://
- This is the protocol you must include in your request.example-1-otf
- Your service subdomain.slashed.cloud
- This is the domain you'll be using to serve your images./
- This is the path to your image.?
- This is the start of the query string, where you'll be adding your image transformations.q=70
- This is the quality of the image. Must be a number between 0 and 100.w=250
- Width of the image.h=500
- Height of the image.
Applying Parameters
We'll demonstrate a good basic set to use, and you can see the full range of what's
available in the Rendering API documentation.
For these examples, the base URL will be:
https://demo-otf.slashed.cloud/
Resizing
https://demo-otf.slashed.cloud/demo.jpg?resize=900,400
Cropping
https://demo-otf.slashed.cloud/demo.jpg?cr=900,400,500,550
Brightness
https://demo-otf.slashed.cloud/demo.jpg?brightness=-100
This was a very brief example of what parameters we're prepared to receive, for the full
documentation read the Transformations API.