PSD Conversion

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
briandenks
Posts: 29
Joined: 2013-06-19T01:35:25-07:00
Authentication code: 6789

Re: PSD Conversion

Post by briandenks »

THANKS FMW42 !
Really appreciate your help on this, would it be possible to use -verbose initially to determine its current profile ?
Im trying to use cli for all commands as server is ubuntu headless, is there a command for IM to say if this equals this then do that or not do that
God i feel like a knuckle dragging ape, im sorry for my poor grasp on this
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PSD Conversion

Post by fmw42 »

You would need to write some shell script to do the if,then,else. That is easy. You can use sed or grep to find if there is a profile.

Here I get the verbose information for the logo: image into which I added an sRGB.icc profile.

identify -verbose logo_srgb.png

Code: Select all

convert logo: -profile /users/fred/images/profiles/sRGB.icc logo_srgb.png
c-98-234-104-216:~ fred$ idv logo_srgb.png
Image: logo_srgb.png
  Format: PNG (Portable Network Graphics)
  Class: PseudoClass
  Geometry: 640x480+0+0
  Units: Undefined
  Type: Palette
  Endianess: Undefined
  Colorspace: sRGB
  Depth: 8-bit
  Channel depth:
    red: 8-bit
    green: 8-bit
    blue: 8-bit
  Channel statistics:
    Red:
      min: 4 (0.0156863)
      max: 255 (1)
      mean: 229.323 (0.899307)
      standard deviation: 69.3423 (0.271931)
      kurtosis: 4.45973
      skewness: -2.49768
    Green:
      min: 0 (0)
      max: 255 (1)
      mean: 226.217 (0.887127)
      standard deviation: 70.8689 (0.277917)
      kurtosis: 3.37246
      skewness: -2.24758
    Blue:
      min: 0 (0)
      max: 255 (1)
      mean: 229.064 (0.898288)
      standard deviation: 64.1018 (0.251379)
      kurtosis: 4.65272
      skewness: -2.42185
  Image statistics:
    Overall:
      min: 0 (0)
      max: 255 (1)
      mean: 228.201 (0.894907)
      standard deviation: 68.166 (0.267318)
      kurtosis: 4.14821
      skewness: -2.39288
  Colors: 256
  Histogram:
      7150: (  4,  7,  7) #040707 srgb(4,7,7)
       136: (  6,  9, 14) #06090E srgb(6,9,14)
       111: (  6, 10, 16) #060A10 srgb(6,10,16)
        68: (  9, 13, 19) #090D13 srgb(9,13,19)
       120: (  9, 14, 25) #090E19 srgb(9,14,25)
        55: ( 10, 11, 11) #0A0B0B srgb(10,11,11)
        97: ( 11, 17, 34) #0B1122 srgb(11,17,34)
        35: ( 13, 17, 22) #0D1116 srgb(13,17,22)
       130: ( 13, 20, 42) #0D142A srgb(13,20,42)
        98: ( 14, 26, 55) #0E1A37 srgb(14,26,55)
        67: ( 15, 17, 41) #0F1129 srgb(15,17,41)
        61: ( 18, 30, 67) #121E43 srgb(18,30,67)
        83: ( 19, 18, 12) #13120C srgb(19,18,12)
        84: ( 19, 23, 56) #131738 srgb(19,23,56)
        88: ( 20, 11, 10) #140B0A srgb(20,11,10)
       270: ( 20, 23, 23) #141717 srgb(20,23,23)
       106: ( 20, 35, 77) #14234D srgb(20,35,77)
        36: ( 23, 41, 94) #17295E srgb(23,41,94)
        25: ( 24, 27, 27) #181B1B srgb(24,27,27)
        48: ( 25, 37, 87) #192557 srgb(25,37,87)
        86: ( 25, 45,103) #192D67 srgb(25,45,103)
        83: ( 26, 27, 75) #1A1B4B srgb(26,27,75)
        98: ( 27, 48,111) #1B306F srgb(27,48,111)
        85: ( 28, 52,120) #1C3478 srgb(28,52,120)
        23: ( 30, 20, 13) #1E140D srgb(30,20,13)
        79: ( 30, 30, 86) #1E1E56 srgb(30,30,86)
        19: ( 30, 33, 33) #1E2121 srgb(30,33,33)
       142: ( 30, 55,129) #1E3781 srgb(30,55,129)
         3: ( 31, 49,114) #1F3172 srgb(31,49,114)
      2538: ( 33, 32, 95) #21205F srgb(33,32,95)
       539: ( 34, 35, 99) #222363 srgb(34,35,99)
        32: ( 34, 36, 17) #222411 srgb(34,36,17)
     12466: ( 34, 62,146) #223E92 srgb(34,62,146)
        50: ( 35, 25, 19) #231913 srgb(35,25,19)
       176: ( 35, 38, 38) #232626 srgb(35,38,38)
        30: ( 35, 42,101) #232A65 srgb(35,42,101)
       500: ( 36, 39,105) #242769 srgb(36,39,105)
       337: ( 36, 59,139) #243B8B srgb(36,59,139)
       379: ( 37, 42,109) #252A6D srgb(37,42,109)
         6: ( 38, 30, 34) #261E22 srgb(38,30,34)
       558: ( 38, 45,115) #262D73 srgb(38,45,115)
       412: ( 38, 54,130) #263682 srgb(38,54,130)
       405: ( 38, 56,134) #263886 srgb(38,56,134)
       422: ( 39, 48,119) #273077 srgb(39,48,119)
       228: ( 39, 50,124) #27327C srgb(39,50,124)
        38: ( 41, 43, 43) #292B2B srgb(41,43,43)
        32: ( 46, 42, 93) #2E2A5D srgb(46,42,93)
        37: ( 46, 49, 50) #2E3132 srgb(46,49,50)
       199: ( 47, 73,140) #2F498C srgb(47,73,140)
        40: ( 49, 50, 17) #313211 srgb(49,50,17)
        50: ( 51, 16, 13) #33100D srgb(51,16,13)
        24: ( 51, 50, 42) #33322A srgb(51,50,42)
       163: ( 51, 54, 54) #333636 srgb(51,54,54)
        11: ( 51, 70,133) #334685 srgb(51,70,133)
        25: ( 52, 56,109) #34386D srgb(52,56,109)
        80: ( 53, 36, 24) #352418 srgb(53,36,24)
         9: ( 55, 71,126) #37477E srgb(55,71,126)
        21: ( 57, 59, 60) #393B3C srgb(57,59,60)
        32: ( 60, 53, 90) #3C355A srgb(60,53,90)
        33: ( 60, 84,135) #3C5487 srgb(60,84,135)
        41: ( 63, 65, 66) #3F4142 srgb(63,65,66)
        54: ( 65, 43, 31) #412B1F srgb(65,43,31)
        41: ( 69, 69, 20) #454514 srgb(69,69,20)
       804: ( 69, 70, 70) #454646 srgb(69,70,70)
        21: ( 70, 41, 24) #462918 srgb(70,41,24)
        67: ( 71, 74, 74) #474A4A srgb(71,74,74)
        22: ( 72, 58, 88) #483A58 srgb(72,58,88)
        99: ( 74, 95,129) #4A5F81 srgb(74,95,129)
        73: ( 75, 75, 75) #4B4B4B srgb(75,75,75)
         7: ( 76, 58, 54) #4C3A36 srgb(76,58,54)
        17: ( 78, 50, 23) #4E3217 srgb(78,50,23)
        24: ( 79, 82,108) #4F526C srgb(79,82,108)
        14: ( 80, 68, 22) #504416 srgb(80,68,22)
        25: ( 81, 13, 14) #510D0E srgb(81,13,14)
        23: ( 81, 52, 37) #513425 srgb(81,52,37)
        51: ( 81, 73, 85) #514955 srgb(81,73,85)
       133: ( 83, 85, 85) #535555 srgb(83,85,85)
        44: ( 87, 85, 87) #575557 srgb(87,85,87)
        51: ( 87,105,122) #57697A srgb(87,105,122)
        58: ( 90, 91, 92) #5A5B5C srgb(90,91,92)
        39: ( 93, 97,102) #5D6166 srgb(93,97,102)
        35: ( 94, 94, 25) #5E5E19 srgb(94,94,25)
        57: ( 95, 61, 43) #5F3D2B srgb(95,61,43)
       193: ( 98,100,100) #626464 srgb(98,100,100)
       110: (100, 12, 13) #640C0D srgb(100,12,13)
        28: (103,105,103) #676967 srgb(103,105,103)
        37: (103,116,116) #677474 srgb(103,116,116)
        12: (104, 86, 99) #685663 srgb(104,86,99)
         9: (106, 81, 27) #6A511B srgb(106,81,27)
        76: (106,108,108) #6A6C6C srgb(106,108,108)
        21: (109, 16, 18) #6D1012 srgb(109,16,18)
        25: (109, 85, 81) #6D5551 srgb(109,85,81)
        26: (109,108, 28) #6D6C1C srgb(109,108,28)
        34: (110, 70, 49) #6E4631 srgb(110,70,49)
         4: (110, 95, 42) #6E5F2A srgb(110,95,42)
        17: (111, 58, 31) #6F3A1F srgb(111,58,31)
        38: (113,118,106) #71766A srgb(113,118,106)
        69: (113,128,112) #718070 srgb(113,128,112)
        28: (114,104, 84) #726854 srgb(114,104,84)
       152: (114,116,116) #727474 srgb(114,116,116)
         8: (119, 72, 42) #77482A srgb(119,72,42)
        31: (121, 18, 20) #791214 srgb(121,18,20)
        47: (121,123,123) #797B7B srgb(121,123,123)
        45: (125,123, 31) #7D7B1F srgb(125,123,31)
        35: (125,127,129) #7D7F81 srgb(125,127,129)
        53: (126, 80, 56) #7E5038 srgb(126,80,56)
        34: (126,138,106) #7E8A6A srgb(126,138,106)
        77: (127,128,129) #7F8081 srgb(127,128,129)
       180: (130,131,132) #828384 srgb(130,131,132)
        11: (132, 91, 72) #845B48 srgb(132,91,72)
        52: (134,136,137) #868889 srgb(134,136,137)
        28: (136, 22, 25) #881619 srgb(136,22,25)
         8: (136, 90, 30) #885A1E srgb(136,90,30)
       560: (138,140,143) #8A8C8F srgb(138,140,143)
        38: (139,133, 98) #8B8562 srgb(139,133,98)
       147: (140,142,145) #8C8E91 srgb(140,142,145)
        59: (140,150,100) #8C9664 srgb(140,150,100)
        27: (141, 76, 42) #8D4C2A srgb(141,76,42)
        41: (141, 89, 62) #8D593E srgb(141,89,62)
        52: (141,115, 79) #8D734F srgb(141,115,79)
       187: (143,144,147) #8F9093 srgb(143,144,147)
        52: (144,144,143) #90908F srgb(144,144,143)
        87: (146,147,148) #929394 srgb(146,147,148)
        25: (147,141, 84) #938D54 srgb(147,141,84)
       182: (148,150,153) #949699 srgb(148,150,153)
        47: (150,144, 35) #969023 srgb(150,144,35)
        52: (150,152,155) #96989B srgb(150,152,155)
        15: (151,106, 40) #976A28 srgb(151,106,40)
        37: (152, 26, 30) #981A1E srgb(152,26,30)
        52: (152,151,151) #989797 srgb(152,151,151)
        37: (153,161, 94) #99A15E srgb(153,161,94)
        54: (154,155,157) #9A9B9D srgb(154,155,157)
        52: (156, 99, 68) #9C6344 srgb(156,99,68)
       309: (156,158,161) #9C9EA1 srgb(156,158,161)
       239: (158,160,163) #9EA0A3 srgb(158,160,163)
        85: (159,160,159) #9FA09F srgb(159,160,159)
        99: (161,163,164) #A1A3A4 srgb(161,163,164)
        97: (164,166,169) #A4A6A9 srgb(164,166,169)
        61: (166,172, 89) #A6AC59 srgb(166,172,89)
        17: (167,169, 84) #A7A954 srgb(167,169,84)
       167: (167,169,172) #A7A9AC srgb(167,169,172)
        75: (170,171,173) #AAABAD srgb(170,171,173)
       229: (172,174,177) #ACAEB1 srgb(172,174,177)
        47: (173,110, 72) #AD6E48 srgb(173,110,72)
        29: (174, 89, 46) #AE592E srgb(174,89,46)
        26: (174,140, 73) #AE8C49 srgb(174,140,73)
        19: (175, 25, 29) #AF191D srgb(175,25,29)
        27: (175, 30, 35) #AF1E23 srgb(175,30,35)
       175: (175,176,179) #AFB0B3 srgb(175,176,179)
        13: (176,170, 76) #B0AA4C srgb(176,170,76)
        80: (177,179,180) #B1B3B4 srgb(177,179,180)
        11: (179,109, 51) #B36D33 srgb(179,109,51)
         5: (179,144, 43) #B3902B srgb(179,144,43)
        54: (179,174, 41) #B3AE29 srgb(179,174,41)
        46: (179,183, 83) #B3B753 srgb(179,183,83)
       126: (181,182,185) #B5B6B9 srgb(181,182,185)
        50: (183,184,187) #B7B8BB srgb(183,184,187)
        62: (186,116, 80) #BA7450 srgb(186,116,80)
        62: (186,187,189) #BABBBD srgb(186,187,189)
        19: (189, 32, 37) #BD2025 srgb(189,32,37)
       404: (189,190,193) #BDBEC1 srgb(189,190,193)
       284: (191,192,195) #BFC0C3 srgb(191,192,195)
         2: (192,126, 50) #C07E32 srgb(192,126,50)
        50: (192,194, 77) #C0C24D srgb(192,194,77)
       112: (193,194,195) #C1C2C3 srgb(193,194,195)
        11: (195, 32, 38) #C32026 srgb(195,32,38)
        16: (196,100, 51) #C46433 srgb(196,100,51)
        33: (197,176, 72) #C5B048 srgb(197,176,72)
        93: (197,198,201) #C5C6C9 srgb(197,198,201)
         4: (198,111, 68) #C66F44 srgb(198,111,68)
        98: (199,200,202) #C7C8CA srgb(199,200,202)
        47: (201,125, 86) #C97D56 srgb(201,125,86)
        14: (203, 30, 36) #CB1E24 srgb(203,30,36)
        29: (203,196, 48) #CBC430 srgb(203,196,48)
       130: (203,203,205) #CBCBCD srgb(203,203,205)
       118: (205, 32, 39) #CD2027 srgb(205,32,39)
        76: (205,205, 71) #CDCD47 srgb(205,205,71)
       213: (206,207,208) #CECFD0 srgb(206,207,208)
       173: (207,103, 51) #CF6733 srgb(207,103,51)
       179: (207,208,210) #CFD0D2 srgb(207,208,210)
        89: (208,103, 52) #D06734 srgb(208,103,52)
        67: (209,105, 53) #D16935 srgb(209,105,53)
        35: (209,143, 52) #D18F34 srgb(209,143,52)
        30: (209,173, 58) #D1AD3A srgb(209,173,58)
        95: (210,210,211) #D2D2D3 srgb(210,210,211)
        11: (211, 32, 39) #D32027 srgb(211,32,39)
        63: (213,109, 57) #D56D39 srgb(213,109,57)
        45: (213,137, 86) #D58956 srgb(213,137,86)
       174: (214,215,216) #D6D7D8 srgb(214,215,216)
        98: (215,216,217) #D7D8D9 srgb(215,216,217)
        40: (216,210, 50) #D8D232 srgb(216,210,50)
        52: (217,113, 62) #D9713E srgb(217,113,62)
         2: (219,200, 67) #DBC843 srgb(219,200,67)
        57: (219,216, 66) #DBD842 srgb(219,216,66)
        73: (219,220,221) #DBDCDD srgb(219,220,221)
        49: (221,118, 67) #DD7643 srgb(221,118,67)
       305: (222,223,224) #DEDFE0 srgb(222,223,224)
       159: (223,224,225) #DFE0E1 srgb(223,224,225)
        84: (226,226,227) #E2E2E3 srgb(226,226,227)
       141: (227,124, 73) #E37C49 srgb(227,124,73)
        49: (230,224, 51) #E6E033 srgb(230,224,51)
       210: (231,231,232) #E7E7E8 srgb(231,231,232)
        30: (232,129, 78) #E8814E srgb(232,129,78)
        58: (232,143, 98) #E88F62 srgb(232,143,98)
        30: (232,177, 56) #E8B138 srgb(232,177,56)
       119: (232,227, 60) #E8E33C srgb(232,227,60)
        13: (235,152, 55) #EB9837 srgb(235,152,55)
       206: (237, 31, 36) #ED1F24 srgb(237,31,36)
        53: (237,134, 83) #ED8653 srgb(237,134,83)
       318: (237,237,238) #EDEDEE srgb(237,237,238)
       107: (239,239,240) #EFEFF0 srgb(239,239,240)
       129: (239,240,240) #EFF0F0 srgb(239,240,240)
        20: (241,210, 48) #F1D230 srgb(241,210,48)
        55: (243,140, 89) #F38C59 srgb(243,140,89)
       315: (243,244,244) #F3F4F4 srgb(243,244,244)
        56: (245,145, 94) #F5915E srgb(245,145,94)
        91: (245,228, 55) #F5E437 srgb(245,228,55)
      1468: (245,238, 54) #F5EE36 srgb(245,238,54)
        93: (247,149,100) #F79564 srgb(247,149,100)
       104: (247,152,103) #F79867 srgb(247,152,103)
      1603: (247,152,104) #F79868 srgb(247,152,104)
        60: (247,212, 56) #F7D438 srgb(247,212,56)
        90: (249,164, 55) #F9A437 srgb(249,164,55)
        87: (249,185, 55) #F9B937 srgb(249,185,55)
        77: (249,218, 55) #F9DA37 srgb(249,218,55)
        96: (250,201, 55) #FAC937 srgb(250,201,55)
        22: (251,227, 49) #FBE331 srgb(251,227,49)
         6: (251,229, 47) #FBE52F srgb(251,229,47)
       139: (251,250,244) #FBFAF4 srgb(251,250,244)
       206: (254,205,  8) #FECD08 srgb(254,205,8)
        42: (254,208, 23) #FED017 srgb(254,208,23)
        43: (254,219, 75) #FEDB4B srgb(254,219,75)
        37: (254,225,108) #FEE16C srgb(254,225,108)
        33: (254,231,137) #FEE789 srgb(254,231,137)
      2942: (255,  0,  0) #FF0000 red
       118: (255, 16, 16) #FF1010 srgb(255,16,16)
        95: (255, 32, 32) #FF2020 srgb(255,32,32)
        78: (255, 48, 48) #FF3030 srgb(255,48,48)
       130: (255, 64, 64) #FF4040 srgb(255,64,64)
        62: (255, 80, 80) #FF5050 srgb(255,80,80)
       107: (255, 96, 96) #FF6060 srgb(255,96,96)
        51: (255,112,112) #FF7070 srgb(255,112,112)
       109: (255,127,127) #FF7F7F srgb(255,127,127)
        55: (255,143,143) #FF8F8F srgb(255,143,143)
        88: (255,159,159) #FF9F9F srgb(255,159,159)
        59: (255,175,175) #FFAFAF srgb(255,175,175)
       142: (255,191,191) #FFBFBF srgb(255,191,191)
        84: (255,207,207) #FFCFCF srgb(255,207,207)
       105: (255,223,223) #FFDFDF srgb(255,223,223)
        23: (255,236,162) #FFECA2 srgb(255,236,162)
        31: (255,239,178) #FFEFB2 srgb(255,239,178)
       125: (255,239,239) #FFEFEF srgb(255,239,239)
         9: (255,242,193) #FFF2C1 srgb(255,242,193)
        31: (255,246,209) #FFF6D1 srgb(255,246,209)
        14: (255,249,224) #FFF9E0 srgb(255,249,224)
    256244: (255,255,255) #FFFFFF white
  Colormap entries: 256
  Colormap:
         0: (255,255,255) #FFFFFF white
         1: (255,236,162) #FFECA2 srgb(255,236,162)
         2: (254,231,137) #FEE789 srgb(254,231,137)
         3: (249,218, 55) #F9DA37 srgb(249,218,55)
         4: (254,205,  8) #FECD08 srgb(254,205,8)
         5: (255,246,209) #FFF6D1 srgb(255,246,209)
         6: (251,250,244) #FBFAF4 srgb(251,250,244)
         7: (255,242,193) #FFF2C1 srgb(255,242,193)
         8: (254,225,108) #FEE16C srgb(254,225,108)
         9: (254,208, 23) #FED017 srgb(254,208,23)
        10: (254,219, 75) #FEDB4B srgb(254,219,75)
        11: (255,239,178) #FFEFB2 srgb(255,239,178)
        12: (239,240,240) #EFF0F0 srgb(239,240,240)
        13: (146,147,148) #929394 srgb(146,147,148)
        14: (159,160,159) #9FA09F srgb(159,160,159)
        15: (  4,  7,  7) #040707 srgb(4,7,7)
        16: (206,207,208) #CECFD0 srgb(206,207,208)
        17: (255,249,224) #FFF9E0 srgb(255,249,224)
        18: ( 51, 54, 54) #333636 srgb(51,54,54)
        19: ( 69, 70, 70) #454646 srgb(69,70,70)
        20: (222,223,224) #DEDFE0 srgb(222,223,224)
        21: ( 98,100,100) #626464 srgb(98,100,100)
        22: (113,118,106) #71766A srgb(113,118,106)
        23: (109,108, 28) #6D6C1C srgb(109,108,28)
        24: ( 20, 23, 23) #141717 srgb(20,23,23)
        25: (191,192,195) #BFC0C3 srgb(191,192,195)
        26: (237,237,238) #EDEDEE srgb(237,237,238)
        27: (207,208,210) #CFD0D2 srgb(207,208,210)
        28: (139,133, 98) #8B8562 srgb(139,133,98)
        29: (230,224, 51) #E6E033 srgb(230,224,51)
        30: (193,194,195) #C1C2C3 srgb(193,194,195)
        31: ( 49, 50, 17) #313211 srgb(49,50,17)
        32: ( 35, 38, 38) #232626 srgb(35,38,38)
        33: (  6, 10, 16) #060A10 srgb(6,10,16)
        34: (241,210, 48) #F1D230 srgb(241,210,48)
        35: (245,238, 54) #F5EE36 srgb(245,238,54)
        36: ( 34, 36, 17) #222411 srgb(34,36,17)
        37: (125,123, 31) #7D7B1F srgb(125,123,31)
        38: ( 94, 94, 25) #5E5E19 srgb(94,94,25)
        39: (  6,  9, 14) #06090E srgb(6,9,14)
        40: ( 69, 69, 20) #454514 srgb(69,69,20)
        41: (210,210,211) #D2D2D3 srgb(210,210,211)
        42: (127,128,129) #7F8081 srgb(127,128,129)
        43: ( 63, 65, 66) #3F4142 srgb(63,65,66)
        44: ( 10, 11, 11) #0A0B0B srgb(10,11,11)
        45: (179,174, 41) #B3AE29 srgb(179,174,41)
        46: (203,203,205) #CBCBCD srgb(203,203,205)
        47: (245,228, 55) #F5E437 srgb(245,228,55)
        48: ( 19, 18, 12) #13120C srgb(19,18,12)
        49: (150,144, 35) #969023 srgb(150,144,35)
        50: (216,210, 50) #D8D232 srgb(216,210,50)
        51: (203,196, 48) #CBC430 srgb(203,196,48)
        52: (114,116,116) #727474 srgb(114,116,116)
        53: (161,163,164) #A1A3A4 srgb(161,163,164)
        54: (175,176,179) #AFB0B3 srgb(175,176,179)
        55: ( 30, 33, 33) #1E2121 srgb(30,33,33)
        56: (219,220,221) #DBDCDD srgb(219,220,221)
        57: (247,212, 56) #F7D438 srgb(247,212,56)
        58: (177,179,180) #B1B3B4 srgb(177,179,180)
        59: (189,190,193) #BDBEC1 srgb(189,190,193)
        60: (209,173, 58) #D1AD3A srgb(209,173,58)
        61: ( 80, 68, 22) #504416 srgb(80,68,22)
        62: ( 83, 85, 85) #535555 srgb(83,85,85)
        63: (255,239,239) #FFEFEF srgb(255,239,239)
        64: (255,207,207) #FFCFCF srgb(255,207,207)
        65: (255,175,175) #FFAFAF srgb(255,175,175)
        66: (255,127,127) #FF7F7F srgb(255,127,127)
        67: (255, 96, 96) #FF6060 srgb(255,96,96)
        68: (255, 64, 64) #FF4040 srgb(255,64,64)
        69: (255, 16, 16) #FF1010 srgb(255,16,16)
        70: (255,  0,  0) #FF0000 red
        71: (255,191,191) #FFBFBF srgb(255,191,191)
        72: (255,159,159) #FF9F9F srgb(255,159,159)
        73: (255,223,223) #FFDFDF srgb(255,223,223)
        74: (255,112,112) #FF7070 srgb(255,112,112)
        75: (255, 32, 32) #FF2020 srgb(255,32,32)
        76: (255, 48, 48) #FF3030 srgb(255,48,48)
        77: (255,143,143) #FF8F8F srgb(255,143,143)
        78: (255, 80, 80) #FF5050 srgb(255,80,80)
        79: ( 13, 20, 42) #0D142A srgb(13,20,42)
        80: (130,131,132) #828384 srgb(130,131,132)
        81: (158,160,163) #9EA0A3 srgb(158,160,163)
        82: (239,239,240) #EFEFF0 srgb(239,239,240)
        83: ( 46, 49, 50) #2E3132 srgb(46,49,50)
        84: (226,226,227) #E2E2E3 srgb(226,226,227)
        85: (223,224,225) #DFE0E1 srgb(223,224,225)
        86: (  9, 14, 25) #090E19 srgb(9,14,25)
        87: ( 14, 26, 55) #0E1A37 srgb(14,26,55)
        88: ( 26, 27, 75) #1A1B4B srgb(26,27,75)
        89: (143,144,147) #8F9093 srgb(143,144,147)
        90: (  9, 13, 19) #090D13 srgb(9,13,19)
        91: ( 25, 37, 87) #192557 srgb(25,37,87)
        92: ( 34, 35, 99) #222363 srgb(34,35,99)
        93: ( 19, 23, 56) #131738 srgb(19,23,56)
        94: ( 36, 39,105) #242769 srgb(36,39,105)
        95: ( 33, 32, 95) #21205F srgb(33,32,95)
        96: ( 30, 30, 86) #1E1E56 srgb(30,30,86)
        97: ( 15, 17, 41) #0F1129 srgb(15,17,41)
        98: ( 11, 17, 34) #0B1122 srgb(11,17,34)
        99: ( 41, 43, 43) #292B2B srgb(41,43,43)
       100: (250,201, 55) #FAC937 srgb(250,201,55)
       101: ( 81, 73, 85) #514955 srgb(81,73,85)
       102: (141,115, 79) #8D734F srgb(141,115,79)
       103: (243,244,244) #F3F4F4 srgb(243,244,244)
       104: ( 38, 45,115) #262D73 srgb(38,45,115)
       105: (232,227, 60) #E8E33C srgb(232,227,60)
       106: (173,110, 72) #AD6E48 srgb(173,110,72)
       107: ( 27, 48,111) #1B306F srgb(27,48,111)
       108: ( 18, 30, 67) #121E43 srgb(18,30,67)
       109: (156,158,161) #9C9EA1 srgb(156,158,161)
       110: ( 38, 54,130) #263682 srgb(38,54,130)
       111: (249,185, 55) #F9B937 srgb(249,185,55)
       112: (213,137, 86) #D58956 srgb(213,137,86)
       113: ( 35, 42,101) #232A65 srgb(35,42,101)
       114: ( 31, 49,114) #1F3172 srgb(31,49,114)
       115: ( 37, 42,109) #252A6D srgb(37,42,109)
       116: (249,164, 55) #F9A437 srgb(249,164,55)
       117: (174,140, 73) #AE8C49 srgb(174,140,73)
       118: ( 38, 56,134) #263886 srgb(38,56,134)
       119: ( 39, 50,124) #27327C srgb(39,50,124)
       120: (147,141, 84) #938D54 srgb(147,141,84)
       121: ( 76, 58, 54) #4C3A36 srgb(76,58,54)
       122: ( 34, 62,146) #223E92 srgb(34,62,146)
       123: ( 39, 48,119) #273077 srgb(39,48,119)
       124: (232,177, 56) #E8B138 srgb(232,177,56)
       125: (209,143, 52) #D18F34 srgb(209,143,52)
       126: (109, 85, 81) #6D5551 srgb(109,85,81)
       127: ( 30, 55,129) #1E3781 srgb(30,55,129)
       128: ( 36, 59,139) #243B8B srgb(36,59,139)
       129: ( 20, 35, 77) #14234D srgb(20,35,77)
       130: (205,205, 71) #CDCD47 srgb(205,205,71)
       131: ( 79, 82,108) #4F526C srgb(79,82,108)
       132: (144,144,143) #90908F srgb(144,144,143)
       133: ( 23, 41, 94) #17295E srgb(23,41,94)
       134: ( 25, 45,103) #192D67 srgb(25,45,103)
       135: ( 55, 71,126) #37477E srgb(55,71,126)
       136: (167,169, 84) #A7A954 srgb(167,169,84)
       137: ( 51, 70,133) #334685 srgb(51,70,133)
       138: ( 93, 97,102) #5D6166 srgb(93,97,102)
       139: (176,170, 76) #B0AA4C srgb(176,170,76)
       140: (192,194, 77) #C0C24D srgb(192,194,77)
       141: (251,227, 49) #FBE331 srgb(251,227,49)
       142: ( 46, 42, 93) #2E2A5D srgb(46,42,93)
       143: ( 87,105,122) #57697A srgb(87,105,122)
       144: ( 47, 73,140) #2F498C srgb(47,73,140)
       145: (114,104, 84) #726854 srgb(114,104,84)
       146: (106,108,108) #6A6C6C srgb(106,108,108)
       147: ( 72, 58, 88) #483A58 srgb(72,58,88)
       148: (219,216, 66) #DBD842 srgb(219,216,66)
       149: ( 74, 95,129) #4A5F81 srgb(74,95,129)
       150: (179,183, 83) #B3B753 srgb(179,183,83)
       151: (153,161, 94) #99A15E srgb(153,161,94)
       152: (166,172, 89) #A6AC59 srgb(166,172,89)
       153: ( 52, 56,109) #34386D srgb(52,56,109)
       154: (103,116,116) #677474 srgb(103,116,116)
       155: (140,150,100) #8C9664 srgb(140,150,100)
       156: ( 60, 53, 90) #3C355A srgb(60,53,90)
       157: (197,176, 72) #C5B048 srgb(197,176,72)
       158: ( 28, 52,120) #1C3478 srgb(28,52,120)
       159: (113,128,112) #718070 srgb(113,128,112)
       160: (103,105,103) #676967 srgb(103,105,103)
       161: ( 90, 91, 92) #5A5B5C srgb(90,91,92)
       162: (172,174,177) #ACAEB1 srgb(172,174,177)
       163: ( 13, 17, 22) #0D1116 srgb(13,17,22)
       164: (251,229, 47) #FBE52F srgb(251,229,47)
       165: ( 87, 85, 87) #575557 srgb(87,85,87)
       166: (126,138,106) #7E8A6A srgb(126,138,106)
       167: ( 53, 36, 24) #352418 srgb(53,36,24)
       168: (136, 90, 30) #885A1E srgb(136,90,30)
       169: ( 60, 84,135) #3C5487 srgb(60,84,135)
       170: (121,123,123) #797B7B srgb(121,123,123)
       171: (151,106, 40) #976A28 srgb(151,106,40)
       172: ( 51, 50, 42) #33322A srgb(51,50,42)
       173: ( 78, 50, 23) #4E3217 srgb(78,50,23)
       174: (179,144, 43) #B3902B srgb(179,144,43)
       175: (106, 81, 27) #6A511B srgb(106,81,27)
       176: (152,151,151) #989797 srgb(152,151,151)
       177: ( 20, 11, 10) #140B0A srgb(20,11,10)
       178: (132, 91, 72) #845B48 srgb(132,91,72)
       179: (156, 99, 68) #9C6344 srgb(156,99,68)
       180: ( 57, 59, 60) #393B3C srgb(57,59,60)
       181: (125,127,129) #7D7F81 srgb(125,127,129)
       182: ( 35, 25, 19) #231913 srgb(35,25,19)
       183: (110, 95, 42) #6E5F2A srgb(110,95,42)
       184: (104, 86, 99) #685663 srgb(104,86,99)
       185: (134,136,137) #868889 srgb(134,136,137)
       186: (219,200, 67) #DBC843 srgb(219,200,67)
       187: (198,111, 68) #C66F44 srgb(198,111,68)
       188: (235,152, 55) #EB9837 srgb(235,152,55)
       189: (186,116, 80) #BA7450 srgb(186,116,80)
       190: (179,109, 51) #B36D33 srgb(179,109,51)
       191: (186,187,189) #BABBBD srgb(186,187,189)
       192: (221,118, 67) #DD7643 srgb(221,118,67)
       193: ( 30, 20, 13) #1E140D srgb(30,20,13)
       194: (232,129, 78) #E8814E srgb(232,129,78)
       195: ( 70, 41, 24) #462918 srgb(70,41,24)
       196: ( 65, 43, 31) #412B1F srgb(65,43,31)
       197: (110, 70, 49) #6E4631 srgb(110,70,49)
       198: (126, 80, 56) #7E5038 srgb(126,80,56)
       199: (247,152,104) #F79868 srgb(247,152,104)
       200: (247,149,100) #F79564 srgb(247,149,100)
       201: (247,152,103) #F79867 srgb(247,152,103)
       202: (201,125, 86) #C97D56 srgb(201,125,86)
       203: ( 95, 61, 43) #5F3D2B srgb(95,61,43)
       204: ( 51, 16, 13) #33100D srgb(51,16,13)
       205: (232,143, 98) #E88F62 srgb(232,143,98)
       206: (111, 58, 31) #6F3A1F srgb(111,58,31)
       207: (141, 89, 62) #8D593E srgb(141,89,62)
       208: ( 81, 52, 37) #513425 srgb(81,52,37)
       209: ( 38, 30, 34) #261E22 srgb(38,30,34)
       210: ( 24, 27, 27) #181B1B srgb(24,27,27)
       211: (174, 89, 46) #AE592E srgb(174,89,46)
       212: (227,124, 73) #E37C49 srgb(227,124,73)
       213: (141, 76, 42) #8D4C2A srgb(141,76,42)
       214: (243,140, 89) #F38C59 srgb(243,140,89)
       215: (213,109, 57) #D56D39 srgb(213,109,57)
       216: (119, 72, 42) #77482A srgb(119,72,42)
       217: (207,103, 51) #CF6733 srgb(207,103,51)
       218: (245,145, 94) #F5915E srgb(245,145,94)
       219: (209,105, 53) #D16935 srgb(209,105,53)
       220: (196,100, 51) #C46433 srgb(196,100,51)
       221: (237,134, 83) #ED8653 srgb(237,134,83)
       222: (214,215,216) #D6D7D8 srgb(214,215,216)
       223: (208,103, 52) #D06734 srgb(208,103,52)
       224: (192,126, 50) #C07E32 srgb(192,126,50)
       225: (217,113, 62) #D9713E srgb(217,113,62)
       226: (215,216,217) #D7D8D9 srgb(215,216,217)
       227: ( 75, 75, 75) #4B4B4B srgb(75,75,75)
       228: (164,166,169) #A4A6A9 srgb(164,166,169)
       229: (181,182,185) #B5B6B9 srgb(181,182,185)
       230: (197,198,201) #C5C6C9 srgb(197,198,201)
       231: ( 71, 74, 74) #474A4A srgb(71,74,74)
       232: (199,200,202) #C7C8CA srgb(199,200,202)
       233: (183,184,187) #B7B8BB srgb(183,184,187)
       234: (231,231,232) #E7E7E8 srgb(231,231,232)
       235: (170,171,173) #AAABAD srgb(170,171,173)
       236: (140,142,145) #8C8E91 srgb(140,142,145)
       237: (138,140,143) #8A8C8F srgb(138,140,143)
       238: (150,152,155) #96989B srgb(150,152,155)
       239: (148,150,153) #949699 srgb(148,150,153)
       240: (167,169,172) #A7A9AC srgb(167,169,172)
       241: (154,155,157) #9A9B9D srgb(154,155,157)
       242: (109, 16, 18) #6D1012 srgb(109,16,18)
       243: (121, 18, 20) #791214 srgb(121,18,20)
       244: (152, 26, 30) #981A1E srgb(152,26,30)
       245: (175, 25, 29) #AF191D srgb(175,25,29)
       246: ( 81, 13, 14) #510D0E srgb(81,13,14)
       247: (203, 30, 36) #CB1E24 srgb(203,30,36)
       248: (237, 31, 36) #ED1F24 srgb(237,31,36)
       249: (136, 22, 25) #881619 srgb(136,22,25)
       250: (100, 12, 13) #640C0D srgb(100,12,13)
       251: (211, 32, 39) #D32027 srgb(211,32,39)
       252: (189, 32, 37) #BD2025 srgb(189,32,37)
       253: (205, 32, 39) #CD2027 srgb(205,32,39)
       254: (175, 30, 35) #AF1E23 srgb(175,30,35)
       255: (195, 32, 38) #C32026 srgb(195,32,38)
  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: srgb(4,7,7)
  Border color: srgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 640x480+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: Zip
  Orientation: Undefined
  Properties:
    date:create: 2013-07-01T21:42:47-07:00
    date:modify: 2013-07-01T21:42:47-07:00
    png:bKGD: chunk was found (see Background color, above)
    png:cHRM: chunk was found (see Chromaticity, above)
    png:iCCP: chunk was found
    png:IHDR.bit-depth-orig: 8
    png:IHDR.bit_depth: 8
    png:IHDR.color-type-orig: 3
    png:IHDR.color_type: 3 (Indexed)
    png:IHDR.interlace_method: 0 (Not interlaced)
    png:IHDR.width,height: 640, 480
    png:PLTE.number_colors: 256
    png:text: 2 tEXt/zTXt/iTXt chunks were found
    signature: 5c701306a9a985a0c93c8d11a1e761d7f8637577697fc60d7189b221388f8edf
  Profiles:
    Profile-icc: 6876 bytes
      Description: sRGB built-in
      Manufacturer: (lcms internal)
      Model: sRGB built-in
      Copyright: sRGB built-in
  Artifacts:
    filename: logo_srgb.png
    verbose: true
  Tainted: False
  Filesize: 29.8KB
  Number pixels: 307K
  Pixels per second: 30.72MB
  User time: 0.000u
  Elapsed time: 0:01.009
  Version: ImageMagick 6.8.6-3 2013-06-28 Q16 http://www.imagemagick.org
