From c8644c39d95b0d4f8eb7c3ab367f600155559ef0 Mon Sep 17 00:00:00 2001 From: mgoddard Date: Thu, 24 Oct 2024 15:45:08 -0400 Subject: [PATCH] Converting thumbnail to RGB at indexing time --- image/image_search.py | 1 + 1 file changed, 1 insertion(+) diff --git a/image/image_search.py b/image/image_search.py index 4c0178b..53c05d7 100755 --- a/image/image_search.py +++ b/image/image_search.py @@ -301,6 +301,7 @@ def index_image(conn, uri): "uri": uri , "embedding": embed } + thumb = thumb.convert("RGB") img_io = io.BytesIO() thumb.save(img_io, "JPEG") img_io.seek(0)