소스 검색

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

### What problem does this PR solve?

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

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.20.1
Jay Xu 3 달 전
부모
커밋
cae11201ef
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      rag/app/presentation.py

+ 1
- 1
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())

Loading…
취소
저장