Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Tags
  • Reference
  • Frontend developer
  • Image management
  • Template
  • Render
  • URL

image_url

See also

  • Media developer guide.
  • Media classes for options that are only available in mediaclass files.
  • tag#image, tag#image_data_url and tag#media tags.

Generate the url of a still image.

The {% image_url %} tag is used generate the url of an image. {% image_url %} accepts all parameters of the {% image %} tag but only outputs the url and not the <img\> element to display it.

Edit on GitHub

Related pages

  • Render and manage media Use resource IDs, media metadata and consistent responsive-image descriptors. →
  • image Show a still image using an <img\> element. The image will be automatically resized to the desired size and filters. For video, use the tag#media tag instead. →
  • image_data_url Generate a data: url of a still image. →
  • media Show embed, video or audio media. →

Referred by

Cookbook

Show a page background image

Connect one image and render it without constructing inline CSS from input.

Related documentation

Tags

image

Show a still image using an <img\> element. The image will be automatically resized to the desired size and filters. For video, use the…

Tags

image_data_url

Generate a data: url of a still image.

Tags

url

Generate the URL for a named dispatch rule. In this way it is possible to automatically change the generated URLs when the dispatch rules…

Tags

use

Render a named fragment defined with tag#fragment.

Tags

useblock

Render a named tag#fragment, pass it enclosed body content, and optionally override its named blocks.

Tags

compose

Compose another template and override its named blocks.

Tags

catcompose

Compose another template based on the category of a resource.

Tags

fragment

Define a named reusable template fragment.

Filters

merge_tags

A mail-merge like filter where tag-expressions in a text are replaced with the value of their evaluation.

GitHub © 2026 Zotonic