Hello,
fmw42 wrote:What is your platform?
My platform is OS X El Capitan. My package manager is Homebrew, and the latest version in Homebrew is the one with the bug:
ImageMagick 6.9.3-7 Q16 x86_64 2016-04-01
fmw42 wrote:Can you reproduce that on your 6.9.3.7?
You mean reproduce the output of "identify"? Yes, I can:
Code: Select all
convert logo.png -threshold 50% logo.tif
identify -verbose logo.tif
output wrote:Image: logo.tif
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 1600x900+0+0
Resolution: 28.35x28.35
Print size: 56.4374x31.746
Units: PixelsPerCentimeter
Type: Bilevel
Base type: Grayscale
Endianess: LSB
Colorspace: Gray
Depth: 8/1-bit
Channel depth:
gray: 1-bit
alpha: 1-bit
Channel statistics:
Pixels: 1440000
Gray:
min: 0 (0)
max: 255 (1)
mean: 47.8878 (0.187795)
standard deviation: 99.5899 (0.390548)
kurtosis: 0.556168
skewness: 1.5988
entropy: 0.696836
Alpha:
min: 255 (1)
max: 255 (1)
mean: 255 (1)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
entropy: 0
Colors: 2
My temporary workaround for the bug is to use the PNG format and to run the "sips" command bundled with OS X for the final TIFF output:
Code: Select all
convert logo.png -threshold 50% logo_monochrome.png
sips -s format tiff logo_monochrome.png --out logo.tif
identify -verbose logo.tif
output wrote:Image: logo.tif
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 1600x900+0+0
Resolution: 72x72
Print size: 22.2222x12.5
Units: PixelsPerInch
Type: Bilevel
Base type: Bilevel
Endianess: MSB
Colorspace: Gray
Depth: 1-bit
Channel depth:
gray: 1-bit
Channel statistics:
Pixels: 1440000
Gray:
min: 0 (0)
max: 1 (1)
mean: 0.187795 (0.187795)
standard deviation: 0.390548 (0.390548)
kurtosis: 0.556168
skewness: 1.5988
entropy: 0.696836
Colors: 2