Libpng interlace warning
Maintainer antworten meist innerhalb von 5 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 18/100
Rechercherichtung
The payload names no source file; the only entry points are the reproduction's $mpdf->WriteHTML($html) call and the <img> tag with an interlaced PNG. Start by reproducing the libpng warning with the snippet, then find where mPDF reads PNG images and where libpng's read-image call is made. Done means the warning no longer appears for an interlaced PNG and the output PDF still embeds the image. The issue doesn't say what the expected fix is, so confirm the approach with maintainers first.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Guidelines
- I understand that if I fail to adhere to contribution guidelines and/or fail to provide all required details, this issue may be closed without review.
Description of the bug
When generating a PDF containing an interlaced PNG image, I get this warning:
libpng warning: Interlace handling should be turned on when using png_read_image
It's the same problem reported in issue #1589. The issue it's closed, but I still get the warning.
The output only contains the message, with no indication of where in the code it occurs.
I can't edit the png, along with all the HTML code, because it comes from a remote source that isn't mine.
In the PHP example to reproduce the error, I simplified the HTML source for testing purposes.
mPDF version
8.2.5
PHP Version and environment (server type, cli provider etc., enclosing libraries and their respective versions)
PHP 8.2 / PHP 8.3
Reproducible PHP+CSS+HTML snippet suffering by the error
<?php
// S
<img width="320" height="68" alt="Image" src="https://github.com/user-attachments/assets/8bfc112a-1d24-4df5-983b-3a1ab6b2d223" />
implified code for testing, in my real environment all html comes from a remote source.
require_once __DIR__ . '/vendor/autoload.php';
$html = '<html><head><title>test</title><body><img src="https://www.forthrightassets.com/images/FORUM_2022_DocLogo.png"></body></html>';
$mpdf = new \Mpdf\Mpdf;
$mpdf->WriteHTML($html);
$mpdf->Output(__DIR__ . '/test.pdf', 'F');
- Vorherrschende Sprache
- PHP
- Sterne
- 4.7k
- Forks
- 1.1k
- Ø Merge
- 6 T. 11 Std.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus mpdf/mpdf
-
SVG path arcs with an explicit zero radius throw DivisionByZeroErrorEvtl. vergeben @Syed-Shehroz-Sohail hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 5 Tagen
-
Closing a column set with an image in it leaves the cursor below the page, wasting the rest of itOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 5 Tagen
-
8.3: Local fallback for external stylesheets is inverted in CssLoader (basepathIsLocal check negated) — CSS silently dropped when remote fetch failsEvtl. vergeben @hemreduru hat das vor 12 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 5 Tagen
-
Tag/Td.php silently clears cell top/bottom borders when a row has a partial border (plus two warnings and a deprecation)Evtl. vergeben @alizamani1616 hat das vor 61 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 5 Tagen
-
AdjustHTML() collapses multiple spaces inside quoted attribute values (src, href)Evtl. vergeben @sornapudisuresh hat das vor 130 Tagen übernommen. Offenbug/fix help wanted HTML/CSS support
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
mpdf/mpdf#2208 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 5 Tagen
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
sync-en
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Перевод устарел
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
follow-up
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag