Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issue with adding large images with FlateDecode image filter #643

Closed
Markovvn1 opened this issue Dec 24, 2022 · 0 comments · Fixed by #644
Closed

Performance issue with adding large images with FlateDecode image filter #643

Markovvn1 opened this issue Dec 24, 2022 · 0 comments · Fixed by #644

Comments

@Markovvn1
Copy link

Error details
Adding large images with the `FlateDecode' filter takes an unreasonably long time. For example, adding an 8000x8000 RGB image takes ~55 seconds.

Minimal code

from PIL import Image
from fpdf import FPDF

pdf = FPDF()
pdf.add_page()
pdf.image(Image.new("RGB", (8000, 8000)))  # this operation takes ~55 seconds

Environment

  • fpdf2 version used: latest from master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants