Skip to content

^GF Graphic Field

Embeds a bitmap image in the label (ASCII hex, binary or Z64).

Graphics · Updated 2026-10-20

Syntax

^GFa,b,c,d,data

Parameters

ParameterWhat it doesValues
aCompression type.A = ASCII hex, B = binary, C = compressed binary
bTotal bytes of data.1 to 99999
cTotal bytes of the image.1 to 99999
dBytes per row.1 to 99999
dataThe image data.Hex, binary or Z64/B64

Common mistakes

  • Bytes per row is ceil(width in dots / 8). A wrong value skews the image into diagonal stripes.
  • The viewer's “Add image” builds the ^GFA for you from a PNG or JPEG.

Example

Edit the code and the label redraws. This is the same engine as the API.

Try it

Preview

100%

Questions

What does ^GF do in ZPL?

Embeds a bitmap image in the label (ASCII hex, binary or Z64).

What is the syntax of ^GF?

^GFa,b,c,d,data

What should I watch out for with ^GF?

Bytes per row is ceil(width in dots / 8). A wrong value skews the image into diagonal stripes.

Related commands