Skip to content

Commit

Permalink
Converting thumbnail to RGB at indexing time
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoddard committed Oct 24, 2024
1 parent d801d10 commit c8644c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions image/image_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c8644c3

Please sign in to comment.