Page 1 of 1

IM 6.8.4.8 - modified mono images cannot import to LR4

Posted: 2013-06-14T12:19:39-07:00
by pdh
Version: ImageMagick 6.8.4-8 2013-04-06 Q16
Features: DPC OpenMP
Delegates: bzlib fontconfig freetype jng jp2 jpeg lcms lzma pango png ps tiff x xml zlib

Windows 7 Home Premium 64-bit

Adobe Lightroom 4.4 (CameraRaw 7.4)

_________________________________

If I export two files from the same raw image (dng), one as colour and one as black & white but otherwise with no difference in adjustments, as jpgs, and then use

Code: Select all

 convert filename1.jpg -bordercolor white -border 155 filename2.jpg
IM as expected creates a simple white border which can be viewed using imageviewers, uploads & displays in Flickr etc OK.

If I then try and import the new bordered images back into LR4.4, the colour image imports perfectly OK and can be displayed and edited.
But the mono image cannot be displayed in either Library or Develop module, and the error "The file appears to be unsupported or damaged" is displayed instead.

This behaviour is consistent with any monochrome image modified by IM to create a border, whether the monochrome is created in LR or if is originally imported into LR as monochrome (e.g. from a negative scan)

Re: IM 6.8.4.8 - modified mono images cannot import to LR4

Posted: 2013-06-14T12:59:52-07:00
by snibgo
Can you import an monochrome image that doesn't have a border into Lightroom?

I'm suprised you are using jpg as the intermediate format. What happens when you use a lossless format such as png or tiff?

If you have an image created by IM that imports correctly without the border but fails with the border, what is the difference, as shown by "identify verbose"?

Re: IM 6.8.4.8 - modified mono images cannot import to LR4

Posted: 2013-06-14T14:02:03-07:00
by pdh
Thanks for getting back to me.

1. This is not part of a usual workflow. It's simply to create images with large borders in order to defeat the hideous new Flickr "mosaic" display of my photostream. Hence operating on the jpg. It is however convenient to keep all my images catalogued & accounted for in LR, which is why I want to import these bordered images back in.

2. I import monochrome images (e.g. tiff scans of film negatives) into LR without error several times a week. These will not have borders.

3. I may not have made myself clear.

If I create a border using IM, on a jpg exported from LR, and if the exported jpg is colour, then I can re-import the image (complete with new border) to LR without error.

If I create a border using IM, on a jpg exported from LR, and if the exported jpg is black & white (has been converted to black & white in LR), then LR will import the image, but marks it as unsupported or damaged and no editing can be performed.

If I create a border using IM, on a jpg exported from LR, and if the source file is black & white (i.e. has been originally imported to LR as black & white, and has not been converted to black & white in LR)then LR will import the image, but marks it as unsupported or damaged and no editing can be performed.

4. This is the output from convert filename -identify for a colour image that has had a border added by IM, and correctly imports to LR

Code: Select all

 b20130610-1-2.jpg JPEG 1590x1270 1590x1270+0+0 8-bit sRGB 641KB 0.047u 0:00.046
5. This is the output from convert filename -identify for a black & white image that has had a border added by IM, and cannot be correctly imported to LR

Code: Select all

b20130610-1-3.jpg JPEG 1590x1270 1590x1270+0+0 8-bit Gray 256c 438KB 0.078u 0:00.045
6. If I export a black & white image as TIFF without compression, and add a border using IM, LR will import the image but marks it as unsupported or damaged and no editing can be performed.

Re: IM 6.8.4.8 - modified mono images cannot import to LR4

Posted: 2013-06-14T15:49:14-07:00
by fmw42
Looks like LR does not like grayscale images from IM. Perhaps because they have 3 channels. If you import the image into LR, can you change the file type from grayscale to RGB or palette? If so, does that then work from then on?

Re: IM 6.8.4.8 - modified mono images cannot import to LR4

Posted: 2013-06-14T15:50:11-07:00
by snibgo
Fair comment about wanting to use jpegs. But have your tested this with png or tiff?

You didn't do "identify verbose", which might reveal critical information, especially comparing (a) a monochrome image that LR likes and (b) a monochrome image that LR doesn't like.

5. As you can see, this file is a palletted greyscale file. Try adding "-type truecolor" in the convert command before the final (jpg) output filename.

Re: IM 6.8.4.8 - modified mono images cannot import to LR4

Posted: 2013-06-15T00:06:22-07:00
by pdh
snibgo wrote:But have your tested this with png or tiff?
yes, it was in my reply, but note that LR does not offer the option to export as PNG:
pdh wrote:6. If I export a black & white image as TIFF without compression, and add a border using IM, LR will import the image but marks it as unsupported or damaged and no editing can be performed.
However, to cloud the issue somewhat, I have found an example this morning of a TIFF (originally generated as a black & white file from a scanner) which, when operated on with IM to add a border, does import correctly to LR.
snibgo wrote:you didn't do "identify verbose", which might reveal critical information, especially comparing (a) a monochrome image that LR likes and (b) a monochrome image that LR doesn't like.
true. here we go: As before, colour file first, black and white next, but also (in case it is helpful) the black& white bordered tiff that does import OK.

Code: Select all

Image: 20130610-1-2.jpg
  Format: JPEG (Joint Photographic Experts Group JFIF format)
  Class: DirectClass
  Geometry: 1280x960+0+0
  Resolution: 72x72
  Print size: 17.7778x13.3333
  Units: PixelsPerInch
  Type: TrueColor
  Endianess: Undefined
  Colorspace: sRGB
  Depth: 8-bit
  Channel depth:
    red: 8-bit
    green: 8-bit
    blue: 8-bit
  Channel statistics:
    Red:
      min: 0 (0)
      max: 255 (1)
      mean: 24.5999 (0.0964701)
      standard deviation: 42.5126 (0.166716)
      kurtosis: 8.24396
      skewness: 2.91297
    Green:
      min: 0 (0)
      max: 253 (0.992157)
      mean: 31.5327 (0.123658)
      standard deviation: 34.5311 (0.135416)
      kurtosis: 6.90517
      skewness: 2.55827
    Blue:
      min: 0 (0)
      max: 255 (1)
      mean: 10.4912 (0.0411421)
      standard deviation: 14.6747 (0.0575477)
      kurtosis: 25.6885
      skewness: 4.43492
  Image statistics:
    Overall:
      min: 0 (0)
      max: 255 (1)
      mean: 22.2079 (0.08709)
      standard deviation: 32.7367 (0.128379)
      kurtosis: 13.9618
      skewness: 3.62125
  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)
  Background color: white
  Border color: srgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 1280x960+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: JPEG
  Quality: 99
  Orientation: Undefined
  Properties:
    date:create: 2013-06-14T21:38:52+01:00
    date:modify: 2013-06-14T21:37:02+01:00
    exif:CFAPattern: 2, 0, 2, 0, 0, 1, 1, 2
    exif:Compression: 6
    exif:Contrast: 0
    exif:CustomRendered: 0
    exif:DateTime: 2013:06:14 21:37:02
    exif:DateTimeDigitized: 2013:06:10 20:16:36
    exif:DateTimeOriginal: 2013:06:10 20:16:36
    exif:DigitalZoomRatio: 100/100
    exif:ExifOffset: 250
    exif:ExifVersion: 48, 50, 51, 48
    exif:ExposureBiasValue: -3/10
    exif:ExposureMode: 1
    exif:ExposureProgram: 3
    exif:ExposureTime: 1/100
    exif:FileSource: 3
    exif:Flash: 24
    exif:FocalPlaneResolutionUnit: 4
    exif:FocalPlaneXResolution: 7637028/32768
    exif:FocalPlaneYResolution: 7637028/32768
    exif:GainControl: 1
    exif:ImageDescription: OLYMPUS DIGITAL CAMERA
    exif:ISOSpeedRatings: 160
    exif:JPEGInterchangeFormat: 788
    exif:JPEGInterchangeFormatLength: 9757
    exif:LightSource: 0
    exif:Make: OLYMPUS IMAGING CORP.
    exif:MaxApertureValue: 0/256
    exif:MeteringMode: 3
    exif:Model: E-P2
    exif:ResolutionUnit: 2
    exif:Saturation: 0
    exif:SceneCaptureType: 0
    exif:Sharpness: 0
    exif:ShutterSpeedValue: 6643856/1000000
    exif:Software: Adobe Photoshop Lightroom 4.4 (Windows)
    exif:thumbnail:ResolutionUnit: 2
    exif:thumbnail:XResolution: 72/1
    exif:thumbnail:YResolution: 72/1
    exif:WhiteBalance: 1
    exif:XResolution: 72/1
    exif:YResolution: 72/1
    jpeg:colorspace: 2
    jpeg:sampling-factor: 1x1,1x1,1x1
    rdf:Alt: 
     
    rdf:Bag: 
     
    signature: 9ef6a5a15647668f8425ba33bf386a8870e8ab68c64019d323bcbbd0a2eb41ae
    unknown: H87504247
    xmpMM:DerivedFrom: 
  Profiles:
    Profile-8bim: 10056 bytes
    Profile-exif: 10551 bytes
    Profile-icc: 3144 bytes
      Description: sRGB IEC61966-2.1
      Manufacturer: IEC http://www.iec.ch
      Model: IEC 61966-2.1 Default RGB colour space - sRGB
      Copyright: Copyright (c) 1998 Hewlett-Packard Company
    Profile-iptc: 190 bytes
      City[1,90]: 0x00000000: 254700                                        -%
      unknown[2,0]: 
      Keyword[2,25]: 90/2.5
      Keyword[2,25]: 90mm
      Keyword[2,25]: E-P2
      Keyword[2,25]: Olympus
      Keyword[2,25]: Tamron SP
      Keyword[2,25]: evening
      Keyword[2,25]: flower
      Keyword[2,25]: garden
      Keyword[2,25]: yellow
      Created Date[2,55]: 20130610
      Created Time[2,60]: 201636
      unknown[2,62]: 20130610
      unknown[2,63]: 201636
      Caption[2,120]: OLYMPUS DIGITAL CAMERA
    Profile-xmp: 10127 bytes
  Artifacts:
    filename: 20130610-1-2.jpg
    verbose: true
  Tainted: False
  Filesize: 578KB
  Number pixels: 1.229M
  Pixels per second: 9.223372EB
  User time: 0.000u
  Elapsed time: 0:01.000
  Version: ImageMagick 6.8.4-8 2013-04-06 Q16 http://www.imagemagick.org

Code: Select all

Image: 20130610-1-3.jpg
  Format: JPEG (Joint Photographic Experts Group JFIF format)
  Class: DirectClass
  Geometry: 1280x960+0+0
  Resolution: 72x72
  Print size: 17.7778x13.3333
  Units: PixelsPerInch
  Type: Grayscale
  Base type: Grayscale
  Endianess: Undefined
  Colorspace: sRGB
  Depth: 8-bit
  Channel depth:
    gray: 8-bit
  Channel statistics:
    Gray:
      min: 0 (0)
      max: 253 (0.992157)
      mean: 29.3576 (0.115128)
      standard deviation: 35.2318 (0.138164)
      kurtosis: 7.39217
      skewness: 2.66613
  Colors: 251
  Histogram:
      1362: (  0,  0,  0) #000000 black
     11020: (  1,  1,  1) #010101 srgb(1,1,1)
     18845: (  2,  2,  2) #020202 srgb(2,2,2)
     19472: (  3,  3,  3) #030303 grey1
     20363: (  4,  4,  4) #040404 srgb(4,4,4)
     21244: (  5,  5,  5) #050505 grey2
     21998: (  6,  6,  6) #060606 srgb(6,6,6)
     23678: (  7,  7,  7) #070707 srgb(7,7,7)
     26497: (  8,  8,  8) #080808 grey3
     31665: (  9,  9,  9) #090909 srgb(9,9,9)
     36174: ( 10, 10, 10) #0A0A0A grey4
     40114: ( 11, 11, 11) #0B0B0B srgb(11,11,11)
     46183: ( 12, 12, 12) #0C0C0C srgb(12,12,12)
     54203: ( 13, 13, 13) #0D0D0D grey5
     59884: ( 14, 14, 14) #0E0E0E srgb(14,14,14)
     60882: ( 15, 15, 15) #0F0F0F grey6
     59091: ( 16, 16, 16) #101010 srgb(16,16,16)
     56998: ( 17, 17, 17) #111111 srgb(17,17,17)
     53796: ( 18, 18, 18) #121212 grey7
     48833: ( 19, 19, 19) #131313 srgb(19,19,19)
     41878: ( 20, 20, 20) #141414 grey8
     36452: ( 21, 21, 21) #151515 srgb(21,21,21)
     34406: ( 22, 22, 22) #161616 srgb(22,22,22)
     32156: ( 23, 23, 23) #171717 grey9
     30361: ( 24, 24, 24) #181818 srgb(24,24,24)
     28110: ( 25, 25, 25) #191919 srgb(25,25,25)
     24699: ( 26, 26, 26) #1A1A1A grey10
     20238: ( 27, 27, 27) #1B1B1B srgb(27,27,27)
     16770: ( 28, 28, 28) #1C1C1C grey11
     13375: ( 29, 29, 29) #1D1D1D srgb(29,29,29)
     10346: ( 30, 30, 30) #1E1E1E srgb(30,30,30)
      7870: ( 31, 31, 31) #1F1F1F grey12
      6108: ( 32, 32, 32) #202020 srgb(32,32,32)
      4949: ( 33, 33, 33) #212121 grey13
      3889: ( 34, 34, 34) #222222 srgb(34,34,34)
      3184: ( 35, 35, 35) #232323 srgb(35,35,35)
      2613: ( 36, 36, 36) #242424 grey14
      2328: ( 37, 37, 37) #252525 srgb(37,37,37)
      2267: ( 38, 38, 38) #262626 grey15
      2057: ( 39, 39, 39) #272727 srgb(39,39,39)
      1923: ( 40, 40, 40) #282828 srgb(40,40,40)
      1806: ( 41, 41, 41) #292929 grey16
      1663: ( 42, 42, 42) #2A2A2A srgb(42,42,42)
      1564: ( 43, 43, 43) #2B2B2B grey17
      1627: ( 44, 44, 44) #2C2C2C srgb(44,44,44)
      1539: ( 45, 45, 45) #2D2D2D srgb(45,45,45)
      1536: ( 46, 46, 46) #2E2E2E grey18
      1481: ( 47, 47, 47) #2F2F2F srgb(47,47,47)
      1462: ( 48, 48, 48) #303030 grey19
      1437: ( 49, 49, 49) #313131 srgb(49,49,49)
      1385: ( 50, 50, 50) #323232 srgb(50,50,50)
      1362: ( 51, 51, 51) #333333 grey20
      1511: ( 52, 52, 52) #343434 srgb(52,52,52)
      1433: ( 53, 53, 53) #353535 srgb(53,53,53)
      1462: ( 54, 54, 54) #363636 grey21
      1493: ( 55, 55, 55) #373737 srgb(55,55,55)
      1490: ( 56, 56, 56) #383838 grey22
      1515: ( 57, 57, 57) #393939 srgb(57,57,57)
      1587: ( 58, 58, 58) #3A3A3A srgb(58,58,58)
      1650: ( 59, 59, 59) #3B3B3B grey23
      1587: ( 60, 60, 60) #3C3C3C srgb(60,60,60)
      1639: ( 61, 61, 61) #3D3D3D grey24
      1700: ( 62, 62, 62) #3E3E3E srgb(62,62,62)
      1678: ( 63, 63, 63) #3F3F3F srgb(63,63,63)
      1668: ( 64, 64, 64) #404040 grey25
      1770: ( 65, 65, 65) #414141 srgb(65,65,65)
      1826: ( 66, 66, 66) #424242 grey26
      1917: ( 67, 67, 67) #434343 srgb(67,67,67)
      2054: ( 68, 68, 68) #444444 srgb(68,68,68)
      2048: ( 69, 69, 69) #454545 grey27
      2009: ( 70, 70, 70) #464646 srgb(70,70,70)
      2067: ( 71, 71, 71) #474747 grey28
      2090: ( 72, 72, 72) #484848 srgb(72,72,72)
      2129: ( 73, 73, 73) #494949 srgb(73,73,73)
      2125: ( 74, 74, 74) #4A4A4A grey29
      2097: ( 75, 75, 75) #4B4B4B srgb(75,75,75)
      2101: ( 76, 76, 76) #4C4C4C srgb(76,76,76)
      2091: ( 77, 77, 77) #4D4D4D grey30
      2096: ( 78, 78, 78) #4E4E4E srgb(78,78,78)
      2024: ( 79, 79, 79) #4F4F4F grey31
      2028: ( 80, 80, 80) #505050 srgb(80,80,80)
      2000: ( 81, 81, 81) #515151 srgb(81,81,81)
      2008: ( 82, 82, 82) #525252 grey32
      1949: ( 83, 83, 83) #535353 srgb(83,83,83)
      1892: ( 84, 84, 84) #545454 grey33
      1885: ( 85, 85, 85) #555555 srgb(85,85,85)
      1833: ( 86, 86, 86) #565656 srgb(86,86,86)
      1775: ( 87, 87, 87) #575757 grey34
      1793: ( 88, 88, 88) #585858 srgb(88,88,88)
      1704: ( 89, 89, 89) #595959 grey35
      1778: ( 90, 90, 90) #5A5A5A srgb(90,90,90)
      1643: ( 91, 91, 91) #5B5B5B srgb(91,91,91)
      1606: ( 92, 92, 92) #5C5C5C grey36
      1583: ( 93, 93, 93) #5D5D5D srgb(93,93,93)
      1602: ( 94, 94, 94) #5E5E5E grey37
      1582: ( 95, 95, 95) #5F5F5F srgb(95,95,95)
      1591: ( 96, 96, 96) #606060 srgb(96,96,96)
      1612: ( 97, 97, 97) #616161 grey38
      1622: ( 98, 98, 98) #626262 srgb(98,98,98)
      1698: ( 99, 99, 99) #636363 grey39
      1518: (100,100,100) #646464 srgb(100,100,100)
      1536: (101,101,101) #656565 srgb(101,101,101)
      1577: (102,102,102) #666666 grey40
      1585: (103,103,103) #676767 srgb(103,103,103)
      1636: (104,104,104) #686868 srgb(104,104,104)
      1668: (105,105,105) #696969 DimGray
      1694: (106,106,106) #6A6A6A srgb(106,106,106)
      1767: (107,107,107) #6B6B6B grey42
      1742: (108,108,108) #6C6C6C srgb(108,108,108)
      1700: (109,109,109) #6D6D6D srgb(109,109,109)
      1739: (110,110,110) #6E6E6E grey43
      1661: (111,111,111) #6F6F6F srgb(111,111,111)
      1696: (112,112,112) #707070 grey44
      1719: (113,113,113) #717171 srgb(113,113,113)
      1690: (114,114,114) #727272 srgb(114,114,114)
      1644: (115,115,115) #737373 grey45
      1775: (116,116,116) #747474 srgb(116,116,116)
      1698: (117,117,117) #757575 grey46
      1650: (118,118,118) #767676 srgb(118,118,118)
      1706: (119,119,119) #777777 srgb(119,119,119)
      1618: (120,120,120) #787878 grey47
      1627: (121,121,121) #797979 srgb(121,121,121)
      1591: (122,122,122) #7A7A7A grey48
      1544: (123,123,123) #7B7B7B srgb(123,123,123)
      1573: (124,124,124) #7C7C7C srgb(124,124,124)
      1434: (125,125,125) #7D7D7D grey49
      1402: (126,126,126) #7E7E7E gray
      1317: (127,127,127) #7F7F7F grey50
      1352: (128,128,128) #808080 fractal
      1210: (129,129,129) #818181 srgb(129,129,129)
      1189: (130,130,130) #828282 grey51
      1194: (131,131,131) #838383 srgb(131,131,131)
      1098: (132,132,132) #848484 srgb(132,132,132)
      1036: (133,133,133) #858585 grey52
       986: (134,134,134) #868686 srgb(134,134,134)
       937: (135,135,135) #878787 grey53
       876: (136,136,136) #888888 srgb(136,136,136)
       820: (137,137,137) #898989 srgb(137,137,137)
       906: (138,138,138) #8A8A8A grey54
       858: (139,139,139) #8B8B8B srgb(139,139,139)
       826: (140,140,140) #8C8C8C grey55
       811: (141,141,141) #8D8D8D srgb(141,141,141)
       768: (142,142,142) #8E8E8E srgb(142,142,142)
       782: (143,143,143) #8F8F8F grey56
       697: (144,144,144) #909090 srgb(144,144,144)
       654: (145,145,145) #919191 grey57
       683: (146,146,146) #929292 srgb(146,146,146)
       646: (147,147,147) #939393 srgb(147,147,147)
       617: (148,148,148) #949494 grey58
       602: (149,149,149) #959595 srgb(149,149,149)
       565: (150,150,150) #969696 grey59
       546: (151,151,151) #979797 srgb(151,151,151)
       484: (152,152,152) #989898 srgb(152,152,152)
       543: (153,153,153) #999999 grey60
       495: (154,154,154) #9A9A9A srgb(154,154,154)
       520: (155,155,155) #9B9B9B srgb(155,155,155)
       471: (156,156,156) #9C9C9C grey61
       456: (157,157,157) #9D9D9D srgb(157,157,157)
       504: (158,158,158) #9E9E9E grey62
       446: (159,159,159) #9F9F9F srgb(159,159,159)
       431: (160,160,160) #A0A0A0 srgb(160,160,160)
       404: (161,161,161) #A1A1A1 grey63
       432: (162,162,162) #A2A2A2 srgb(162,162,162)
       431: (163,163,163) #A3A3A3 grey64
       381: (164,164,164) #A4A4A4 srgb(164,164,164)
       453: (165,165,165) #A5A5A5 srgb(165,165,165)
       441: (166,166,166) #A6A6A6 grey65
       404: (167,167,167) #A7A7A7 srgb(167,167,167)
       454: (168,168,168) #A8A8A8 grey66
       393: (169,169,169) #A9A9A9 DarkGray
       405: (170,170,170) #AAAAAA srgb(170,170,170)
       368: (171,171,171) #ABABAB grey67
       382: (172,172,172) #ACACAC srgb(172,172,172)
       352: (173,173,173) #ADADAD grey68
       316: (174,174,174) #AEAEAE srgb(174,174,174)
       382: (175,175,175) #AFAFAF srgb(175,175,175)
       304: (176,176,176) #B0B0B0 grey69
       324: (177,177,177) #B1B1B1 srgb(177,177,177)
       343: (178,178,178) #B2B2B2 srgb(178,178,178)
       341: (179,179,179) #B3B3B3 grey70
       298: (180,180,180) #B4B4B4 srgb(180,180,180)
       288: (181,181,181) #B5B5B5 grey71
       332: (182,182,182) #B6B6B6 srgb(182,182,182)
       287: (183,183,183) #B7B7B7 srgb(183,183,183)
       289: (184,184,184) #B8B8B8 grey72
       271: (185,185,185) #B9B9B9 srgb(185,185,185)
       281: (186,186,186) #BABABA grey73
       290: (187,187,187) #BBBBBB srgb(187,187,187)
       266: (188,188,188) #BCBCBC srgb(188,188,188)
       266: (189,189,189) #BDBDBD grey74
       257: (190,190,190) #BEBEBE grey
       224: (191,191,191) #BFBFBF grey75
       207: (192,192,192) #C0C0C0 silver
       240: (193,193,193) #C1C1C1 srgb(193,193,193)
       209: (194,194,194) #C2C2C2 grey76
       192: (195,195,195) #C3C3C3 srgb(195,195,195)
       214: (196,196,196) #C4C4C4 grey77
       212: (197,197,197) #C5C5C5 srgb(197,197,197)
       185: (198,198,198) #C6C6C6 srgb(198,198,198)
       169: (199,199,199) #C7C7C7 grey78
       162: (200,200,200) #C8C8C8 srgb(200,200,200)
       180: (201,201,201) #C9C9C9 grey79
       167: (202,202,202) #CACACA srgb(202,202,202)
       167: (203,203,203) #CBCBCB srgb(203,203,203)
       147: (204,204,204) #CCCCCC grey80
       139: (205,205,205) #CDCDCD srgb(205,205,205)
       117: (206,206,206) #CECECE srgb(206,206,206)
       121: (207,207,207) #CFCFCF grey81
       118: (208,208,208) #D0D0D0 srgb(208,208,208)
       130: (209,209,209) #D1D1D1 grey82
       125: (210,210,210) #D2D2D2 srgb(210,210,210)
       113: (211,211,211) #D3D3D3 LightGray
       121: (212,212,212) #D4D4D4 grey83
       115: (213,213,213) #D5D5D5 srgb(213,213,213)
        98: (214,214,214) #D6D6D6 grey84
        81: (215,215,215) #D7D7D7 srgb(215,215,215)
        98: (216,216,216) #D8D8D8 srgb(216,216,216)
        77: (217,217,217) #D9D9D9 grey85
        79: (218,218,218) #DADADA srgb(218,218,218)
        74: (219,219,219) #DBDBDB grey86
        81: (220,220,220) #DCDCDC gainsboro
       102: (221,221,221) #DDDDDD srgb(221,221,221)
        64: (222,222,222) #DEDEDE grey87
        84: (223,223,223) #DFDFDF srgb(223,223,223)
        77: (224,224,224) #E0E0E0 grey88
        75: (225,225,225) #E1E1E1 srgb(225,225,225)
        66: (226,226,226) #E2E2E2 srgb(226,226,226)
        79: (227,227,227) #E3E3E3 grey89
        81: (228,228,228) #E4E4E4 srgb(228,228,228)
        89: (229,229,229) #E5E5E5 grey90
       137: (230,230,230) #E6E6E6 srgb(230,230,230)
       119: (231,231,231) #E7E7E7 srgb(231,231,231)
       150: (232,232,232) #E8E8E8 grey91
       150: (233,233,233) #E9E9E9 srgb(233,233,233)
       174: (234,234,234) #EAEAEA srgb(234,234,234)
       184: (235,235,235) #EBEBEB grey92
       162: (236,236,236) #ECECEC srgb(236,236,236)
       153: (237,237,237) #EDEDED grey93
       111: (238,238,238) #EEEEEE srgb(238,238,238)
        75: (239,239,239) #EFEFEF srgb(239,239,239)
        60: (240,240,240) #F0F0F0 grey94
        51: (241,241,241) #F1F1F1 srgb(241,241,241)
        30: (242,242,242) #F2F2F2 grey95
        15: (243,243,243) #F3F3F3 srgb(243,243,243)
         3: (244,244,244) #F4F4F4 srgb(244,244,244)
         2: (245,245,245) #F5F5F5 grey96
         4: (246,246,246) #F6F6F6 srgb(246,246,246)
         3: (247,247,247) #F7F7F7 grey97
         1: (248,248,248) #F8F8F8 srgb(248,248,248)
         1: (249,249,249) #F9F9F9 srgb(249,249,249)
         1: (253,253,253) #FDFDFD srgb(253,253,253)
  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)
  Background color: white
  Border color: srgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 1280x960+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: JPEG
  Quality: 99
  Orientation: Undefined
  Properties:
    date:create: 2013-06-14T21:38:52+01:00
    date:modify: 2013-06-14T21:37:15+01:00
    exif:CFAPattern: 2, 0, 2, 0, 0, 1, 1, 2
    exif:Compression: 6
    exif:Contrast: 0
    exif:CustomRendered: 0
    exif:DateTime: 2013:06:14 21:37:15
    exif:DateTimeDigitized: 2013:06:10 20:16:36
    exif:DateTimeOriginal: 2013:06:10 20:16:36
    exif:DigitalZoomRatio: 100/100
    exif:ExifOffset: 250
    exif:ExifVersion: 48, 50, 51, 48
    exif:ExposureBiasValue: -3/10
    exif:ExposureMode: 1
    exif:ExposureProgram: 3
    exif:ExposureTime: 1/100
    exif:FileSource: 3
    exif:Flash: 24
    exif:FocalPlaneResolutionUnit: 4
    exif:FocalPlaneXResolution: 7637028/32768
    exif:FocalPlaneYResolution: 7637028/32768
    exif:GainControl: 1
    exif:ImageDescription: OLYMPUS DIGITAL CAMERA
    exif:ISOSpeedRatings: 160
    exif:JPEGInterchangeFormat: 788
    exif:JPEGInterchangeFormatLength: 8018
    exif:LightSource: 0
    exif:Make: OLYMPUS IMAGING CORP.
    exif:MaxApertureValue: 0/256
    exif:MeteringMode: 3
    exif:Model: E-P2
    exif:ResolutionUnit: 2
    exif:Saturation: 0
    exif:SceneCaptureType: 0
    exif:Sharpness: 0
    exif:ShutterSpeedValue: 6643856/1000000
    exif:Software: Adobe Photoshop Lightroom 4.4 (Windows)
    exif:thumbnail:ResolutionUnit: 2
    exif:thumbnail:XResolution: 72/1
    exif:thumbnail:YResolution: 72/1
    exif:WhiteBalance: 1
    exif:XResolution: 72/1
    exif:YResolution: 72/1
    jpeg:colorspace: 2
    jpeg:sampling-factor: 1x1,1x1,1x1
    rdf:Alt: 
     
    rdf:Bag: 
     
    signature: 95ae19a1ea316c18b9ee6a3e38bb482573e1094fdfc42c781f1a5cab577bd70e
    unknown: H87504247
    xmpMM:DerivedFrom: 
  Profiles:
    Profile-8bim: 8316 bytes
    Profile-exif: 8812 bytes
    Profile-icc: 3144 bytes
      Description: sRGB IEC61966-2.1
      Manufacturer: IEC http://www.iec.ch
      Model: IEC 61966-2.1 Default RGB colour space - sRGB
      Copyright: Copyright (c) 1998 Hewlett-Packard Company
    Profile-iptc: 190 bytes
      City[1,90]: 0x00000000: 254700                                        -%
      unknown[2,0]: 
      Keyword[2,25]: 90/2.5
      Keyword[2,25]: 90mm
      Keyword[2,25]: E-P2
      Keyword[2,25]: Olympus
      Keyword[2,25]: Tamron SP
      Keyword[2,25]: evening
      Keyword[2,25]: flower
      Keyword[2,25]: garden
      Keyword[2,25]: yellow
      Created Date[2,55]: 20130610
      Created Time[2,60]: 201636
      unknown[2,62]: 20130610
      unknown[2,63]: 201636
      Caption[2,120]: OLYMPUS DIGITAL CAMERA
    Profile-xmp: 9277 bytes
  Artifacts:
    filename: 20130610-1-3.jpg
    verbose: true
  Tainted: False
  Filesize: 478KB
  Number pixels: 1.229M
  Pixels per second: 9.223372EB
  User time: 0.000u
  Elapsed time: 0:01.000
  Version: ImageMagick 6.8.4-8 2013-04-06 Q16 http://www.imagemagick.org

