GNOME Bugzilla – Bug 792192
jpeg, png, tiff: Fix pixel density conversions
Last modified: 2018-01-29 10:05:56 UTC
The conversions from pixels per centimetre to pixels per inch, introduced in commit 5c04c7dedeb985, are wrong. They'd be correct if we were converting from centimetres to inches, whereas we want to convert between per unit lengths. eg., if there is one pixel per centimetre, then there would be 2.54 pixels per inch, not 1/2.54 pixels per inch.
Created attachment 366271 [details] [review] tracker-extract: Fix pixel density conversions
Comment on attachment 366271 [details] [review] tracker-extract: Fix pixel density conversions Looks good, but doesn't CM_TO_INCH sound like a bit of a misnomer now? I read that as "1cm in inches", and the previous value was right according to that. How about CM(S)_PER_INCH?
Created attachment 367539 [details] [review] tracker-extract: Rename constant
Comment on attachment 367539 [details] [review] tracker-extract: Rename constant Looks good!