Bug#1123747: Correction
Emma Mueller
emma2 at ro.ru
Sat Dec 20 21:54:14 GMT 2025
More accurately:
$ pnginfo
Usage: pnginfo [-d] [-D] <filenames>
$ man pnginfo | grep -A1 SYNOPSIS
SYNOPSIS
pnginfo [-t] [-d] [-D] <filenames>
$ wget -q https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png
$ grep -ai pHYs Example.png
$ diff <(pnginfo Example.png) <(pnginfo -t Example.png) | grep -i Resolution
< Resolution: 32720, 2 (unit unknown)
> Resolution: 32612, 3 (unit unknown)
As you see, the built-in help of pnginfo doesn't mention the switch `-t`, though it is implemented. Please mention this switch (or drop the support for `-t` altogether if there are too many irreparable bugs associated with it).
Further, if there is no resolution information (the pHYs chunk) in the PNG file, the resolution values output with `-t` differ from those output without `-t`. This difference is meaningless; it'd be way more consequential not to print those out-of-thin-air values at all if the resolution information is not supplied in the input PNG file.
Gratefully!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-phototools-devel/attachments/20251220/73b20176/attachment-0001.htm>
More information about the Pkg-phototools-devel
mailing list