Writing

Images and page art

Add pictures to a page, place them anywhere on the printed sheet with the text wrapping around them, and credit the artist.

View as markdown

Adding an image

In the editor, paste a picture (⌘V on a Mac, Ctrl+V elsewhere) or drag a picture file onto the page. Type /image, or choose Image… in the insert menu, to open Add an image, which has three tabs:

  • Choose an image finds a picture already in your workspace.
  • Upload takes a file from your computer.
  • Token Maker makes a 1-inch token. See Coin sheets.

An uploaded or pasted picture goes in an images folder beside the document, with 8 characters added to its name so that names don't collide. Dunjii writes a markdown image link at that spot in the document. You can also type ![[name.jpg]] to show any picture in the workspace by its name.

![hill-folk-00d681f2](images/hill-folk-00d681f2.jpg)What Dunjii writes for an uploaded hill-folk.jpg.

Uploads take PNG, JPEG, WebP or GIF, up to 5 MB each. The free plan allows 10 pictures in a workspace; Pro has no picture limit and takes files up to 50 MB.

Add an image, filtered to two pictures.
Add an image, filtered to two pictures.

The metadata file

A picture can have a .metadata.md file beside it with the same name: hill-folk.metadata.md for hill-folk.jpg. Dunjii creates it when you change one of the picture's settings on its page. The body is kept for your notes; the picture's page doesn't show it.

---
type: imageimage, portrait, battle-map or overview-map. The menu at the top of the picture's page sets it.
credit: "John Bauer, 1913"Copied onto the page as the picture's credit when you add the picture.
---
Painted for a 1913 book of Swedish folk tales.

A picture with no type: takes its folder's defaultType, so a picture in Library › Portraits is a portrait. Battle maps and overview maps keep their settings here too: see Battle maps and Maps. On a plain picture's page, Replace image swaps in a new file. You can also drop a file on the picture.

Page art

Page art is a picture fixed to a spot on a printed page, with the text wrapping around it. Switch the document to Layout and click a picture. Its bar has four tabs: Position, Mask, Style and Text. In Edit, a picture on its own line shows as a card, and its Edit button opens Layout on that picture.

On Position, Anchor sets Inline, where the picture moves with the text between the paragraphs around it, or Fixed, where you drag it anywhere on any page. A fixed picture has corners to resize it and a dot to turn it. On Text, Wrap sets whether text goes around the picture or over it. Drag the handles on the outline to set how close the text comes on each side. With text over the picture, Backdrop sets how much paint goes under the text so it reads, and whether the text is dark or light.

Choose View or Edit to leave Layout, and Dunjii writes the changes into the image link. Positions and widths are percentages of the paper's width, so the picture keeps its place on Letter or A4.

![The hill folk](images/hill-folk.jpg#page=1&anchor=right&x=11&y=-20&w=30)page: the page it is on. anchor: the point of the paper x and y are measured from, such as top-left, right or bottom. x and y: the distance from the anchor, toward the middle of the page. w: the width.

More keys go after these: rotate= for the turn, margin= for the text's distance in inches (0.13 by default), and wrap=none for text over the picture.

A picture fixed to the page, with the Anchor menu open.
A picture fixed to the page, with the Anchor menu open.

Masks and styles

Mask crops the picture. Rectangle crops it by its edges. Drawn lets you paint what shows with a brush and an eraser, and Fit to subject paints around whatever isn't background. A drawn mask is saved as a PNG in images/masks.

Style sets the picture's edge:

  • Frame: None, Plain, Ornate or Sketched. F turns the plain frame on and off.
  • Look: a soft edge, Gradient, Watercolor, Pencil, Torn, Spatter or Brush, with Depth for how far it reaches in. Sides picks which sides get it.
  • Paint behind: paint in two of the picture's own colors, past its edge.
  • Opacity: from 5 to 100%.

Drawn masks, the Ornate and Sketched frames, every soft edge but Gradient, and Paint behind need Pro. Without Pro, a styled frame prints as the plain frame, a styled edge as Gradient, and a drawn mask as a rectangle crop.

The six soft edges on the Style tab.
The six soft edges on the Style tab.

Image credits

A selected picture in Layout shows its credit, or a dashed Uncredited label where a credit would go. Click it, type the artist's name, and press Enter. Shift+Enter starts a new line and Esc cancels. Credits are free on every plan.

Drag the credit anywhere on the picture or a little past its edge. Its corners set the size, from 6 to 24 points, and the dot above it turns it. Its bar sets Look (Blend, Quiet, Plain or Label), Colors, the alignment, and a Link for the screen. Delete removes it.

The words are the link's title, and credit= places them. A title without credit= stays a tooltip and does not print.

![The hill folk](images/hill-folk.jpg#page=1&anchor=right&x=11&y=-20&w=30&credit=on:bottom-right&credit-look=quiet "John Bauer, 1913")credit=on:bottom-right: on the picture's bottom right corner, where a new credit on page art starts. A picture in the text starts with under:right. credit-look=quiet: small capitals on a soft shade.
A credit on page art, selected, with its bar.
A credit on page art, selected, with its bar.

Page washes

A wash is a patch of paint on the printed page, placed after the text is laid out and kept clear of pictures where it can be. The Classic Parchment (Color) theme draws two watercolor washes on every page, on every plan. Clean Lines (B&W) draws none.

In Layout, every wash has a handle on the paper. Click it to drag the wash, or to change its style and Strength from its bar. Wash above a page adds one, up to four a page. A page's own washes need Pro; removing them works on any plan.

---
washes:
- page: 1
strength: 69The theme's first wash on page 1, made stronger.
- page: 1The theme's second wash on page 1, unchanged.
- page: 2
style: noneNo washes on page 2.
---
A wash selected in Layout, with its bar.
A wash selected in Layout, with its bar.