<div>Package: pngtools</div><div><br data-mce-bogus="1"></div><div>Version: 0.5~git20230507.177e87f-1</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>$ pnginfo</div><div><br data-mce-bogus="1"></div><div>Usage: pnginfo [-d] [-D] <filenames></div><div><br data-mce-bogus="1"></div><div>$ man pnginfo | grep -A1 SYNOPSIS</div><div><br data-mce-bogus="1"></div><div>SYNOPSIS</div><div><br data-mce-bogus="1"></div><div>        pnginfo [-t] [-d] [-D] <filenames><filenames></filenames></div><div><br data-mce-bogus="1"></div><div>$ wget -q <a href="https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png" target="_blank" rel="noopener" data-mce-href="https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png">https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png</a><br></div><div><br data-mce-bogus="1"></div><div>$ grep -ai pHYs Example.png</div><div><br data-mce-bogus="1"></div><div>$ diff <(pnginfo Example.png) <(pnginfo -t Example.png) | grep -i Resolution</div><div><br data-mce-bogus="1"></div><div>< Resolution: 32720, 2 (unit unknown)</div><div><br data-mce-bogus="1"></div><div>> Resolution: 32612, 3 (unit unknown)</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>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 `-t` altogether if there are too many irrepairable bugs associated with it).</div><div><br data-mce-bogus="1"></div><div>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 to drop those values completely if they are not supplied in the file.</div><div><br data-mce-bogus="1"></div><div>Gratefully!</div>