Code: Select all


Image: bexportcowmono.tif
  Format: TIFF (Tagged Image File Format)
  Class: DirectClass
  Geometry: 2620x3683+0+0
  Resolution: 2400x2400
  Print size: 1.09167x1.53458
  Units: PixelsPerInch
  Type: Grayscale
  Base type: Grayscale
  Endianess: MSB
  Colorspace: Gray
  Depth: 16-bit
  Channel depth:
    gray: 16-bit
  Channel statistics:
    Gray:
      min: 0 (0)
      max: 65535 (1)
      mean: 47367.4 (0.722781)
      standard deviation: 11441.2 (0.174582)
      kurtosis: 3.42559
      skewness: -0.647153
  Rendering intent: Undefined
  Gamma: 1
  Background color: gray(255,255,255)
  Border color: gray(223,223,223)
  Matte color: gray(189,189,189)
  Transparent color: gray(0,0,0)
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 2620x3683+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: None
  Orientation: TopLeft
  Properties:
    date:create: 2013-06-15T07:44:28+01:00
    date:modify: 2013-06-15T07:59:23+01:00
    rdf:Alt: 
     
    
    rdf:Bag: 
     
     
    
    signature: 6680e3eacd6c5f23643c16bc478c37adfd7b96bdd9d1a909bbbd210a6eaf34ed
    tiff:copyright: 
    tiff:document: bexportcowmono.tif
    tiff:endian: lsb
    tiff:make: Plustek
    tiff:model: OpticFilm 7600i
    tiff:photometric: min-is-black
    tiff:rows-per-strip: 1
    tiff:software: Adobe Photoshop Lightroom 4.4 (Windows)
    tiff:timestamp: 2013:06:15 07:43:25
  Profiles:
    Profile-8bim: 28 bytes
    Profile-xmp: 5492 bytes
  Artifacts:
    filename: bexportcowmono.tif
    verbose: true
  Tainted: False
  Filesize: 19.33MB
  Number pixels: 9.649M
  Pixels per second: 9.223372EB
  User time: 0.000u
  Elapsed time: 0:01.000
  Version: ImageMagick 6.8.4-8 2013-04-06 Q16 http://www.imagemagick.org
fmw42 wrote: If you import the image into LR, can you change the file type from grayscale to RGB or palette?
LR4.4 does not offer that level of editing.

snibgo wrote:5. As you can see, this file is a palletted greyscale file. Try adding "-type truecolor" in the convert command before the final (jpg) output filename.
No, that generates a file which exhibits the same problems in LR as before.


.

Re: IM 6.8.4.8 - modified mono images cannot import to LR4

Posted: 2013-06-15T00:24:50-07:00
by snibgo
Sorry, I'm just about to go out. Loads of differences in those last two monochrome files: the one that works is JPEG, 8 bit (of course), sRGB colorspace, gamma 0.4545 (of course), with sRGB profile.

The one that doesn't work is TIFF, colorspace Gray, gamma 1, with a profile. I've probably missed other stuff.

The next experiment is to try to turn charachteristics of the the second into the first, but I'm out of time. Sorry.

Re: IM 6.8.4.8 - modified mono images cannot import to LR4

Posted: 2013-06-15T09:03:55-07:00
by snibgo
Okay, I'm back.

Another difference: the tiff has a resolution ("-density") of 2400 pixels per inch.

I doubt that the border causes a problem, but it's worth eliminating. I suggest you take a file created by LR and convert it with IM. Perhaps convert it to PNG, then back to the outputted format. If LR doesn't like it, tweak everything (colorspace, profile etc) until it does.

