Skip to main content

Images

Images are added with the img: element inside a page section or column. The image: prefix is also accepted as an alias for img:.

Three ways to reference an image​

Provide a word or short phrase and Micropage searches Unsplash for a matching photo:

img: <- coffee

This is useful for quickly prototyping pages without uploading anything.

2. Uploaded file — project asset​

Reference a file you have uploaded to the project by its exact filename:

img: <- hero.png
img: <- logo.svg

The file must already exist in the project. Filenames are case-sensitive.

3. Direct URL — downloaded and stored​

Provide a full https:// URL and Micropage downloads the file and stores it in the project:

img: <- https://example.com/screenshot.png

The file is fetched once and saved, so subsequent builds use the stored copy. Downloading from a URL needs the Pro or Pro+ plan; uploaded files and keyword photos work on every plan. An image that was already stored keeps working whatever the plan.

What can be downloaded​

  • The URL must be public and use https://. An http:// URL is fetched over https:// instead. Addresses on private or local networks are refused.
  • Only PNG, JPEG, GIF, WebP, AVIF and ICO files are accepted, and the type is read from the file itself, not from the URL or the server. SVG files are not downloaded from URLs; upload them to the project and reference them by filename.
  • A file can be at most 10 MB, and it counts towards the project's storage space (25 MB, 100 MB or 500 MB by plan).
  • The server has 5 seconds to accept the connection and 10 seconds to send each chunk of data, with a 20-second limit per file and 30 seconds of downloading per build. Up to 3 redirects are followed.
  • A build can download at most 50 new images (URLs and keywords together). Images already stored in the project do not count.
  • Each user can add at most 100 new images from URLs and keywords per hour, and 300 per day, across all projects. Images already stored in the project do not count. Downloads and keyword searches that fail also count, once for each different URL or keyword, so saving a page with a broken link again does not use up more.
  • An image URL or keyword can be at most 2048 characters.

When a download fails, the page still builds; that image shows an error with the reason in the preview. If the 50-image limit is reached, the build is refused with Too many new images to download on this page. The limit is 50 per build; images already stored in the project do not count. If the hourly or daily limit is reached, it is refused with You have added too many new images recently. The limit is 100 per hour and 300 per day; images already stored in the project do not count., or, when failed attempts make up the count, Too many new image downloads or keyword searches recently, including ones that failed. The limit is 100 per hour and 300 per day; images already stored in the project do not count.

How many images a site can have​

A page can have at most 150 <- image references, and the whole site (every page plus the footer) at most 500. Uploaded files, keywords and URLs all count. These limits apply when the page is saved, previewed or checked, in the Web App, the CLI and the MCP server. Above them, the build is refused with Too many images on this page. The limit is 150 per page. or Too many images on this site. The limit is 500.

Using images in a section​

Images can appear directly in a section or inside a column:

/// section

col:
img: <- product-screenshot.png
h3: Simple editor
p: Write markup, see the result live.

col:
img: <- team.jpg
h3: Built by developers
p: For developers who ship fast.

Alt text​

The words before <- become the image's alt text, the description screen readers announce and browsers show if the image can't load:

img: Our team at the meetup <- team.jpg

You can also set it with alt:, which wins if both are present:

img: alt: Our team at the meetup <- team.jpg

Decorative images​

An image that adds nothing for someone who can't see it, such as a divider or a background flourish, should have an empty alt so screen readers skip it. Write alt: "" (or alt: ''):

img: alt: "" <- divider.png
img: alt: "" width:400 <- flourish.png

Missing alt text​

An image with no alt text, like img: <- team.jpg, is still published, with an empty alt. The CLI, the MCP server and the web editor's page editor report it as a missing-alt warning on that line. A bare alt: with nothing after it counts as missing too; use alt: "" when the image is decorative.

You can make an image clickable by combining the image lookup with a link:

img: Hero <- hero.png -> /pricing

This resolves the image using <- hero.png and treats /pricing as the link target when the image is rendered.

In the Web App​

Upload a file in the Files tab, then reference it in the editor with img: <- filename. For keyword or URL images, write the img: line directly — no upload needed. You can also write image: instead of img:; both are equivalent.

Image modifiers​

Inline key:value tokens placed before <- control how the image is displayed or delivered. They are stripped from the alt text automatically.

aspect:WxH — CSS aspect ratio crop​

Constrains the image to a fixed aspect ratio using CSS. The image fills the container and is cropped to fit. Works everywhere with no plan requirement.

img: aspect:16x9 <- hero.png
img: aspect:1x1 <- profile.jpg
img: aspect:4x3 <- product.png

Supported ratios: any WxH pair — 16x9, 4x3, 3x2, 1x1, etc.

width:N / height:N — Cloudflare Image Resizing​

Rewrites the image src to a Cloudflare Image Resizing URL so the image is resized and re-encoded at the CDN. The browser downloads only the smaller, optimised file (served as WebP or AVIF automatically).

img: width:800 <- hero.png
img: width:800 height:400 <- hero.png

Requirement: Cloudflare Image Resizing on the serving zone. That is a Cloudflare zone feature (Cloudflare's own Pro plan or the Image Resizing add-on), not a Micropage plan tier. In local dev the /cdn-cgi/image/ path is a no-op — the original image loads unmodified as a fallback.

The generated URL uses fit=cover and format=auto:

/cdn-cgi/image/width=800,height=400,fit=cover,format=auto/{original-url}

Combining modifiers​

You can combine aspect: with a caption name:

img: Hero aspect:16x9 <- hero.png
img: Profile aspect:1x1 <- profile.jpg -> /about

Modifier tokens are stripped before the name is used as alt text, so Hero becomes the alt text and aspect:16x9 sets the layout.

Icons and text: (not the same as sections)​

On img: lines, only image modifiers (aspect:, width:, height:) and optional names apply. Section lines use text:light / text:dark for the whole section frame.

On icon: lines, text:primary, text:success, etc. select Bootstrap text color classes for that icon. See Site Colors & Section Modifiers and Components & Aliases.

Notes​

  • Files resolved from keywords or URLs are saved to the project file store automatically.
  • Deleting a stored file that is referenced in markup will cause a broken image after the next build.
  • To see which files are stored in a project, use the Files tab in the Web App or micropage files list from the CLI.