2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 11:21:24 +00:00

Add note of processors to readme

This commit is contained in:
asonix 2020-06-07 12:55:42 -05:00
parent fe0082a23b
commit df3ca39fd3

View file

@ -59,8 +59,13 @@ pict-rs offers four endpoints:
payload as the `POST` endpoint payload as the `POST` endpoint
- `GET /image/{file}` for getting a full-resolution image. `file` here is the `file` key from the - `GET /image/{file}` for getting a full-resolution image. `file` here is the `file` key from the
`/image` endpoint's JSON `/image` endpoint's JSON
- `GET /image/{size}/{file}` where `size` is a positive integer. This endpoint is for accessing - `GET /image/{transformations...}/{file}` get a file with transformations applied.
thumbnails from an uploaded image. existing transformations include
- `identity`: apply no changes
- `blur{float}`: apply a gaussian blur to the file
- `{int}`: produce a thumbnail of the image fitting inside an `{int}` by `{int}` square
An example of usage could be `GET /image/256/blur3.0/asdf.png`, which would create a 256x256px
thumbnail and blur it
- `DELETE /image/{delete_token}/{file}` to delete a file, where `delete_token` and `file` are from - `DELETE /image/{delete_token}/{file}` to delete a file, where `delete_token` and `file` are from
the `/image` endpoint's JSON the `/image` endpoint's JSON