pymupdf / RAG

RAG (Retrieval-Augmented Generation) Chatbot Examples Using PyMuPDF
https://pymupdf.readthedocs.io/en/latest/pymupdf4llm
GNU Affero General Public License v3.0
518 stars 81 forks source link

version v.015 missing pix.save(image_filename) #140

Closed kingennio closed 2 months ago

kingennio commented 2 months ago

I've just installed the latest v.015 and I noticed images are no longer saved in the folder even with write_images=True I noticed that in the text md the correct links to the imeages are written. Then I stepped through with the code and I think I found the issue: in function save_image, line 365 returns image_filename w/o first saving the image with pix.save(image_filename). I've added the missing line of code and now it works fine.

JorjMcKie commented 2 months ago

Oops - thanks for the report. Will fix this soon.

JorjMcKie commented 2 months ago

Fixed with version 0.0.16