Editing images via the url
To edit images before they are served, you don't need to do complicated things. You can simply use parameters in the URL to modify the output of the image.
If you rather watch a video about how you can edit images via the url: Watch it on our YouTube channel
To crop an image to a width of 400 pixels use, for example:
In the above example, the height of the image is variable, only the width is fixed.
To load a square image:
In this example, the image was made to fit and any sides were filled with white space.
To load a square crop from an image, also send a crop parameter:
The largest possible crop is now taken from the image (as little as possible is cut off to get it square)
To adjust the quality and thus the size (in bytes) of the image, use the Q parameter, as below:
In this example, the quality has been reduced to 10%
To add blur, use the B, as below:
In this example, a value of 1 has been used for blur; you can use 0 to 3.