mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-05-27 03:02:10 +00:00
fix: remove argument names from q_image.save()
Fixes an incorrect call to .save() that prevented vector images from rendering.
This commit is contained in:
@@ -1216,7 +1216,7 @@ class ThumbRenderer(QObject):
|
||||
# Write the image to a buffer as png
|
||||
buffer: QBuffer = QBuffer()
|
||||
buffer.open(QBuffer.OpenModeFlag.ReadWrite)
|
||||
q_image.save(device=buffer, format="PNG") # pyright: ignore[reportArgumentType]
|
||||
q_image.save(buffer, "PNG") # pyright: ignore[reportCallIssue, reportArgumentType]
|
||||
|
||||
# Load the image from the buffer
|
||||
im = Image.new("RGB", (size, size), color="#1e1e1e")
|
||||
|
||||
Reference in New Issue
Block a user