Near the bottom you will see a Profiles section that shows

Profile-icc: 6876 bytes

You can find whether there is a profile of icc or icm by simply

icc=`identify -verbose logo_srgb.png | grep -i "profile-icc"`
icm=`identify -verbose logo_srgb.png | grep -i "profile-icm"`

Then test and do the appropriate convert. Here is test if both icc and icm are empty, meaning the grep did not match. Note the -i in the grep for case insensitive.

if [ "$icc" = "" -a "$icm" = "" ]; then
# no profiles
convert ....
else
# has profile
convert ...
fi
briandenks
Posts: 29
Joined: 2013-06-19T01:35:25-07:00
Authentication code: 6789

Re: PSD Conversion

Post by briandenks »

Thanks fmw42, this is really eye opening, does IM have an area you can call scripts or assign actions to like the -verbose command or the -convert or any commands .. like an area i can call a script and then assign an 'alias' same as you would in bash ... that way i could keep my code a one liner :

convert rgb.jpg -verbose -SCRIPT(alias?) +profile *.ic* -profile "path/to/sRGB.icc" -profile "path/to/cmyk.icc" -sampling-factor 1x1 -quality 95 -compress JPEG
briandenks
Posts: 29
Joined: 2013-06-19T01:35:25-07:00
Authentication code: 6789

Re: PSD Conversion

Post by briandenks »

Is there absolutely no way for -convert - resize -thumbnail et all just to respect an icc profile if one is inside the PSD ? and its colorspace is already declared in the file ?
why must i declare -colorspace sRGB or -colorspace -RGB or -colorspace CMYK
If i removed -colorspace from any of my commands would it respect what it finds ?
i know colorists everywhere are shaking their fists at my lack of knowledge, i dont mean to offend anyone.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PSD Conversion

Post by fmw42 »

If you truely have a profile (icc or icm) IM should respect that profile when resizing. If it does not work, the I would report that as a bug and see what they say.

I took a png image with an sRGB.icc profile and resized it in 6.8.6.3 and the resulting smaller image had the same profile in it. So that seems to work for me.

I did not test with a PSD file.

Can you post a link to the PSD file for others to review and test?
briandenks
Posts: 29
Joined: 2013-06-19T01:35:25-07:00
Authentication code: 6789

Re: PSD Conversion

Post by briandenks »

Hi Fred,

Sorry i havnt posted back, ive been scouring the web to try and find what i need to accomplish the task.
I found it on these very boards, a post by albert25 <link>viewtopic.php?f=1&t=16464&p=60694&hilit ... 60694<link> with a script that is very similar to my issue ... untagged (non profiled) CMYK psd / images being presented along with RGB PSD/images being presented and not being able to determine between the two ... The script looks to do what we need but im unsure if i can call it through IM ? and if so would you know how i could call the script using IM ? We're running IM inside a Coldfusion web app so would rather not be changing the code ..
Our current code is
(We flatten any PSD on import)
for DPI : -resample -strip -profile /usr/share/USWebCoatedSWOP.icc
For PPI -resize -strip -profile /usr/share/USWebCoatedSWOP.icc

