From 52bd7f2505b4f6630fae43886b461879371146a6 Mon Sep 17 00:00:00 2001 From: Collin Dutter Date: Tue, 10 Sep 2024 14:05:35 -0700 Subject: [PATCH] Use artifact encoding for images --- griptape/artifacts/image_artifact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/griptape/artifacts/image_artifact.py b/griptape/artifacts/image_artifact.py index 82c47c0448..52ac2fcf43 100644 --- a/griptape/artifacts/image_artifact.py +++ b/griptape/artifacts/image_artifact.py @@ -23,7 +23,7 @@ class ImageArtifact(BlobArtifact): @property def base64(self) -> str: - return base64.b64encode(self.value).decode("utf-8") + return base64.b64encode(self.value).decode(self.encoding) @property def mime_type(self) -> str: