^IM Image Move

Images, graphics and stored formats ZPL caret command

Moves a stored image straight into the bitmap at the field position, the same as ^XG but without magnification.

Format ^IMd:o.x

^IM parameters

Parameters of ^IM
ParameterMeaningAccepted valuesDefault
dlocation of stored objectpp. 248, 373

The storage device the image is read from.

  • R:Storage location R:.
  • E:Storage location E:.
  • B:Storage location B:.
  • A:Storage location A:.

The search priority. This entry does not list the order; the ^XG entry gives it as R:, E:, B:, A:.

oobject namep. 248

The name the image was stored under.

1 to 8 alphanumeric characters.

UNKNOWN

If no name is given, UNKNOWN is used.

xextensionp. 248

The extension of the stored image.

The guide labels .GRF and .PNG as fixed values for this parameter.
  • .GRFgraphic file
  • .PNGPNG image

The guide calls the extension a fixed value and lists both.

Not stated in the guide.

^IM notes and gotchas

  • Gotcha

    The guide says ^IM may need less formatting time than ^XG because it does not magnify, but only if the image sits on an 8-, 16- or 32-bit boundary.

    p. 248
  • Note

    The command performs a direct move of an image from the storage area into the bitmap. The guide says it is identical to ^XG except that it has no sizing parameters.

    p. 248
  • Note

    The image can be placed anywhere with ^FO. The guide's example prints one stored image at five positions in its original size.

    p. 248
  • Note

    The ~DY entry gives an example in which ^FO0,0 and ^IM bring a stored PNG file to the position 0,0 of the label.

    p. 183
  • Note

    Not stated by the guide: how the 8-, 16- or 32-bit boundary is met for a given image.

    p. 248

^IM example

example.zplZPL
~DGR:BOX8.GRF,8,1,FF818181818181FF
^XA
^FO100,60^IMR:BOX8.GRF^FS
^XZ

The first line stores a small 8 by 8 dot image named BOX8.GRF in R: (the same ~DG line as in the ~DG record). The format then moves that image to the field origin 100 dots from the left and 60 dots down, at its original size.

Guides that use ^IM

BarcoderX is a .NET SDK for thermal labels and barcodes. See how it prints and exports labels.

Source Zebra, ZPL II, ZBI 2, Set-Get-Do, Mirror, WML Programming Guide, P1134473-11EN Rev A, 2026/07/05, pages 175, 176, 183, 201, 204, 247 to 249, 373.

Written by BarcoderX in its own words. Checked against the guide on 2026-11-14.

ZPL and ZPL II are trademarks of Zebra Technologies Corporation. This reference is written by BarcoderX in its own words from Zebra's published programming guide. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.