Skip to content
Back to blog
Monday, November 2, 2026

Two Images Side by Side in Markdown: Layout and Export

Place two real images in a Markdown table, understand why equal columns are not guaranteed, and use a stacked layout when space is tight.

Two Images Side by Side in Markdown: Layout and Export

A before-and-after comparison needs two images readers can compare without guessing which is which. Open the Markdown converter to build one shareable comparison image. Start with matched source images and clear labels; Markdown alone does not provide a portable instruction meaning “each image is exactly half the available width.”

Use a table for the comparison

The example uses two actual demonstration assets: a draft checklist and its reviewed version. They have the same source width. A two-column GFM table keeps the labels above the corresponding images, with centred alignment for both cells.

# Before and after review

| Before | After |
|:--:|:--:|
| ![Draft checklist](https://directus-markdown2image.aimazing.site/assets/29a05b90-548c-4fc3-853b-62dffb7b3e88) | ![Reviewed checklist](https://directus-markdown2image.aimazing.site/assets/efd3fc1f-6ba9-480c-b306-79e97a709676) |

Both images use the same source width.

Exported before-and-after comparison with draft and reviewed checklist images in two columns

This is the rendered comparison, not a marketing cover. Use it in a review note where the reader needs to compare the two states together. The labels and image descriptions identify the roles without relying only on colour.

Tables are a GFM extension. The alignment row sets cell alignment; it does not guarantee two equal-width columns. Image dimensions, content, and the renderer's styling still affect the layout. Check the preview in your intended renderer before exporting.

Match the sources before forcing the layout

Crop the images to comparable regions and keep their proportions consistent. If one screenshot includes a large empty margin while the other is tightly cropped, equal columns will not make the subjects look equally sized. Preserve any detail needed for a fair comparison rather than trimming it just for symmetry.

Use reachable image addresses and check that both images have loaded before export. An authenticated dashboard URL may work in your own browser without being available to the renderer. Publish only images you are allowed to share, and remove private data from the source assets first.

Choose a narrow-screen alternative deliberately

A paired PNG is one fixed composition. When displayed in a narrow column, both images shrink together; it cannot turn into two stacked images. Inspect it at the smallest placement you expect to use. If either checklist becomes unreadable, publish a stacked version or link to the originals instead of squeezing the text further.

Here is a source-level stacked alternative using the same assets:

## Before

![Draft checklist](https://directus-markdown2image.aimazing.site/assets/29a05b90-548c-4fc3-853b-62dffb7b3e88)

## After

![Reviewed checklist](https://directus-markdown2image.aimazing.site/assets/efd3fc1f-6ba9-480c-b306-79e97a709676)

A live Markdown table may wrap or overflow according to its renderer; do not assume it behaves like a responsive gallery. If a publishing system allows HTML and CSS, those can provide more layout control, but their support and filtering are specific to that system. Keep a plain Markdown fallback.

Export the comparison with context

Leave enough room for both labels and check that the bottom edges are not cropped in the downloaded file. Describe the meaningful difference in the surrounding text, and provide original image links when readers need to inspect fine details. The comparison is a visual aid, not a replacement for the explanation.

Build your two-image comparison. Continue with image practices for Markdown or the guide to readable Markdown tables.