Pictures¶
A picture is a note of its own. Post it with its Content-Type, and it is listed in the feed, shown in the read-only view and sent to RSS readers as an enclosure:
curl -H "Content-Type: image/png" --data-binary @photo.png https://notes.example.com/homelab-7f3k2q9x4m8wz
The answer is that of any post, with the picture's file and file_url. A markdown note shows it with . X-Note-Alt sets the alternative text, X-Note-Name keeps the original file name (and serves the newest picture with it at /r/<read id>/<name>, see Files by name), and X-Note-Title and X-Note-Tags work as for markdown. In the browser, the compose box and the note editor take pictures with the Add image button, by paste or by drop. From another app on a phone, share them to notefeed: see Sharing from a phone.
On notefeed.me
Pictures need a license: on the free tier every picture is refused with 402 (license_required), on its own or with a note. See Free tier and licenses.
What to know:
- Types: PNG, JPEG, GIF and WebP. The bytes must be that format, whatever the header says; SVG is refused because it can carry script.
- Size: send a picture as it is, full size: at most 10 MiB as sent by default (
NOTEFEED_MAX_IMAGE_BYTES) and 100 megapixels, so a photo straight from a phone fits. Larger is413. - Shrunk and stripped on the server: every picture, however it is posted (web page, API, the clients, MCP), is stored turned the way the camera held it, at most 2560 px on its long side, encoded again in its own format (JPEG and WebP at quality 85, PNG lossless, an animated GIF or WebP stays animated), and without metadata: EXIF data such as where a photo was taken, the camera and the time is removed. A file that only starts like a picture is refused (
415). When the server is busy with many pictures at once it answers503(busy) withRetry-After. - As public as the read link. A picture is served at
/r/<read id>/<file>with no password, even on a locked instance or a protected feed, so that feed readers can show it. Don't post anything you would not give to everyone who has the read link. follows the read id, so it keeps working if the read id changes; a full URL is shown as written.- Edit and delete like any note:
DELETEremoves the file,PUTreplaces the bytes with another picture of the same type,PATCHchanges title or alt text. - Errors: those of posting, plus
507when the feed hasNOTEFEED_MAX_IMAGES_PER_FEEDpictures and403(images_off) when the instance takes no pictures at all.
Posting a note with its pictures¶
A note with its pictures is one multipart/form-data request to POST /<feed>: a text part, up to 10 file parts named as the text refers to them, and optional alt.<file name> fields. The clients, notefeed post --attach, the web UI and the MCP tool all send it:
curl -F "text=@note.md;type=text/markdown" -F "file=@chart.png;type=image/png" \
-F "alt.chart.png=Disk use over a week" https://notes.example.com/homelab-7f3k2q9x4m8wz
The pictures are stored first, each as a note of its own; then the text, with  swapped for the stored file; a picture the text never mentions is appended as . Pictures may share a file name (a phone calls every photo image.jpg): each is stored and appended, but a text that refers to a name given twice is refused. It is all or nothing: if anything is refused, nothing of the request is stored. The answer is that of the text note plus attachments, the pictures in order. The parts, the file-name rules and every error are in the REST API.
One request, stored in this order, top to bottom; if any step is refused, nothing of it is kept:
sequenceDiagram
participant C as Client
participant N as notefeed
C->>N: POST /#lt;feed#gt;: text + file parts + alt fields
N->>N: check every part (type, size, names)
N->>N: shrink every image, strip its metadata
N->>N: store each image as a note of its own
N->>N: swap  for the stored file, append unmentioned images
N->>N: store the text note
N-->>C: the text note + attachments
The feed, the read-only view and RSS show such a picture once, inside the note that shows it, not again as a note of its own. Clicking a picture, in the feed or on a note's page, shows it enlarged over the page; the arrows, the arrow keys or a swipe go through the note's other pictures, and a link there opens the picture's own page, the address to share it. Esc or a click beside it closes it. A picture is only left out of a list that also holds the note showing it, so a tag filter that lists the picture alone still shows it. The API lists every note.