Skip to content

Commit 6502c75

Browse files
committed
fix: remove argument names from q_image.save()
Fixes an incorrect call to .save() that prevented vector images from rendering.
1 parent 268efc9 commit 6502c75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tagstudio/qt/previews/renderer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ def _image_vector_thumb(filepath: Path, size: int) -> Image.Image:
12161216
# Write the image to a buffer as png
12171217
buffer: QBuffer = QBuffer()
12181218
buffer.open(QBuffer.OpenModeFlag.ReadWrite)
1219-
q_image.save(device=buffer, format="PNG") # pyright: ignore[reportArgumentType]
1219+
q_image.save(buffer, "PNG") # pyright: ignore[reportCallIssue, reportArgumentType]
12201220

12211221
# Load the image from the buffer
12221222
im = Image.new("RGB", (size, size), color="#1e1e1e")

0 commit comments

Comments
 (0)