correct rebase error

Signed-off-by: Manuel030 <manuelenrique.plank@gmail.com>
This commit is contained in:
Manuel030 2024-11-27 11:58:03 +01:00
parent 34ef233c42
commit cf2f3a1ceb

View File

@ -507,10 +507,10 @@ class MsWordDocumentBackend(DeclarativeDocumentBackend):
image_data = get_docx_image(element, drawing_blip)
image_bytes = BytesIO(image_data)
level = self.get_level()
# Open the BytesIO object with PIL to create an Image
try:
pil_image = Image.open(image_bytes)
level = self.get_level()
doc.add_picture(
parent=self.parents[level - 1],
image=ImageRef.from_pil(image=pil_image, dpi=72),