mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
Add note of processors to readme
This commit is contained in:
parent
fe0082a23b
commit
df3ca39fd3
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue