Creating Thumbnails for 16 bit imagery comes black

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
spandank
Posts: 1
Joined: 2012-11-12T02:15:00-07:00
Authentication code: 67789

Creating Thumbnails for 16 bit imagery comes black

Post by spandank »

I'm trying to generate thumbnails for 16bit TIFF image with the following command.

[convert -endian msb -depth 16 -colorspace sRGB D:\po_356191_bgrn_0000000.tif -thumbnail 250x250 -set colorspace RGB d:\1.jpg]

The command generates completely black thumbnails.
The identify verbose command gives the following results.

Code: Select all

identify -verbose d:\po_356191_bgrn_0000000.tif

Image: d:\po_356191_bgrn_0000000.tif
  Format: TIFF (Tagged Image File Format)
  Class: DirectClass
  Geometry: 13449x28427+0+0
  Resolution: 300x300
  Print size: 44.83x94.7567
  Units: PixelsPerInch
  Type: TrueColorAlpha
  Base type: TrueColor
  Endianess: MSB
  Colorspace: sRGB
  Depth: 16-bit
  Channel depth:
    red: 16-bit
    green: 16-bit
    blue: 16-bit
    alpha: 16-bit
  Channel statistics:
    Red:
      min: 26 (0.000396735)
      max: 1876 (0.0286259)
      mean: 478.597 (0.00730292)
      standard deviation: 123.879 (0.00189027)
      kurtosis: 1.34419
      skewness: 1.00039
    Green:
      min: 1 (1.5259e-005)
      max: 2047 (0.0312352)
      mean: 703.48 (0.0107344)
      standard deviation: 216.756 (0.00330748)
      kurtosis: 0.919118
      skewness: 0.879568
    Blue:
      min: 1 (1.5259e-005)
      max: 1856 (0.0283207)
      mean: 454.483 (0.00693497)
      standard deviation: 156.877 (0.00239379)
      kurtosis: 0.263127
      skewness: 0.410018
    Alpha:
      min: 1 (1.5259e-005)
      max: 2047 (0.0312352)
      mean: 1006.36 (0.0153561)
      standard deviation: 295.642 (0.00451121)
      kurtosis: 8.02289
      skewness: -0.20936
  Image statistics:
    Overall:
      min: 1 (1.5259e-005)
      max: 65534 (0.999985)
      mean: 16541.3 (0.252404)
      standard deviation: 208.772 (0.00318566)
      kurtosis: 7.23868e+008
      skewness: 2.69885e+006
  Rendering intent: Perceptual
  Gamma: 0.454545
  Chromaticity:
    red primary: (0.64,0.33)
    green primary: (0.3,0.6)
    blue primary: (0.15,0.06)
    white point: (0.3127,0.329)
  Interlace: None
  Background color: white
  Border color: srgba(223,223,223,1)
  Matte color: grey74
  Transparent color: none
  Compose: Over
  Page geometry: 13449x28427+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: None
  Orientation: TopLeft
  Properties:
    comment: "GeoEye"
    date:create: 2012-11-12T10:29:51+04:00
    date:modify: 2009-08-07T19:51:18+04:00
    signature: 40822d4811a08a0f9c075b374e3fdd062bac78f7a1bb5ea6bc826cb42c8e6172
    tiff:alpha: unassociated
    tiff:copyright: "(c) GeoEye"
    tiff:endian: msb
    tiff:photometric: RGB
    tiff:rows-per-strip: 128
    tiff:timestamp: 2009:08:07 15:44:12
  Artifacts:
    filename: d:\po_356191_bgrn_0000000.tif
    verbose: true
  Tainted: False
  Filesize: 3.0585GB
  Number pixels: 382.3M
  Pixels per second: 4.415MB
  User time: 11.497u
  Elapsed time: 1:27.586
  Version: ImageMagick 6.8.0-4 2012-10-30 Q16 http://www.imagemagick.org
identify.exe: Unknown field with tag 33550 (0x830e) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/824.
identify.exe: Unknown field with tag 33922 (0x8482) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/824.
identify.exe: Unknown field with tag 34735 (0x87af) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/824.
identify.exe: Unknown field with tag 34737 (0x87b1) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/824.
Could anyone help please?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Creating Thumbnails for 16 bit imagery comes black

Post by fmw42 »

try reading the input file right after convert
Post Reply