Perhaps LR docs or a forum can say what LR can accept. If so, we can probably suggest what IM commands will make a file that way.

Re: IM 6.8.4.8 - modified mono images cannot import to LR4

Posted: 2013-06-15T11:18:24-07:00
by fmw42
I tried to convert a color image to grayscale (and also bilevel) in IM 6.8.5.10 and save to tif, gif, png and jpg.

convert logo: -grayscale rec601luma tmp.xxx


oddly

the gif and png have gamma=0.4545, but the tif and jpg have gamma=1.

It was my understanding that -grayscale should honor rec601luma (non-linear) and so should have gamma=0.4545.

I even tried converting afterwards with -set colorspace sRGB and -colorspace sRGB and the tiff always ended with gamma=1.

I am not sure but this looks like a bug to me. I will report it and see what they say. It is possible that tif and jpg do not store the gamma value and IM assumes these gamma values when reading the image and/or generating stats.

Re: IM 6.8.4.8 - modified mono images cannot import to LR4

Posted: 2013-06-16T03:18:58-07:00
by pdh
snibgo,fmw42 - thank you both for all your efforts and attention.

Whether we consider it a "feature" or truly a bug, I do consider it a shortcoming in IM; but while inconvenient and annoying, it isn't a showstopper for my current purposes.