and its color output its very OFF with an RGB image input ... im guessing this is due to us only catering for CMYK ( 80% of our images are cmyk) and IM not being able to determine what to do with ( assumes non linear RGB as default ? )

Basically we want to be able to send any PSD / Image with no profile (untagged) to IM be it CMYK or RGB and have it convert to the right color space ( not double up profiles making things either darker or lighter) currently everything is getting converted to RGB and when you bring that back into PSHOP first thing it does is whinge about having an incorrect .icc profile assigned ( we corrected this be adding the USWebCoatedSWOP.icc profile above) cmyk png isnt good for web browsers or anythign so how to convert without color gain or loss from cmyk psd to jpg png or bitmap correctly with little color change...
tiff and original are completely fine ...

Bill
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PSD Conversion

Post by fmw42 »

I am not sure I follow what you need to do. First PNG does not support CMYK. I am not sure if you can attach a cmyk profile to it. If you input image has no profile, then the IM colorspace tag is the only way to know. But if there is no input image profile, any profile that you add may change the coloration. Second PS has dot gain control and IM knows nothing about that. The Color Settings panel will show you how you have PS set to accept or reject the incoming profile. If not set properly it will try to add Adobe RGB profile.

Can you explain what formats you want to convert your PSD image to? JPG and TIFF should not have a problem with CMYK. Are all images to be converted to CMYK or do you want IM to detect what colorspace and/or profile you have in the PSD file? How are you going to decide whether the output should be CMYK or sRGB or RGB? There are lots of choices with respect the either sRGB or RGB or CMYK profiles. Each may give slightly different results.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: PSD Conversion

