diff --git a/print_image.sh b/print_image.sh index 25501a0..ae4bc06 100755 --- a/print_image.sh +++ b/print_image.sh @@ -15,6 +15,10 @@ size="$(hex_size "$(("$size" + 10))")" size_x="$(hex_size "$(echo "$data_header" | cut -d' ' -f 1)")" size_y="$(hex_size "$(echo "$data_header" | cut -d' ' -f 2)")" +# Set print speed +printf '\x1D(K\2\0' > $dev +printf '51' > $dev + # Upload graphics data printf '\x1D(L' > $dev printf "$size" > $dev @@ -26,7 +30,8 @@ printf "$size_y" > $dev # size y echo "$data" | base64 -d > $dev # Print graphics data -printf '\x1D(L\2\00002' > $dev +printf '\x1D(L\2\0' > $dev +printf '02' > $dev # Cut paper printf '\n\n\n\x1DVA\0' > $dev