The question does arise whether there is an issue with only these types of monochrome images, or whether this is a singular instance of a general case.

If someone were to be manipulating a large number of images using IM, as part of a workflow that also used LR, then this would be quite problematic

Because this is something that is proving time-consuming to resolve, I am not inclined to pursue experimenting with it further at my end at the moment.

If however the developers choose to look at this, find it to be a shortcoming in IM, and change the code to overcome it, I will gladly beta (or even alpha) test. If that is the case please contact me via PM as I do not monitor this forum regularly

PS I did find time to upgrade to 6.8.5-10 but same problems ensued

Re: IM 6.8.4.8 - modified mono images cannot import to LR4

Posted: 2013-06-17T05:47:08-07:00
by pdh
Now tested with ImageMagick 6.8.6-0 2013-06-15 Q16.

no change.

Re: IM 6.8.4.8 - modified mono images cannot import to LR4

Posted: 2013-06-17T09:36:05-07:00
by magick
Two other options. Add -type TrueColor to output an RGB image instead of grayscale or -interlace none to remove progressive encoding. Also consider posting this bug report to the LR forums since its a deficiency or bug in LR, not ImageMagick. ImageMagick is creating valid JPEG grayscale images (meaning they meet the specification of the JPEG standard).

Re: IM 6.8.4.8 - modified mono images cannot import to LR4

Posted: 2013-06-18T05:31:09-07:00
by pdh
ok many thanks.

I have now tested with -type TrueColor and -interlace none, both individually and combined, and in each case generates files that LR refuses to import at all, throwing an error that is fairly rare: "Failed to find a place for the imported file"

I'll give Adobe a poke when I have a moment, but I'm guessing they won't be very interested.

thanks again to all who looked at this with me.