Skip to content

Images

Add, size, caption and move images, put them side by side, and how they read on GitHub and elsewhere.

Images in Kirbon are ordinary Markdown images and files in your folder. Everything you do to them in Visual is written in a form other Markdown tools show too — GitHub, GitLab, Gitea and VS Code among them.

Adding images

Drag images from Finder onto the page, paste a screenshot, or choose Insert ▸ Image…. Kirbon copies each file into the page’s own folder in assets/ — its name and a random code, like assets/deployment-k3x9q2/ — and never moves the original. While a large file copies, a placeholder shows its progress with Cancel, and you can keep typing.

BPMN and draw.io files (.bpmn, .drawio, .drawio.svg) are added the same way and drawn as pictures — see Diagrams.

If the page’s attachments already hold a different file with the same name, Kirbon asks: Keep Both, Use Existing File or Replace…. An identical file is used without asking.

A system architecture page with a diagram image and a table of services.
An image stored in the page’s folder in assets/.

Selecting and the image toolbar

Click an image to select it. A selected image is outlined and gets a toolbar under it:

  • Size — Fit Width (its own size, never wider than the page), 75 %, 50 % or Original (its width in pixels). Or drag one of the four corner handles: the width changes in 5 % steps and snaps to 50, 75 and 100 %.
  • Alt Text… — the description VoiceOver reads and that shows when the image can’t load. It’s separate from the caption.
  • Caption — a line of text under the image. Click a caption to edit it; Return saves, Esc undoes the typing, and an empty caption is removed.
  • Replace… — another file from Finder or the clipboard. Alt text, caption and size stay; the old file stays in assets/.
  • Open Original — the file in its default app. For a BPMN or draw.io file it is Open With…: pick the app — see Diagrams.
  • ⋯ — Remove from Page, Show in Finder and Copy Image (the picture itself, for other apps).

With an image selected, Space shows it in Quick Look, ⌘C copies its Markdown, ⇥ moves into the toolbar and Esc deselects it. Every change is one Undo step.

Click beside an image to put the caret before or after it. ⌫ right after an image or fn⌫ right before one selects it, and a second press removes it; ⌫ right before an image moves the caret to the end of the line above.

Images side by side

Images written one after another in the same paragraph show in a row, centred, each at its own size. When the next one doesn’t fit, the row continues on the next line — just as GitHub shows them.

![Before](../assets/release-notes-a8k2/before.png) ![After](../assets/release-notes-a8k2/after.png)

Each image in a row is still its own: select it, resize it, give it a caption or alt text, replace or remove it — only its own Markdown changes and the others stay where they are. The caret can stand between two images: ⌫ there selects the one before it, and a second ⌫ removes it.

Put the caret between two images of a row and press Return: the images after the caret move to a row of their own. Before the first image or after the last one, Return starts an empty paragraph there; typing right before or after an image starts one too. To join two rows back, press ⌫ before the second row’s first image, or fn⌫ after the first row’s last one. File chips work the same way.

Images in lists, quotes and callouts

An image can stand in a list item, under the item’s text or as the item itself, and in a quote or callout. Everything above works there too.

  • In a list item the image starts at the item’s text, as the text does. An item that is only an image (or a row, or a file) keeps its bullet, number or box beside it.
  • In a quote or callout the image stands in its coloured band — right under a callout’s first line too (> [!NOTE], then > ![…](…)).
- ![Topology](../assets/deployment-k3x9q2/topology.png)
- The rollout:

  ![Rollout](../assets/deployment-k3x9q2/rollout.png)

Copying images

Select an image and press ⌘C. In Kirbon, ⌘V puts the same image back — next to the image at the caret (into its row), or as an image of its own where the caret is, on this page or another one; the file isn’t copied again, the new link leads to it from where you paste. In other apps you paste the file itself, or its Markdown in a text editor.

Moving images

Press an image and drag it:

  • onto another image — a vertical line at its left or right edge shows where it goes, and it joins that image’s row;
  • between paragraphs — a horizontal line shows where, and it becomes an image of its own there.

The image keeps its Markdown, the place it left keeps no empty line, and one Undo puts everything back. Press Esc while dragging to cancel. You can also move an image with its block handle or Format ▸ Move Block Up/Down, like any other block.

Missing images

When an image’s file can’t be found, the page shows “file can’t be found” and its alt text instead. Locate… lets you pick the file: one inside your documentation is linked where it is, one outside it is copied into the page’s attachments. Remove from Page removes the image. Alt text, caption and size are kept either way.

Removing an image from a page keeps its file in assets/. File ▸ Unused Attachments… lists the files no page uses and moves the ones you choose to assets/_unused/ — Kirbon never deletes them.

How images are written

In VisualIn the file
An image![Alt text](../assets/page-x7k2/topology.png)
With a caption![Alt text](../assets/page-x7k2/topology.png "Service topology")
At 50 %<img src="../assets/page-x7k2/topology.png" alt="Alt text" width="50%">
At its original size (1200 px)<img src="…" alt="…" width="1200">
Two images side by side![A](a.png) ![B](b.png)

Fit Width writes plain Markdown. Any other size needs the HTML <img> element with width, because Markdown has no way to write a size; going back to Fit Width turns it into plain Markdown again. Kirbon keeps any other attributes an <img> already has.

Where sizes show. GitHub, GitLab, Gitea, Forgejo and VS Code show the width. Bitbucket, Hugo with its default settings and Pandoc’s conversion to Word drop HTML, so a sized image doesn’t show there at all. If your pages are published to one of those, keep images at Fit Width. Page Info’s Markdown note counts the sized images on a page.

Why there is no alignment or text wrapping

Kirbon writes only what other Markdown viewers and editors show. Markdown has no alignment or wrapping, and the HTML ways to get them — the align attribute, <p align="center">, CSS floats — are kept by GitHub but dropped or ignored by Bitbucket, Hugo, Typora, Pandoc → Word and the importers of Confluence and other wikis. A page that looked right in Kirbon would look different everywhere else, so Kirbon centres every image (and every row) and leaves text above and below it; in a list item an image starts at the item’s text, as GitHub shows it.

HTML a page already has — an image in <p align="center">, say — is kept exactly as it is and shown as an HTML block.