From 364868b394626c5a426b1ae85838f92a899b5c59 Mon Sep 17 00:00:00 2001 From: Oliver Duis Date: Mon, 16 Apr 2012 07:44:47 +0200 Subject: [PATCH] Fixed BitsPerSample tag in TIFF output header see issue 1311 --- rtexif/rtexif.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtexif/rtexif.cc b/rtexif/rtexif.cc index 96e5a90db..500d20780 100644 --- a/rtexif/rtexif.cc +++ b/rtexif/rtexif.cc @@ -1504,7 +1504,8 @@ int ExifManager::createTIFFHeader (const TagDirectory* root, const rtengine::pro defTags[0]->setInt (W, 0, LONG); defTags[1]->setInt (H, 0, LONG); - defTags[8]->setInt (bps, 0, SHORT); + defTags[8]->initInt(0, SHORT, 3); + for (int i=0;i<3;i++) defTags[8]->setInt(bps, i*2, SHORT); for (int i=defTags.size()-1; i>=0; i--) cl->replaceTag (defTags[i]->clone (cl));