Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix "out of memory" if slide.get_thumbnail() to a huge image (#9211)

Jay Xucae11201ef26
diff --git a/rag/app/presentation.py b/rag/app/presentation.py
index d924f49b1f..d451deb8de 100644
--- a/rag/app/presentation.py
+++ b/rag/app/presentation.py
@@ -42,7 +42,7 @@ class Ppt(PptParser):
try:
with BytesIO() as buffered:
slide.get_thumbnail(
- 0.5, 0.5).save(
+ 0.1, 0.1).save(
buffered, drawing.imaging.ImageFormat.jpeg)
buffered.seek(0)
imgs.append(Image.open(buffered).copy())