Package: pngtools
Version: 1.2-1
Severity: wishlist
Continuing bugs.debian.org/1123747, when the pHYs chunk is absent, pngtool 
reports “Resolution: (not specified)”. This is pointless. Except textual 
chunks, the tradition has been not to mention an ancillary chunk at all if it's 
absent. Indeed, there are many other chunk types, the absence of the instances 
of which is not reported. Example with pHYs and sBIT:
$ grep pHYs /usr/share/inkscape/screens/start-support-time.png 
/usr/share/inkscape/themes/Minwaita-Inkscape/gtk-3.0/assets/bullet-symbolic.symbolic.png
grep: /usr/share/inkscape/screens/start-support-time.png: binary file matches
$ grep sBIT /usr/share/inkscape/screens/start-support-time.png 
/usr/share/inkscape/themes/Minwaita-Inkscape/gtk-3.0/assets/bullet-symbolic.symbolic.png
grep: 
/usr/share/inkscape/themes/Minwaita-Inkscape/gtk-3.0/assets/bullet-symbolic.symbolic.png:
 binary file matches
$ pnginfo /usr/share/inkscape/screens/start-support-time.png 
/usr/share/inkscape/themes/Minwaita-Inkscape/gtk-3.0/assets/bullet-symbolic.symbolic.png
 | egrep -i "/usr|bit|resolution"
/usr/share/inkscape/screens/start-support-time.png...
Bitdepth (Bits/Sample): 8
Resolution: 3779, 3779 (pixels per meter)
/usr/share/inkscape/themes/Minwaita-Inkscape/gtk-3.0/assets/bullet-symbolic.symbolic.png...
Bitdepth (Bits/Sample): 8
Resolution: (not specified)
Here, the absence of sBIT was not reported, but the absence of resolution was.
Suggestion: if the pHYs chunk is absent, drop the line “Resolution: (not 
specified)”, as it is just additional clutter versus the plain absence of 
“Resolution: …”.

Reply via email to