Author Topic: TIFF  (Read 3203 times)

Offline feherbt

  • Imaging User
  • *
  • Posts: 7
    • View Profile
Re: TIFF
« Reply #15 on: 11 July 2011, 08:17:30 »
There are TIFF tags PHOTOMETRIC_MINISBLACK and PHOTOMETRIC_MINISWHITE
which tell the decoder if pixel with value 0 is black or white.
Look's like Imaging does not set the tag for binary images and the decoder programs
assume some default. The default for Irfan and MS Imaging is probably different.
I'll update the TIFF writer to set the tag explicitly.

EDIT: So it looks like there's some bug in MS Office Document Imaging that ignores the
PHOTOMETRIC_MINISBLACK tag. Binary images are always assumed to be PHOTOMETRIC_MINISWHITE.
Other MS programs (Paint, Explorer, ...) handle binary TIFFs saved by Imaging correctly.
Thank your answer,
and waiting your code!

Thank You again!  :)

Offline feherbt

  • Imaging User
  • *
  • Posts: 7
    • View Profile
Re: TIFF
« Reply #16 on: 21 November 2011, 10:18:29 »
Dear Galfar,

just i woud like to know,
did you updated the TIFF tags writer code?

Thank you,

Offline Galfar

  • Administrator
  • Imaging User
  • *****
  • Posts: 312
    • View Profile
    • Galfar's Homepage
Re: TIFF
« Reply #17 on: 12 December 2011, 00:19:55 »
TIFF tags writer was update long ago,
but it probably won't work in MS Doc Imaging
anyway due to the bug in MS Doc described previously.