Post by snibgo »

briandenks wrote:The script looks to do what we need but im unsure if i can call it through IM ? and if so would you know how i could call the script using IM ?
Scripts call IM programs such as convert. IM programs don't call scripts.

If I understand you, you take a PSD image (which might have CMYK or RGB channels), strip any profiles, then use IM to assign a CMYK profile. Why? What do you hope this does? If this gives bad colours and confuses Photoshop, I'm not surprised.

I'm unclear what you are trying to do. Perhaps you are trying to take a PSD file, which might have CMYK or RGB channels, with or without a profile, and convert to a common format, eg CMYK JPG with no profile. Is that right?

If so: I wouldn't use JPG because (a) IM has recently had problems embedding profiles in JPG and (b) JPG is 8-bit with lossy compression. Instead, I would use TIFF.
snibgo's IM pages: im.snibgo.com
briandenks
Posts: 29
Joined: 2013-06-19T01:35:25-07:00
Authentication code: 6789

Re: PSD Conversion

Post by briandenks »

Thanks guys, appreciate your time to respond.
Im trying to be able to feed either a n RGB or CMYK PSD file into IM ( with no profiles assigned) and have IM output to png,gif,tif,jpg,bmp.
I really dont give a hoot about profile or color space as long as the converted / resized image in png gif tif jpg bmp has the same color! Ive been working around this by adding an icc profile on convert and resize and resample. I want to be able to view the resized image without crazy color being added across the outputted formats.
Our files are mainly CMYK PSD ( a few might be RGB PSD) currently IM cannot tell which is which and just converts to either a much brighter colour ( eg cmyk png )
I dont mind converting from CMYK to rgb or sRGB its just the color is off / OR my script is just wrong and my inexperience is right.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PSD Conversion

