LZW compressed TIF to JPG

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
brixion

LZW compressed TIF to JPG

Post by brixion »

Hello,

I have an LZW compressed TIFF file that must me converted to an JPG image.
But everything I try results into an JPG image with only black content.

When I inspect the compressed image, IM can see all the details, even the histogram.

What did I do wrong?

Code: Select all

Format: TIFF (Tagged Image File Format)
  Class: DirectClass
  Geometry: 1360x1024+0+0
  Resolution: 96x96
  Print size: 14.1667x10.6667
  Units: PixelsPerInch
  Type: TrueColor
  Base type: TrueColor
  Endianess: MSB
  Colorspace: RGB
  Depth: 8-bit
  Channel depth:
    red: 8-bit
    green: 8-bit
    blue: 8-bit
  Channel statistics:
    red:
      min: 0 (0)
      max: 251 (0.984314)
      mean: 0.141339 (0.00055427)
      standard deviation: 5.70616 (0.0223771)
      kurtosis: 1708.22
      skewness: 41.3043
    green:
      min: 0 (0)
      max: 153 (0.6)
      mean: 0.0776741 (0.000304604)
      standard deviation: 3.04509 (0.0119415)
      kurtosis: 1740.03
      skewness: 41.4808
    blue:
      min: 0 (0)
      max: 79 (0.309804)
      mean: 0.0329518 (0.000129223)
      standard deviation: 1.2176 (0.00477492)
      kurtosis: 1724.22
      skewness: 40.7763
  Image statistics:
    OverAll:
      min: 0 (0)
      max: 251 (0.984314)
      mean: 0.0629912 (0.000247024)
      standard deviation: 3.29115 (0.0129065)
      kurtosis: 4195.43
      skewness: 62.6034
  Histogram:
   1391280: (  0,  0,  0) #000000 black
       115: (  8, 11, 10) #080B0A rgb(8,11,10)
        87: (  7, 12, 11) #070C0B rgb(7,12,11)
        77: (  8, 12, 11) #080C0B rgb(8,12,11)
        46: (  9, 12, 11) #090C0B rgb(9,12,11)
        31: (  8, 11, 11) #080B0B rgb(8,11,11)
        27: (  8, 12, 12) #080C0C rgb(8,12,12)
        26: (  9, 12, 10) #090C0A rgb(9,12,10)
        25: (  8, 12, 10) #080C0A rgb(8,12,10)
        21: (  9, 11, 10) #090B0A rgb(9,11,10)
        14: (  7, 11, 11) #070B0B rgb(7,11,11)
        13: (  9, 12, 12) #090C0C rgb(9,12,12)
        10: (  8, 11,  9) #080B09 rgb(8,11,9)
         9: (  8, 12, 13) #080C0D rgb(8,12,13)
         7: (  7, 12, 12) #070C0C rgb(7,12,12)
  Rendering intent: Undefined
  Interlace: None
  Background color: white
  Border color: rgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Page geometry: 1360x1024+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: LZW
  Orientation: TopLeft
  Properties:
    create-date: 2009-06-30T12:46:12+02:00
    modify-date: 2009-06-30T12:46:12+02:00
    signature: 8215d0179a8a913000c3a23ee7be30428f918a386ebe76f79c402285882e4276
    tiff:rows-per-strip: 3
  Artifacts:
    verbose: true
  Tainted: False
  Filesize: 3.108mb
  Number pixels: 1.328mb
  Version: ImageMagick 6.5.1-10 2009-05-24 Q16 http://www.imagemagick.org
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: LZW compressed TIF to JPG

Post by magick »

Post the verbose identify output for your JPEG image. Is the histogram similar to the one returned for your TIFF image?
brixion

Re: LZW compressed TIF to JPG

Post by brixion »

Yes the JPG histogram quite matches the TIFF histogram.

See here the result: http://dev.amddatabase.net/tifftest/result/99.JPG

Code: Select all

