Fix thumbnail format

Width and height should have an "x" instead of space in between.
This commit is contained in:
Coşku Baş 2022-04-23 20:06:43 +02:00 committed by GitHub
parent 5330e53ae6
commit 1d45a273d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ class CreateThumbnail(Script):
encoded_snapshot_length = len(encoded_snapshot)
gcode.append(";")
gcode.append("; thumbnail begin {} {} {}".format(
gcode.append("; thumbnail begin {}x{} {}".format(
width, height, encoded_snapshot_length))
chunks = ["; {}".format(encoded_snapshot[i:i+chunk_size])