article-images

Upload an image for embedding in an article figure

Changed on

Accepts JPEG, PNG, or WebP up to 5 MB. The image is re-encoded server-side (downscaled to at most 2000px on the longest side, lossy WebP, metadata stripped) and stored under a content-addressed key.

post/api/user/article-images

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body multipart/form-data

UploadImageForm required

Documentation-only shape of the multipart upload body; the handler reads the file part via axum::extract::Multipart.

file, string binary required

Response

Image stored

UploadedImageResponse required
byte_size, integer required

Stored (re-encoded) size in bytes.

height, integer required
storage_key, string required
url, string required

First-party URL to embed in the ::figure{} directive.

width, integer required

Changes