Re: PNG loading time
Norbert Preining <[email protected]> Tue, 17 Feb 2026 15:22:11 +0100
| Newsgroups | gmane.comp.tex.live |
|---|---|
| Message-ID | <aZR5k9Ijb-GELh0v@fettsack> |
Hi Karl, > BTW: the pdftex manual gives (thanks to Hans, I believe) two specific > cases that disable copying: interlaced PNGs, and PNGs using gamma > correction. Yes, those are very common cases, indeed. The most common ones. > I confess I did not delve into the details of the other cases you and > Hartmut mentioned (cHRM, bKGD, "colortype 3 palettes"), but I mentioned > them in the manual anyway, along with RGBA. --thanks, karl. Not that it needs mentioning, but I wrote a tool that detects and converts pngs to a fast copy mode: https://github.com/norbusan/png-pdftex-tool Python, no external dependencies. > pixel graphics (\eg\ line scans, screenshots). As of \PDFTEX\ 1.30.0, > the alpha channel of \PNG\ images is processed if available; this allows ??? Is that true? The code in writepng.c does seem to remove the alpha channel? RGBA will normally also result in reencoding. Best regards Norbert -- DI Dr Norbert Preining https://www.preining.info arXiv / Cornell University + IFMGA Guide + TU Wien + TeX Live GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13