Merge pull request #11917 from tapir/master

Fix thumbnail format
This commit is contained in:
Jaime van Kessel 2023-10-04 13:01:39 +02:00 committed by GitHub
commit aafe38aa16
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) encoded_snapshot_length = len(encoded_snapshot)
gcode.append(";") gcode.append(";")
gcode.append("; thumbnail begin {} {} {}".format( gcode.append("; thumbnail begin {}x{} {}".format(
width, height, encoded_snapshot_length)) width, height, encoded_snapshot_length))
chunks = ["; {}".format(encoded_snapshot[i:i+chunk_size]) chunks = ["; {}".format(encoded_snapshot[i:i+chunk_size])