Skip to command documentation
Supportedstoragejobsession scope
~DG

Download Graphics

~DG configures download Graphics. It applies to the printer session and subsequent formats and changes job or printer-session state used while processing labels.

These are code examples only. This printer or session command does not produce a standalone label image.

Syntax
~DGd:o.x,t,w,data
d

Device to store the image

Sets device to store the image. It can be omitted when the documented default is suitable.

Default
R:
Required
No
Documented valuesR:

d variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

d = R:

Uses R: for device to store the image while the other command values stay at representative defaults.

ZPLtilde-dg-d-1.zpl
~DGR::ICON.GRF,8,1,FF818181818181FF

d = E:

Uses E: for device to store the image while the other command values stay at representative defaults.

ZPLtilde-dg-d-2.zpl
~DGE::ICON.GRF,8,1,FF818181818181FF
o

Image name

Sets image name. It can be omitted when the documented default is suitable.

Default
if a name is not specified, UNKNOWN is used
Required
No
Documented valuesOBJECT18

o variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

o = OBJECT

Uses OBJECT for image name while the other command values stay at representative defaults.

ZPLtilde-dg-o-1.zpl
~DGR:OBJECT.GRF,8,1,FF818181818181FF

o = 1

Uses 1 for image name while the other command values stay at representative defaults.

ZPLtilde-dg-o-2.zpl
~DGR:1.GRF,8,1,FF818181818181FF
x

Extension

Sets extension. It can be omitted when the documented default is suitable.

Required
No
Documented valuesGRF

x variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

x = GRF

Uses GRF for extension while the other command values stay at representative defaults.

ZPLtilde-dg-x-1.zpl
~DGR:ICON.GRF,8,1,FF818181818181FF

x = GRF2

Uses GRF2 for extension while the other command values stay at representative defaults.

ZPLtilde-dg-x-2.zpl
~DGR:ICON.GRF2,8,1,FF818181818181FF
t

Total number of bytes in the graphic

Sets total number of bytes in the graphic. It can be omitted when the documented default is suitable.

Required
No
Documented values0

t variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

t = 0

Uses 0 for total number of bytes in the graphic while the other command values stay at representative defaults.

ZPLtilde-dg-t-1.zpl
~DGR:ICON.GRF,0,1,FF818181818181FF

t = 1

Uses 1 for total number of bytes in the graphic while the other command values stay at representative defaults.

ZPLtilde-dg-t-2.zpl
~DGR:ICON.GRF,1,1,FF818181818181FF
w

Number of bytes per row

Sets number of bytes per row. It can be omitted when the documented default is suitable.

Required
No
Documented values0

w variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

w = 0

Uses 0 for number of bytes per row while the other command values stay at representative defaults.

ZPLtilde-dg-w-1.zpl
~DGR:ICON.GRF,8,0,FF818181818181FF

w = 1

Uses 1 for number of bytes per row while the other command values stay at representative defaults.

ZPLtilde-dg-w-2.zpl
~DGR:ICON.GRF,8,1,FF818181818181FF
data

ASCII hexadecimal string defining image

Sets aSCII hexadecimal string defining image. It can be omitted when the documented default is suitable.

Required
No
Documented valuestext

data variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

data = text

Uses text for aSCII hexadecimal string defining image while the other command values stay at representative defaults.

ZPLtilde-dg-data-1.zpl
~DGR:ICON.GRF,8,1,text

data = text2

Uses text2 for aSCII hexadecimal string defining image while the other command values stay at representative defaults.

ZPLtilde-dg-data-2.zpl
~DGR:ICON.GRF,8,1,text2

Primary source

Official Zebra reference

Use the manufacturer reference for printer- and firmware-specific behavior beyond ZPLr’s pinned rendering profile.

Open Zebra documentation