Closed cocorossello closed 1 year ago
Hi!
Thanks for the report.
The bug happens when:
dpi
option is set, andIt’s related to 93df1a5e, that fixes the same problem, but only when images have the same size.
The problem is fixed by 33892cd1 (and the image is now included only once), but WeasyPrint continues to crash when image-rendering
is set to different values for the same PNG.
We’ll also need to include tests afterwards…
New issue (should not happen in real documents) here: #1942
With this html:
Rendering fails if using dpi option:
html.write_pdf(optimize_images=True, jpeg_quality=75, dpi=120)
It happens with some images, not all. Everything is ok without dpi option
The error: