Open icyz opened 5 years ago
One way to do this is with a workaround:
$decoder = GdDecoder::fromPath($imagePath);
$image = new Image($decoder);
$bytesPerRow = $image->width();
$byteCount = $bytesPerRow * $image->height();
$zplImage = "^GFA,$byteCount,$byteCount,$bytesPerRow,{$image->toAscii()}";
How can I get only
ZPL
code without^XA
and^XZ
? Actually I can trim out those tags, but there is any elegant solution? I've inspected the code but didn't see anything for that.Thanks