Skip to the content.

User guide

The Draw plugin adds a drawing canvas to Mattermost. Use it to sketch an idea, or paste a screenshot and mark it up, then send the result to the channel as an image. Nothing to install on your computer and no separate app: it lives in the message box you already use.

Annotating a screenshot of a login page with an ellipse, an arrow, a text label and a highlight

This guide describes version 0.2.0 of the plugin.

Contents

Open the drawing canvas

  1. Go to the channel or thread where you want to share a drawing.
  2. Select the paperclip (attachment) button in the message box.
  3. Choose Draw.

The attachment menu showing the Your computer and Draw options

The Draw window opens with an empty canvas, ready for you to draw.

The Draw window with an empty canvas and the toolbar at the top

Drawing tools

The toolbar at the top of the window has two rows: the tools and actions on the first, and the color and size for the selected tool on the second.

The toolbar: drawing tools, fill, undo, redo, add image and clear on the first row; color swatches, custom color and size on the second

Pick a tool by selecting it in the toolbar, or press its key:

Tool Key What it does
Pen P Draw freehand. A single click or tap leaves a dot.
Highlighter H A wide, translucent marker. Text underneath stays readable, which makes it ideal for highlighting parts of a screenshot.
Line L Draw a straight line.
Arrow A Draw a straight arrow, pointing to where you release.
Rectangle R Draw a rectangle or square.
Ellipse O Draw an ellipse or circle.
Text T Click where you want to type. See Add text.
Eraser E Erase parts of the drawing. The cursor shows the size of the eraser.

The rest of the toolbar:

Control What it does
Fill shapes (F) Draws rectangles and ellipses as solid shapes instead of outlines. A filled black rectangle is a quick way to hide sensitive information in a screenshot.
Undo / Redo Step backwards and forwards through your changes.
Add image Opens an image from your computer onto the canvas. See Annotate a screenshot or image.
Clear canvas Erases everything and starts over with a blank canvas. You can undo it.
Color swatches Pick one of 12 colors. The selected color has a ring around it.
Custom color (rainbow circle) Opens your system color picker so you can choose any color.
Size Drag the slider, or press [ and ], to set the stroke width, or the font size for text. The preview to its left shows the result.

Your tool, color and size are remembered the next time you open the Draw window.

A flow diagram drawn with rectangles, arrows, a circle, text labels and a freehand line

Shapes: squares, circles and straight lines

Hold a key while you drag a shape to change how it’s drawn:

Hold Rectangle Ellipse Line and arrow
Shift Square Perfect circle Snaps to horizontal, vertical or 45°
Alt or Ctrl (Option on macOS) Draws out from the center Draws out from the center —

You can combine them: hold Shift and Alt to draw a circle around a point. You can also press or release the keys in the middle of a drag; the shape updates straight away.

While you drag, the shape is only a preview. Press Esc before releasing to cancel it.

Add text

  1. Select the Text tool (T).
  2. Click where the text should start, and type.
  3. Press Enter to place it, or click somewhere else on the canvas. Use Shift+Enter for a new line, and Esc to discard the text.

The text uses the selected color, and the size slider sets its font size. Once placed, text becomes part of the drawing: to change it, undo and type it again.

Annotate a screenshot or image

The Draw plugin is a quick way to point something out in a screenshot: circle a button, highlight a sentence, point at something with an arrow and a note.

Paste from the clipboard (version 0.2.0 or later):

  1. Copy an image or take a screenshot to your clipboard. For example, use PrtScn on Windows and Linux, or ⌘+Ctrl+Shift+4 on macOS, or right-click an image in your browser and choose Copy image.
  2. Open the Draw window.
  3. Press Ctrl+V (⌘+V on macOS).

Or open a file: select Add image in the toolbar and pick an image from your computer.

Then mark it up with any of the tools. In the example below, an ellipse drawn from the center (Alt) circles the button, an arrow and a text label explain why, and the highlighter marks the tagline.

A pasted screenshot annotated with a red ellipse around the Log in button, an arrow, the label More contrast? and a yellow highlight on the tagline

A few things to know:

Undo, redo and start over

Send your drawing

When you’re happy with your drawing, select Send. The drawing is posted to the channel as a PNG image named drawing.png, just like any other image you upload. Everyone in the channel can view it, download it and reply to it.

The annotated screenshot posted in the Design Review channel, followed by a message explaining the feedback

To close the window without posting, select Cancel, the × button or press Esc. Your drawing is discarded when the window closes.

Keyboard shortcuts

Action Windows and Linux macOS
Paste an image Ctrl+V ⌘+V
Pick a tool P H L A R O T E Same
Fill shapes on or off F F
Smaller / larger size [ / ] [ / ]
Square, circle, or snap a line to 45° Hold Shift while dragging Hold Shift while dragging
Draw a shape from its center Hold Alt or Ctrl while dragging Hold Option while dragging
Cancel the shape being dragged Esc Esc
Undo Ctrl+Z ⌘+Z
Redo Ctrl+Shift+Z or Ctrl+Y ⌘+Shift+Z
Close without sending Esc Esc

Tool shortcuts are turned off while you’re typing text on the canvas.

Dark themes and small screens

The Draw window follows your Mattermost theme, including dark and custom themes. The canvas itself always stays white, because that’s how the image will look once it’s posted.

The Draw window in a dark theme with an ellipse and an arrow on a screenshot

On narrow screens, such as a phone browser or a small window, the Draw window fills the screen and the toolbar wraps onto several rows.

The Draw window on a phone-sized screen with a smiley face drawn with the ellipse and pen tools

The plugin adds to the Mattermost web interface, so it works in web browsers and in the Mattermost desktop app. It isn’t available in the native iOS and Android apps, which don’t run web plugins.

Troubleshooting

I don’t see Draw in the attachment menu. The plugin may not be installed or enabled on your server. Ask your system administrator. If it was just enabled, reload the page.

Pasting does nothing. Make sure the Draw window is open, and that your clipboard holds an image rather than a file: some file managers copy a link to the file instead of the image itself. In that case, use Add image instead. Pasting requires plugin version 0.2.0 or later.

I see “The drawing could not be sent”. Check your connection and select Send again. If it keeps happening, file uploads may be disabled on your server, or the image may be larger than the maximum file size your administrator allows.

I see “That image could not be loaded”. The file isn’t an image your browser can open. Try a PNG or JPEG file.

For administrators: installation

  1. Download the latest com.mattermost.draw-plugin-*.tar.gz from the releases page.
  2. In Mattermost, go to System Console > Plugins > Plugin Management.
  3. Under Upload Plugin, select Choose File, pick the downloaded file and select Upload. If uploads are disabled, see the Mattermost documentation on plugin uploads.
  4. Find Draw Plugin in the list of installed plugins and select Enable.

The plugin has no settings to configure. Drawings are posted as regular file attachments, so file attachments must be enabled on the server (System Console > Site Configuration > File Sharing and Downloads), and the Maximum File Size setting applies to them.