Post by fmw42 »

IM should be able to detect the colorspace of the input psd

convert image -format "%[colorspace]" info:

test that on your images and let us know.

But note that if there are no profiles added to the result, then PNG will certainly not support CMYK and my not support an added CMYK profile. I am not sure. I do not know what BMP supports or if it supports profiles.

IM processing does not work well on CMYK. So you would be best to convert CMYK to sRGB before doing any processing. But for best color results you would need to use profiles.

If there is a CMYK profile with the input, then you can detect that profile or any other by processing the verbose information from the IM

identify -verbose image


That can automated in Unix. I do not know about Windows. User snibgo could give you more information about Windows.


If you provide a link to an example PSD file, we can give you more detailed commands

Also provide your IM version and platform.
briandenks
Posts: 29
Joined: 2013-06-19T01:35:25-07:00
Authentication code: 6789

Re: PSD Conversion

Post by briandenks »

Platform Ubuntu 12.04 LTS server (linux 3.2.0-48-generic server)
IM : 6.6.9

Im happy to convert the cmyk PSD to sRGB but as i say were providing non profile cmyk psd and if we add a -profile cmyk.icc and then another -profile sRGB.icc what happens when an RGB.PSD is sent ( no profile) does it double up giving hideous colour on convert to png tif gif jpg bmap ? tbh bmap + gif im not fussed about at all, the main ones for us are being able to have transparent png + color matched jpg ( tif has less compression and so is less useable for us in terms of file size)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PSD Conversion

