txt image file format has changed
Posted: 2016-11-25T18:20:39-07:00
I'm building a program to measure luminance from images generated by a DSLR
camera. One step is using the 'convert' command to create a text formatted
image file from a .tiff image file. The behaviour has changed between
versions. Here is a sample of first few lines of the .txt file.
Version: ImageMagick 6.7.7-10 2016-06-01
# ImageMagick pixel enumeration: 574,432,65535,srgb
0,0: (65526,65534,65535) #FFF6FFFEFFFF srgb(99.9863%,99.9985%,100%)
1,0: (65534,65534,65535) #FFFEFFFEFFFF srgb(99.9985%,99.9985%,100%)
2,0: (65535,65534,65535) #FFFFFFFEFFFF srgb(100%,99.9985%,100%)
3,0: (65535,65534,65535) #FFFFFFFEFFFF srgb(100%,99.9985%,100%)
4,0: (65535,65534,65535) #FFFFFFFEFFFF srgb(100%,99.9985%,100%)
Version: ImageMagick 6.8.9-9 Q16 x86_64 2016-04-18
0,0: (100%,100%,100%) #FFFFFFFEFFFF srgb(100%,100%,100%)
1,0: (100%,100%,100%) #FFFEFFFEFFFF srgb(100%,100%,100%)
2,0: (100%,100%,100%) #FFFFFFFEFFFF srgb(100%,100%,100%)
3,0: (100%,100%,100%) #FFFFFFFEFFFF srgb(100%,100%,100%)
4,0: (100%,100%,100%) #FFFFFFFEFFFF srgb(100%,100%,100%)
There are two issues with this latest version:
- The values in brackets round off the actual value, as given by the hex
numbers after the hash mark.
- The values in brackets are repeats, which doesn't seem to be all
that useful.
The solution of course is to use the hexadecimal values in both cases,
which is what I have done. I just hope that doesn't go away.
ImageMagick is a fabulous resource. I document this in case no one
else has spotted it.
Peter
camera. One step is using the 'convert' command to create a text formatted
image file from a .tiff image file. The behaviour has changed between
versions. Here is a sample of first few lines of the .txt file.
Version: ImageMagick 6.7.7-10 2016-06-01
# ImageMagick pixel enumeration: 574,432,65535,srgb
0,0: (65526,65534,65535) #FFF6FFFEFFFF srgb(99.9863%,99.9985%,100%)
1,0: (65534,65534,65535) #FFFEFFFEFFFF srgb(99.9985%,99.9985%,100%)
2,0: (65535,65534,65535) #FFFFFFFEFFFF srgb(100%,99.9985%,100%)
3,0: (65535,65534,65535) #FFFFFFFEFFFF srgb(100%,99.9985%,100%)
4,0: (65535,65534,65535) #FFFFFFFEFFFF srgb(100%,99.9985%,100%)
Version: ImageMagick 6.8.9-9 Q16 x86_64 2016-04-18
0,0: (100%,100%,100%) #FFFFFFFEFFFF srgb(100%,100%,100%)
1,0: (100%,100%,100%) #FFFEFFFEFFFF srgb(100%,100%,100%)
2,0: (100%,100%,100%) #FFFFFFFEFFFF srgb(100%,100%,100%)
3,0: (100%,100%,100%) #FFFFFFFEFFFF srgb(100%,100%,100%)
4,0: (100%,100%,100%) #FFFFFFFEFFFF srgb(100%,100%,100%)
There are two issues with this latest version:
- The values in brackets round off the actual value, as given by the hex
numbers after the hash mark.
- The values in brackets are repeats, which doesn't seem to be all
that useful.
The solution of course is to use the hexadecimal values in both cases,
which is what I have done. I just hope that doesn't go away.
ImageMagick is a fabulous resource. I document this in case no one
else has spotted it.
Peter