]> git.imager.perl.org - imager.git/commitdiff
missed setting it for centimetres
authorTony Cook <tony@develop=help.com>
Mon, 24 Jan 2005 12:04:00 +0000 (12:04 +0000)
committerTony Cook <tony@develop=help.com>
Mon, 24 Jan 2005 12:04:00 +0000 (12:04 +0000)
tiff.c

diff --git a/tiff.c b/tiff.c
index d60e4c9aa072d9e9bd6a5118be87ccee8b204df5..9ab8dec36a01500076a047cf1181021a7e1d753c 100644 (file)
--- a/tiff.c
+++ b/tiff.c
@@ -204,6 +204,7 @@ static i_img *read_one_tiff(TIFF *tif) {
       /* from dots per cm to dpi */
       xres *= 2.54;
       yres *= 2.54;
+      i_tags_add(&im->tags, "tiff_resolutionunit_name", 0, "centimeter", -1, 0);
     }
     else if (resunit == RESUNIT_NONE) {
       i_tags_addn(&im->tags, "i_aspect_only", 0, 1);