I'd like to pose a challenging question to you. How is it possible to identify a blank fax page that is mostly filled with white color using the ImageMagick tool. This is common problem that arises when someone sends a blank page facing the screen.
here is identify output for blank page:
Code: Select all
Image: some.tif
Format: TIFF (Tagged Image File Format)
Geometry: 1728x1064
Class: DirectClass
Type: Bilevel
Endianess: MSB
Colorspace: Gray
Channel depth:
Gray: 1-bits
Channel statistics:
Red:
Min: 0 (0)
Max: 1(1)
Mean: 0.998839 (0.998839)
Standard deviation: 0.0340568 (0.0340568)
Colors: 2
Histogram:
2135: ( 0, 0, 0) black
1836457: (255,255,255) white
Rendering-intent: Undefined
Resolution: 204x98
Units: PixelsPerInch
Filesize: 10kb
Interlace: None
Background Color: white
Border Color: #DFDFDF
Matte Color: grey74
Dispose: Undefined
Iterations: 0
Scene: 0 of 2
Compression: Fax
Orientation: TopLeft
Signature: 2c03ed86e50eb5f4aad60447d070fd2b273daf427df3040d17604b4dac1518ee
Tainted: False
Version: ImageMagick 6.2.4 10/28/05 Q16 http://www.imagemagick.org
Image: some.tif
Format: TIFF (Tagged Image File Format)
Geometry: 1728x1064
Class: DirectClass
Type: Bilevel
Endianess: MSB
Colorspace: Gray
Channel depth:
Gray: 1-bits
Channel statistics:
Red:
Min: 0 (0)
Max: 1(1)
Mean: 0.998745 (0.998745)
Standard deviation: 0.0354081 (0.0354081)
Colors: 2
Histogram:
2308: ( 0, 0, 0) black
1836284: (255,255,255) white
Rendering-intent: Undefined
Resolution: 204x98
Units: PixelsPerInch
Filesize: 10kb
Interlace: None
Background Color: white
Border Color: #DFDFDF
Matte Color: grey74
Dispose: Undefined
Iterations: 0
Scene: 1 of 2
Compression: Fax
Orientation: TopLeft
Signature: 3950b17e68c37f07b6db24458ecd905cb0252fc06a08bb93ea967d903d4128ef
Tainted: False
User Time: 1.340u
Elapsed Time: 0:02
Pixels per second: 1.3mb
Version: ImageMagick 6.2.4 10/28/05 Q16 http://www.imagemagick.org
and here is identify output for a normal fax page:
Code: Select all
Image: some_1.tif
Format: TIFF (Tagged Image File Format)
Geometry: 1728x1051
Class: DirectClass
Type: Bilevel
Endianess: MSB
Colorspace: Gray
Channel depth:
Gray: 1-bits
Channel statistics:
Red:
Min: 0 (0)
Max: 1(1)
Mean: 0.913866 (0.913866)
Standard deviation: 0.280562 (0.280562)
Colors: 2
Histogram:
156431: ( 0, 0, 0) black
1659697: (255,255,255) white
Rendering-intent: Undefined
Resolution: 204x98
Units: PixelsPerInch
Filesize: 98kb
Interlace: None
Background Color: white
Border Color: #DFDFDF
Matte Color: grey74
Dispose: Undefined
Iterations: 0
Scene: 0 of 2
Compression: Fax
Orientation: TopLeft
Signature: 0bfae87cd62b1ac9e6392c6ab2d200f3780ee0e3ef180a0764af9c22afd2d4b5
Tainted: False
Version: ImageMagick 6.2.4 10/28/05 Q16 http://www.imagemagick.org
Image: some_1.tif
Format: TIFF (Tagged Image File Format)
Geometry: 1728x1052
Class: DirectClass
Type: Bilevel
Endianess: MSB
Colorspace: Gray
Channel depth:
Gray: 1-bits
Channel statistics:
Red:
Min: 0 (0)
Max: 1(1)
Mean: 0.939581 (0.939581)
Standard deviation: 0.238261 (0.238261)
Colors: 2
Histogram:
109833: ( 0, 0, 0) black
1708023: (255,255,255) white
Rendering-intent: Undefined
Resolution: 204x98
Units: PixelsPerInch
Filesize: 98kb
Interlace: None
Background Color: white
Border Color: #DFDFDF
Matte Color: grey74
Dispose: Undefined
Iterations: 0
Scene: 1 of 2
Compression: Fax
Orientation: TopLeft
Signature: 4e8d4e22656cde6c1a8333474c3cd8acd03d71f25c6c8eea74226e139bdd4077
Tainted: False
User Time: 1.300u
Elapsed Time: 0:02
Pixels per second: 1.3mb
Version: ImageMagick 6.2.4 10/28/05 Q16 http://www.imagemagick.org
dt