Post by fmw42 »

P.S. this is getting confusing as you have two open threads about this topic. I just responded to your other thread, which was appended to someone else's original thread. It would be best to continue with just this one new thread. Please reply to the other thread posts here and stop using the other thread.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PSD Conversion

Post by fmw42 »

Lets say you have a PSD file that you believe has no profile but is CMYK. What do you get for the colorspace when doing

identify -verbose image.psd

Can you post the full information returned from that command on one of your images and enclose it with Code button above to make it easier to read and scroll.
Last edited by fmw42 on 2013-07-15T20:02:50-07:00, edited 1 time in total.
briandenks
Posts: 29
Joined: 2013-06-19T01:35:25-07:00
Authentication code: 6789

Re: PSD Conversion

Post by briandenks »

Agreed, sorry for the double up :
Just for clarity ill post your last response here and answer
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FMW2 :
The PNG issue is likely like I said. It does not support CMYK. JPG should work fine, but there have been problem in IM and viewers differ when viewing CMYK jpg.

That is why I asked what version of IM you are using and what platform.

You should be able to download any image from the web and convert it to PSD using Photoshop. Then remove any profile and send back a link to it. You can post the image on any free image hosting service and just post a link here to it.

If you do not have PS then let me know and I can post one or just process it.

You appear to be adding USWebCoatedSwop CMYK profile to your results when you have a CMYK input. Is that correct? What do you do with an RGB PSD? Do you convert that also by adding a CMYK profile?

Please clarify what you do for each input PSD format. In what colorspace are you resizing? I would be concerned it you process in CMYK colorspace and get good results.


------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PSD Conversion

Post by fmw42 »

Lets say you have a PSD file that you believe has no profile but is CMYK. What do you get for the colorspace when doing

identify -verbose image.psd

Can you post the full information returned from that command on one of your images and enclose it with Code button above to make it easier to read and scroll.

Where do you remove any profile or how do you create a CMYK image in PS with no profile
Last edited by fmw42 on 2013-07-15T20:09:55-07:00, edited 1 time in total.
Post Reply