+1
nixos/modules/module-list.nix
+1
nixos/modules/module-list.nix
···
+88
nixos/modules/services/web-apps/pict-rs.md
+88
nixos/modules/services/web-apps/pict-rs.md
···+- `POST /image` for uploading an image. Uploaded content must be valid multipart/form-data with an+- `GET /image/download?url=...` Download an image from a remote server, returning the same JSON+- `GET /image/original/{file}` for getting a full-resolution image. `file` here is the `file` key from the+- `crop={int-w}x{int-h}`: produce a cropped version of the image with an `{int-w}` by `{int-h}`+aspect ratio. For example, a 1600x900 image cropped with a 1x1 aspect ratio will become 900x900. A+- `GET /image/details/process.{ext}?src={file}&...` for getting the details of a processed image.+- Configuring the secure-api-key is not included yet. The envisioned basic use case is consumption on localhost by other services without exposing the service to the internet.
+50
nixos/modules/services/web-apps/pict-rs.nix
+50
nixos/modules/services/web-apps/pict-rs.nix
···+# `pandoc pict-rs.md -t docbook --top-level-division=chapter --extract-media=media -f markdown+smart > pict-rs.xml`
+162
nixos/modules/services/web-apps/pict-rs.xml
+162
nixos/modules/services/web-apps/pict-rs.xml
···+<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="module-services-pict-rs">+<literal>json { "width": 800, "height": 537, "content_type": "image/webp", "created_at": [ 2020, 345, 67376, 394363487 ] }</literal>
+17
nixos/tests/pict-rs.nix
+17
nixos/tests/pict-rs.nix
···