Format: JPEG (Joint Photographic Experts Group JFIF format)
  Class: DirectClass
  Geometry: 1360x1024+0+0
  Resolution: 96x96
  Print size: 14.1667x10.6667
  Units: PixelsPerInch
  Type: Palette
  Endianess: Undefined
  Colorspace: RGB
  Depth: 8-bit
  Channel depth:
    red: 8-bit
    green: 8-bit
    blue: 8-bit
  Channel statistics:
    red:
      min: 0 (0)
      max: 209 (0.819608)
      mean: 0.146931 (0.0005762)
      standard deviation: 4.75758 (0.0186572)
      kurtosis: 1606.84
      skewness: 39.5818
    green:
      min: 0 (0)
      max: 160 (0.627451)
      mean: 0.0875115 (0.000343182)
      standard deviation: 3.32681 (0.0130463)
      kurtosis: 1729.33
      skewness: 41.4143
    blue:
      min: 0 (0)
      max: 128 (0.501961)
      mean: 0.0708676 (0.000277912)
      standard deviation: 2.44613 (0.00959267)
      kurtosis: 1707.19
      skewness: 41.0194
  Image statistics:
    OverAll:
      min: 0 (0)
      max: 209 (0.819608)
      mean: 0.0763275 (0.000299324)
      standard deviation: 3.15027 (0.012354)
      kurtosis: 2787.78
      skewness: 51.1191
  Histogram:
   1380108: (  0,  0,  0) #000000 black
      2191: (  0,  1,  0) #000100 rgb(0,1,0)
      2184: (  1,  0,  0) #010000 rgb(1,0,0)
      1225: (  0,  0,  2) #000002 rgb(0,0,2)
       740: (  1,  1,  1) #010101 rgb(1,1,1)
       632: (  1,  0,  2) #010002 rgb(1,0,2)
       532: (  1,  0,  4) #010004 rgb(1,0,4)
       517: (  0,  0,  4) #000004 rgb(0,0,4)
       418: ( 11,  0,  0) #0B0000 rgb(11,0,0)
       278: (  1,  1,  3) #010103 rgb(1,1,3)
       267: ( 11, 11, 11) #0B0B0B rgb(11,11,11)
       260: ( 10,  0,  0) #0A0000 rgb(10,0,0)
       257: ( 10, 10, 10) #0A0A0A grey4
       257: ( 31,  0,  0) #1F0000 rgb(31,0,0)
       255: (  0,  2,  0) #000200 rgb(0,2,0)
       246: ( 34,  0,  0) #220000 rgb(34,0,0)
       201: (  2,  0,  3) #020003 rgb(2,0,3)
       171: (  0,  2,  1) #000201 rgb(0,2,1)
       112: ( 32,  0,  0) #200000 rgb(32,0,0)
       111: ( 35,  0,  0) #230000 rgb(35,0,0)
       102: (  0,  1,  4) #000104 rgb(0,1,4)
        97: (  2,  0,  1) #020001 rgb(2,0,1)
        92: (  1,  1,  0) #010100 rgb(1,1,0)
        69: (  2,  1,  0) #020100 rgb(2,1,0)
        67: (189,129, 95) #BD815F rgb(189,129,95)
        54: ( 12,  0,  0) #0C0000 rgb(12,0,0)
        50: (  3,  0,  0) #030000 rgb(3,0,0)
        50: (  8,  0,  0) #080000 rgb(8,0,0)
        49: (185,133, 96) #B98560 rgb(185,133,96)
        40: (204,152,112) #CC9870 rgb(204,152,112)
        39: (  0,  1,  3) #000103 rgb(0,1,3)
        37: (188,128, 94) #BC805E rgb(188,128,94)
        29: ( 36,  0,  0) #240000 rgb(36,0,0)
        29: (184,132, 95) #B8845F rgb(184,132,95)
        28: (182,130, 93) #B6825D rgb(182,130,93)
        28: (186,127, 93) #BA7F5D rgb(186,127,93)
        24: (  9,  0,  0) #090000 rgb(9,0,0)
        23: (  0,  1,  2) #000102 rgb(0,1,2)
        23: (183,131, 94) #B7835E rgb(183,131,94)
        23: (205,153,113) #CD9971 rgb(205,153,113)
        21: (193,133, 99) #C18563 rgb(193,133,99)
        19: ( 33,  0,  0) #210000 rgb(33,0,0)
        18: ( 29,  0,  0) #1D0000 rgb(29,0,0)
        18: (187,135, 98) #BB8762 rgb(187,135,98)
        16: (186,134, 97) #BA8661 rgb(186,134,97)
        15: (  1,  3,  0) #010300 rgb(1,3,0)
        15: ( 30,  0,  0) #1E0000 rgb(30,0,0)
        14: (207,159,111) #CF9F6F rgb(207,159,111)
        13: (  2,  2,  4) #020204 rgb(2,2,4)
        13: (  3,  0,  2) #030002 rgb(3,0,2)
        13: (193,130, 97) #C18261 rgb(193,130,97)
        13: (199,141,104) #C78D68 rgb(199,141,104)
        12: (  3,  0,  4) #030004 rgb(3,0,4)
        12: (187,128, 94) #BB805E rgb(187,128,94)
        12: (191,128, 95) #BF805F rgb(191,128,95)
        11: (190,127, 94) #BE7F5E rgb(190,127,94)
        11: (201,143,105) #C98F69 rgb(201,143,105)
        10: (  2,  2,  0) #020200 rgb(2,2,0)
        10: (  3,  1,  4) #030104 rgb(3,1,4)
        10: (190,130, 96) #BE8260 rgb(190,130,96)
        10: (192,129, 96) #C08160 rgb(192,129,96)
        10: (194,131, 98) #C28362 rgb(194,131,98)
        10: (196,136, 99) #C48863 rgb(196,136,99)
        10: (204,144,107) #CC906B rgb(204,144,107)
        10: (205,153,114) #CD9972 rgb(205,153,114)
        10: (206,154,114) #CE9A72 rgb(206,154,114)
         9: (187,127, 93) #BB7F5D rgb(187,127,93)
         9: (191,131, 97) #BF8361 rgb(191,131,97)
         9: (192,132, 98) #C08462 rgb(192,132,98)
         9: (197,135, 98) #C58762 rgb(197,135,98)
         9: (200,142,104) #C88E68 rgb(200,142,104)
         8: (  0,  3,  0) #000300 rgb(0,3,0)
         8: (187,135, 95) #BB875F rgb(187,135,95)
         8: (194,134, 98) #C28662 rgb(194,134,98)
         7: (  0,  0,  5) #000005 rgb(0,0,5)
         7: (  4,  0,  0) #040000 rgb(4,0,0)
         7: (197,139,102) #C58B66 rgb(197,139,102)
         7: (203,151,111) #CB976F rgb(203,151,111)
         7: (204,146,108) #CC926C rgb(204,146,108)
         7: (207,149,111) #CF956F rgb(207,149,111)
         6: ( 13,  0,  0) #0D0000 rgb(13,0,0)
         6: (194,134,100) #C28664 rgb(194,134,100)
         6: (199,141,103) #C78D67 rgb(199,141,103)
         6: (205,147,109) #CD936D rgb(205,147,109)
         5: (188,136, 99) #BC8863 rgb(188,136,99)
         5: (202,144,106) #CA906A rgb(202,144,106)
         5: (203,145,107) #CB916B rgb(203,145,107)
         4: ( 14,  0,  0) #0E0000 rgb(14,0,0)
         4: ( 37,  0,  0) #250000 rgb(37,0,0)
         4: (181,129, 92) #B5815C rgb(181,129,92)
         4: (186,126, 92) #BA7E5C rgb(186,126,92)
         4: (195,132, 99) #C38463 rgb(195,132,99)
         4: (195,135, 99) #C38763 rgb(195,135,99)
         4: (196,138,101) #C48A65 rgb(196,138,101)
         4: (197,137,100) #C58964 rgb(197,137,100)
         4: (198,140,102) #C68C66 rgb(198,140,102)
         4: (202,150,110) #CA966E rgb(202,150,110)
         4: (204,147,104) #CC9368 rgb(204,147,104)
         4: (204,155,114) #CC9B72 rgb(204,155,114)
         4: (205,148,105) #CD9469 rgb(205,148,105)
         4: (206,149,106) #CE956A rgb(206,149,106)
         3: (  0,  2,  5) #000205 rgb(0,2,5)
         3: (  4,  0,  2) #040002 rgb(4,0,2)
         3: (  6,  0,  0) #060000 rgb(6,0,0)
         3: ( 15,  0,  0) #0F0000 rgb(15,0,0)
         3: ( 28,  0,  0) #1C0000 rgb(28,0,0)
         3: (195,135,101) #C38765 rgb(195,135,101)
         3: (196,134, 97) #C48661 rgb(196,134,97)
         3: (196,136,100) #C48864 rgb(196,136,100)
         3: (203,143,106) #CB8F6A rgb(203,143,106)
         3: (203,154,113) #CB9A71 rgb(203,154,113)
         3: (204,152,113) #CC9871 rgb(204,152,113)
         3: (206,154,115) #CE9A73 rgb(206,154,115)
         3: (207,155,115) #CF9B73 rgb(207,155,115)
         3: (207,158,117) #CF9E75 rgb(207,158,117)
         2: (  0,  1,  5) #000105 rgb(0,1,5)
         2: (  0,  3,  3) #000303 rgb(0,3,3)
         2: (  1,  3,  2) #010302 rgb(1,3,2)
         2: (  2,  2,  2) #020202 rgb(2,2,2)
         2: (  5, 14, 11) #050E0B rgb(5,14,11)
         2: ( 16,  0,  0) #100000 rgb(16,0,0)
         2: ( 25,  0,  0) #190000 rgb(25,0,0)
         2: (180,128, 91) #B4805B rgb(180,128,91)
         2: (182,123, 89) #B67B59 rgb(182,123,89)
         2: (182,129, 95) #B6815F rgb(182,129,95)
         2: (183,124, 90) #B77C5A rgb(183,124,90)
         2: (185,126, 92) #B97E5C rgb(185,126,92)
         2: (189,126, 93) #BD7E5D rgb(189,126,93)
         2: (198,138,101) #C68A65 rgb(198,138,101)
         2: (198,140,103) #C68C67 rgb(198,140,103)
         2: (201,143,106) #C98F6A rgb(201,143,106)
         2: (202,142,105) #CA8E69 rgb(202,142,105)
         2: (203,145,108) #CB916C rgb(203,145,108)
         2: (203,146,103) #CB9267 rgb(203,146,103)
         2: (205,156,115) #CD9C73 rgb(205,156,115)
         2: (206,157,116) #CE9D74 rgb(206,157,116)
         2: (208,159,116) #D09F74 rgb(208,159,116)
         2: (209,157,117) #D19D75 rgb(209,157,117)
         1: (  0,  2,  2) #000202 rgb(0,2,2)
         1: (  0,  2,  3) #000203 rgb(0,2,3)
         1: (  0,  4,  0) #000400 rgb(0,4,0)
         1: (  0,  4,  4) #000404 rgb(0,4,4)
         1: (  0,  6,  0) #000600 rgb(0,6,0)
         1: (  1,  0,  5) #010005 rgb(1,0,5)
         1: (  1,  2,  0) #010200 rgb(1,2,0)
         1: (  1,  2,  4) #010204 rgb(1,2,4)
         1: (  2,  1,  6) #020106 rgb(2,1,6)
         1: (  2,  3,  0) #020300 rgb(2,3,0)
         1: (  3,  1,  2) #030102 rgb(3,1,2)
         1: (  3,  2,  0) #030200 rgb(3,2,0)
         1: (  4,  0,  1) #040001 rgb(4,0,1)
         1: (  5,  0,  0) #050000 rgb(5,0,0)
         1: (  5,  0,  3) #050003 rgb(5,0,3)
         1: (  5,  1,  0) #050100 rgb(5,1,0)
         1: (  5,  4,  2) #050402 rgb(5,4,2)
         1: (  6,  0,  4) #060004 rgb(6,0,4)
         1: (  6,  2,  0) #060200 rgb(6,2,0)
         1: (  7,  2,  0) #070200 rgb(7,2,0)
         1: (  7, 13,  9) #070D09 rgb(7,13,9)
         1: (  7, 13, 11) #070D0B rgb(7,13,11)
         1: (  8, 12, 11) #080C0B rgb(8,12,11)
         1: (  8, 13,  9) #080D09 rgb(8,13,9)
         1: (  9, 11, 10) #090B0A rgb(9,11,10)
         1: ( 10, 12,  9) #0A0C09 rgb(10,12,9)
         1: ( 11,  1,  0) #0B0100 rgb(11,1,0)
         1: ( 12, 12, 12) #0C0C0C rgb(12,12,12)
         1: ( 14, 10,  7) #0E0A07 rgb(14,10,7)
         1: ( 14, 14, 14) #0E0E0E rgb(14,14,14)
         1: ( 20,  0,  0) #140000 rgb(20,0,0)
         1: ( 20, 10,  9) #140A09 rgb(20,10,9)
         1: ( 21,  0,  0) #150000 rgb(21,0,0)
         1: ( 22,  0,  0) #160000 rgb(22,0,0)
         1: ( 22, 12, 13) #160C0D rgb(22,12,13)
         1: ( 26,  8,  6) #1A0806 rgb(26,8,6)
         1: ( 27,  0,  0) #1B0000 rgb(27,0,0)
         1: ( 40, 11, 13) #280B0D rgb(40,11,13)
         1: ( 47, 15, 18) #2F0F12 rgb(47,15,18)
         1: ( 54, 18, 18) #361212 rgb(54,18,18)
         1: ( 59, 14, 17) #3B0E11 rgb(59,14,17)
         1: ( 61, 17, 16) #3D1110 rgb(61,17,16)
         1: ( 62, 18, 19) #3E1213 rgb(62,18,19)
         1: ( 74, 24, 25) #4A1819 rgb(74,24,25)
         1: ( 81, 34, 28) #51221C rgb(81,34,28)
         1: (109, 50, 52) #6D3234 rgb(109,50,52)
         1: (129, 79, 68) #814F44 rgb(129,79,68)
         1: (141, 82, 76) #8D524C rgb(141,82,76)
         1: (179,127, 90) #B37F5A rgb(179,127,90)
         1: (182,128, 92) #B6805C rgb(182,128,92)
         1: (183,130,112) #B78270 rgb(183,130,112)
         1: (184,125, 91) #B87D5B rgb(184,125,91)
         1: (184,128, 93) #B8805D rgb(184,128,93)
         1: (185,132,100) #B98464 rgb(185,132,100)
         1: (186,131,110) #BA836E rgb(186,131,110)
         1: (186,134, 95) #BA865F rgb(186,134,95)
         1: (187,124, 91) #BB7C5B rgb(187,124,91)
         1: (187,134,103) #BB8667 rgb(187,134,103)
         1: (187,135, 96) #BB8760 rgb(187,135,96)
         1: (188,125, 90) #BC7D5A rgb(188,125,90)
         1: (189,137,100) #BD8964 rgb(189,137,100)
         1: (190,128, 91) #BE805B rgb(190,128,91)
         1: (193,131, 94) #C1835E rgb(193,131,94)
         1: (194,136, 98) #C28862 rgb(194,136,98)
         1: (195,133, 96) #C38560 rgb(195,133,96)
         1: (196,136,102) #C48866 rgb(196,136,102)
         1: (197,134, 99) #C58663 rgb(197,134,99)
         1: (197,137,101) #C58965 rgb(197,137,101)
         1: (197,139,101) #C58B65 rgb(197,139,101)
         1: (200,142,105) #C88E69 rgb(200,142,105)
         1: (201,146,116) #C99274 rgb(201,146,116)
         1: (201,147,103) #C99367 rgb(201,147,103)
         1: (201,149,109) #C9956D rgb(201,149,109)
         1: (202,144,107) #CA906B rgb(202,144,107)
         1: (202,146,111) #CA926F rgb(202,146,111)
         1: (203,145,105) #CB9169 rgb(203,145,105)
         1: (203,148,109) #CB946D rgb(203,148,109)
         1: (203,156,114) #CB9C72 rgb(203,156,114)
         1: (203,158,116) #CB9E74 rgb(203,158,116)
         1: (204,145,105) #CC9169 rgb(204,145,105)
         1: (204,148,111) #CC946F rgb(204,148,111)
         1: (204,151,111) #CC976F rgb(204,151,111)
         1: (205,150,111) #CD966F rgb(205,150,111)
         1: (205,152,110) #CD986E rgb(205,152,110)
         1: (205,152,112) #CD9870 rgb(205,152,112)
         1: (206,152,128) #CE9880 rgb(206,152,128)
         1: (206,153,113) #CE9971 rgb(206,153,113)
         1: (206,158,112) #CE9E70 rgb(206,158,112)
         1: (207,156,113) #CF9C71 rgb(207,156,113)
         1: (207,159,113) #CF9F71 rgb(207,159,113)
         1: (207,160,118) #CFA076 rgb(207,160,118)
         1: (208,155,113) #D09B71 rgb(208,155,113)
         1: (208,156,116) #D09C74 rgb(208,156,116)
         1: (208,159,118) #D09F76 rgb(208,159,118)
         1: (209,158,115) #D19E73 rgb(209,158,115)
  Rendering intent: Undefined
  Interlace: None
  Background color: white
  Border color: rgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Page geometry: 1360x1024+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: JPEG
  Quality: 92
  Orientation: Undefined
  Properties:
    create-date: 2009-06-30T14:40:35+02:00
    jpeg:colorspace: 2
    jpeg:sampling-factor: 2x2,1x1,1x1
    modify-date: 2009-06-30T14:40:35+02:00
    signature: 31ab0ce594908ed77ca28abb4676479dcdb5cffc37271f18c878f4b3355b881b
  Artifacts:
    verbose: true
  Tainted: False
  Filesize: 10.6kb
  Number pixels: 1.328mb
  Version: ImageMagick 6.5.1-10 2009-05-24 Q16 http://www.imagemagick.org
