---
name: "scalebar"
section: "1"
platform: "linux"
package: "mapserver-bin"
version: "8.4.0-4+deb13u2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/scalebar"
---

# scalebar(1)

create a scalebar image from a mapfile

## NAME

scalebar - create a scalebar image from a mapfile

## SYNOPSIS

FC**scalebar**F\[0\]  \[*mapfile* *outputimage*  \| FC**-v**F\[0\]\]

## DESCRIPTION

**scalebar** creates a scalebar image from a mapfile. Output is either PNG or GIF depending on what version of the GD library used.

## OPTIONS

- *mapfile*

  Path to the mapfile.

- *outputimage*

  Path to the output image file.

- FC**-v**F\[0\]

  Display mapserver version and build options.

## SEE ALSO

[**legend**(1)](/legend/1.md)
