Images & Media

Add images, diagrams, and visual content to your documentation

Visuals make documentation clearer and more engaging. Jamdesk supports standard image formats and provides components for enhanced display.

Adding Images

Standard Markdown

The simplest way to add an image:

![Alt text describing the image](/images/screenshot.png)

Place images in your /images directory and reference them with absolute paths.

With Captions

Use the Frame component to add a border and optional caption:

<Frame caption="Dashboard overview showing project statistics">

  ![Dashboard](/images/dashboard.png)

</Frame>

Your image here

Example of a framed image with caption

Image Best Practices

Alt text helps screen readers and appears when images fail to load. Describe what the image shows, not just "screenshot" or "image".

{/* Good */}
![API response showing user data in JSON format](/images/api-response.png)

{/* Avoid */}
![Screenshot](/images/api-response.png)

Large images slow down page loads. Aim for:

  • Screenshots: PNG, under 500KB
  • Photos: JPEG, under 200KB
  • Icons/diagrams: SVG when possible

Tools like Squoosh or TinyPNG can compress images without visible quality loss.

Keep screenshots at consistent widths (e.g., 1200px) for a polished look. Jamdesk automatically scales images to fit the content width.

Supported Formats

FormatBest ForNotes
PNGScreenshots, UILossless, supports transparency
JPEGPhotosSmaller files, no transparency
SVGIcons, diagramsScales perfectly, tiny file size
GIFSimple animationsUse sparingly, can be large
WebPModern alternativeSmaller than PNG/JPEG

Light/Dark Mode Images

Show different images based on the user's color scheme:

<picture>
  <source srcset="/images/diagram-dark.png" media="(prefers-color-scheme: dark)" />
  <img src="/images/diagram-light.png" alt="Architecture diagram" />
</picture>

Or use the dedicated dark mode image component:

<img
  src="/images/logo-light.svg"
  srcDark="/images/logo-dark.svg"
  alt="Company logo"
/>

Diagrams

For technical diagrams, consider:

  1. Draw.io / Excalidraw - Export as SVG for crisp rendering
  2. Mermaid - Code-based diagrams (coming soon)
  3. Screenshots - Annotated with arrows and callouts

SVG diagrams look sharp on all screen sizes and support dark mode with CSS.

Organization

Keep your images organized:

your-docs/
├── images/
│   ├── getting-started/
│   │   ├── step-1.png
│   │   └── step-2.png
│   ├── api/
│   │   └── response.png
│   └── logo.svg
└── docs.json

Reference them with the full path:

![Step 1](/images/getting-started/step-1.png)

What's Next?

Was this page helpful?