What goes wrong? :o
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: LZW compressed TIF to JPG

Post by magick »

Post a URL to your original TIFF image. We need to reproduce the problem before we determine why this conversion is failing for you.
brixion

Re: LZW compressed TIF to JPG

Post by brixion »

Here it is: [removed by poster]

Hope you or your team can find the problem :D

Note: I just used convert on the command line using no options or parameters:

Code: Select all

/usr/local/bin/convert tifftest/99.TIF tifftest/result/99.JPG
Last edited by brixion on 2009-06-30T06:48:14-07:00, edited 2 times in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: LZW compressed TIF to JPG

Post by magick »

We converted your TIFF image to JPEG and got the expected result, both images are identical (except for the slight differences due to the JPEG DCT transform). We're using ImageMagick-6.5.4-1, the current release. In addition, we are using LIBTIFF, version 3.8.2, and JPEG 62. We are not sure why the conversion is failing for you.
brixion

Re: LZW compressed TIF to JPG

Post by brixion »

I'm using the following configuration:

I think i'm missing the libtiff library. I have to ask my webhosting provider to install it for me. Then I'll try again.

Thanks for the quick response!!

Code: Select all

Name          Value
-------------------------------------------------------------------------------
CC            cc -std=gnu99
CFLAGS        -O2 -fno-strict-aliasing -pipe -Wall -W
CONFIGURE     ./configure  '--enable-shared' '--without-dps' '--disable-hdri' '--disable-openmp' '--with-perl=/usr/local/bin/perl5.8.8' '--without-threads' '--with-modules' '--without-openexr' '--without-djvu' '--without-gslib' '--with-fpx' '--without-gvc' '--with-freetype' '--with-fontconfig' '--with-wmf=yes' '--with-xml' '--without-rsvg' '--with-x' '--x-libraries=/usr/local/lib' '--x-includes=/usr/local/include' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=i386-portbld-freebsd6.2' 'build_alias=i386-portbld-freebsd6.2' 'CC=cc' 'CFLAGS=-O2 -fno-strict-aliasing -pipe' 'LDFLAGS=-L/usr/local/lib' 'CPPFLAGS=-I/usr/local/include' 'CXX=c++' 'CXXFLAGS=-O2 -fno-strict-aliasing -pipe' 'FONTCONFIG_CFLAGS=-I/usr/local/include' 'FONTCONFIG_LIBS=-L/usr/local/lib'
COPYRIGHT     Copyright (C) 1999-2009 ImageMagick Studio LLC
CPPFLAGS      -I/usr/local/include/ImageMagick
CXX           c++
CXXFLAGS      -O2 -fno-strict-aliasing -pipe -Wall -W
DEFS          -DHAVE_CONFIG_H
DELEGATES     bzlib fpx fontconfig freetype jbig jpeg jng jp2 lcms png tiff x11 xml wmf zlib
DISTCHECK_CONFIG_FLAGS 'CC=cc' 'CFLAGS=-O2 -fno-strict-aliasing -pipe' 'CPPFLAGS=-I/usr/local/include' 'CXX=c++' 'LDFLAGS=-L/usr/local/lib' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-dps=no --with-djvu=no --with-gslib=no --with-fontpath= --with-gvc=no --with-openexr=no --with-rsvg=no
EXEC-PREFIX   /usr/local
HOST          i386-portbld-freebsd6.2
LDFLAGS       -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -R/usr/local/lib -L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz -L/usr/local/lib
LIB_VERSION   0x651
LIB_VERSION_NUMBER 6,5,1,10
LIBS          -lMagickCore -llcms -ltiff -lfreetype -ljpeg -L/usr/local/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm 
NAME          ImageMagick
PCFLAGS       
PREFIX        /usr/local
QuantumDepth  16
RELEASE_DATE  2009-05-24
VERSION       6.5.1
WEBSITE       http://www.imagemagick.org
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: LZW compressed TIF to JPG

Post by magick »

You have the TIFF delegate library installed. Type
  • identify -list format
to verify.
brixion

Re: LZW compressed TIF to JPG

Post by brixion »

Yes I see... hmm weird, wondering what is going wrong :S

Code: Select all

Format  Module    Mode  Description
-------------------------------------------------------------------------------
      JBG* JBIG      rw+   Joint Bi-level Image experts Group interchange format (1.6)
     JBIG* JBIG      rw+   Joint Bi-level Image experts Group interchange format (1.6)
      JNG* PNG       rw-   JPEG Network Graphics
           See http://www.libpng.org/pub/mng/ for details about the JNG
           format.
      JP2* JP2       rw-   JPEG-2000 File Format Syntax
      JPC* JPC       rw-   JPEG-2000 Code Stream Syntax
     JPEG* JPEG      rw-   Joint Photographic Experts Group JFIF format (62)
      JPG* JPEG      rw-   Joint Photographic Experts Group JFIF format
      JPX* JPX       rw-   JPEG-2000 File Format Syntax
THUMBNAIL* THUMBNAIL -w+   EXIF Profile Thumbnail
     TIFF* TIFF      rw+   Tagged Image File Format (LIBTIFF, Version 3.8.2)
   TIFF64* TIFF      ---   Tagged Image File Format (64-bit) (LIBTIFF, Version 3.8.2)
 
* native blob support
r read support
w write support
+ support for multiple images
I tried to convert it to GIF and PNG as well, but they also turn into a black image. Very strange... would the difference be in the IM version 6.5.4-1 (you) and 6.5.1-10 (I use)?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: LZW compressed TIF to JPG

Post by magick »

You could always try 6.5.4-1 but perhaps your version of TIFF does not support LZW-compression. However, if so it should have reported a warning. Right now we do not know why the conversion is failing for you.
brixion

Re: LZW compressed TIF to JPG

Post by brixion »

Thanks for your help... I'll update my server to 6.5.4-1 and then I'll let you know the result.
Post Reply