Hello.
I have a problem converting .eps files to .psd files, and that is the the resulting image is way to big.
For example: test.eps is 2,60 MB. After running running convert test.eps test.psd i will have a test.psd that is 163 MB!
Then i open the image in Gimp and just saves it again, witch will result in a test.psd that is 1,97 MB
What can cause IM to produces such a big file out of nothing?
PSD files are unreasonable big
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: PSD files are unreasonable big
try using the density to set the resolution of the eps.
convert -density 72 test.eps test.psd
convert -density 72 test.eps test.psd
Re: PSD files are unreasonable big
Same result.
As mentioned, the fun thing is that after you open the file with any other editor and resave it, its shrinks back to the right size...
I did some more testing with the resulting file. convert test.psd test.jpeg made IM crash with:
If I remember correctly c0000005 is access violation, aka buffer overflow.
Maybe I should post this in the bug forum instead?
As mentioned, the fun thing is that after you open the file with any other editor and resave it, its shrinks back to the right size...
I did some more testing with the resulting file. convert test.psd test.jpeg made IM crash with:
Code: Select all
Problem Event Name: APPCRASH
Application Name: convert.exe
Application Version: 5.0.0.0
Application Timestamp: 4f2ed098
Fault Module Name: IM_MOD_RL_PSD_.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4f2ece03
Exception Code: c0000005
Exception Offset: 0000000000001f35
OS Version: 6.0.6002.2.2.0.16.7
Locale ID: 1053
Additional Information 1: 9e6e
Additional Information 2: 1f6d903c6a7939218485ac6c7f2915a7
Additional Information 3: 10e8
Additional Information 4: cec5dc4d527f36621178a73ccfa41f9d
Maybe I should post this in the bug forum instead?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: PSD files are unreasonable big
Perhaps you should post your input image so others can test.
Note PS can use background transparency to save space and your eps may be using something like that. But IM probably converts that to alpha transparency, so you get an extra channel the same size as your image, which will cause the image to be bigger.
Note PS can use background transparency to save space and your eps may be using something like that. But IM probably converts that to alpha transparency, so you get an extra channel the same size as your image, which will cause the image to be bigger.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: PSD files are unreasonable big
Your eps file is bigger than you think in its geometry. So when converted it has a lot of white area.
Image: 1test.eps
Format: PS (PostScript)
Class: DirectClass
Geometry: 10200x13200+0+0
Base geometry: 5068x4222
Resolution: 1200x1200
Print size: 8.5x11
Units: Undefined
Type: Bilevel
Try trimming the white area with -trim
convert -density 72 test.eps -alpha off -trim +repage -depth 8 -type bilevel test.psd
This makes a file that is 19.8 Mbytes.
If you want a border of white around it, then you can add one by
convert -density 72 test.eps -alpha off -trim +repage -bordercolor white -border 10 -depth 8 -type bilevel test.psd
Image: 1test.eps
Format: PS (PostScript)
Class: DirectClass
Geometry: 10200x13200+0+0
Base geometry: 5068x4222
Resolution: 1200x1200
Print size: 8.5x11
Units: Undefined
Type: Bilevel
Try trimming the white area with -trim
convert -density 72 test.eps -alpha off -trim +repage -depth 8 -type bilevel test.psd
This makes a file that is 19.8 Mbytes.
If you want a border of white around it, then you can add one by
convert -density 72 test.eps -alpha off -trim +repage -bordercolor white -border 10 -depth 8 -type bilevel test.psd
Re: PSD files are unreasonable big
That's not what i get
IM 6.7.5 Q16
GS 9.04
EDIT: Also, running identify -verbose test.psd crashes identify.exe...
Code: Select all
identify -verbose test.eps
Image: test.eps
Format: PS (PostScript)
Class: DirectClass
Geometry: 5068x4222+0+0
Resolution: 1200x1200
Print size: 4.22333x3.51833
Units: Undefined
Type: Bilevel
Base type: Bilevel
Endianess: Undefined
Colorspace: RGB
Depth: 16/1-bit
Channel depth:
gray: 1-bit
alpha: 1-bit
Channel statistics:
Gray:
min: 0 (0)
max: 65535 (1)
mean: 60804.4 (0.927816)
standard deviation: 16960 (0.258793)
kurtosis: 8.93122
skewness: -3.30624
Alpha:
min: 0 (0)
max: 65535 (1)
mean: 4730.6 (0.0721843)
standard deviation: 16960 (0.258793)
kurtosis: 8.93122
skewness: -3.30624
Alpha: rgba(255,255,255,0) #FFFFFFFFFFFF0000
Colors: 2
Histogram:
1544535: ( 0, 0, 0,65535) #000000000000 black
19852561: (65535,65535,65535, 0) #FFFFFFFFFFFF0000 rgba(255,255,255,0)
Rendering intent: Undefined
Interlace: None
Background color: white
Border color: rgba(223,223,223,1)
Matte color: grey74
Transparent color: none
Compose: Over
Page geometry: 5068x4222+0+0
Dispose: Undefined
Iterations: 0
Compression: Undefined
Orientation: Undefined
Properties:
date:create: 2012-02-25T17:30:00+01:00
date:modify: 2012-02-25T17:30:02+01:00
ps:HiResBoundingBox: 304.08x253.32+0+0
ps:Level: Adobe-3.0 EPSF-3.0
signature: 525f63e401b3b537381c6f4b15b9c955bb263501837656fd1271bb7ccc0fa04b
xapMM:DocumentID: adobe:docid:photoshop:445aa779-a427-11d8-923a-e155762b55cd
Profiles:
Profile-8bim: 22958 bytes
Profile-exif: 294 bytes
Profile-xmp: 4648 bytes
Artifacts:
verbose: true
Tainted: False
Filesize: 139KB
Number pixels: 21.4M
Pixels per second: 13.46MB
User time: 1.531u
Elapsed time: 0:02.590
Version: ImageMagick 6.7.5-2 2012-02-05 Q16 http://www.imagemagick.org
GS 9.04
EDIT: Also, running identify -verbose test.psd crashes identify.exe...
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: PSD files are unreasonable big
IM am now running IM 6.7.5.7 Q16 Mac OSX Snow Leopard. Using identify -verbose on your downloaded image, I still get
Image: test.eps
Format: PS (PostScript)
Class: DirectClass
Geometry: 10200x13200+0+0
Base geometry: 5068x4222
Resolution: 1200x1200
Print size: 8.5x11
Units: Undefined
Type: Bilevel
Base type: Bilevel
So perhaps your image got changed upon upload. Try downloading it and testing it.
Then if I convert it without the trim, I see the image in the bottom area with a lot of white area above it. So with the trim:
convert -density 72 test.eps -alpha off -trim +repage -depth 8 -type bilevel test.psd
test.psd opens fine in my PS CS and displays fine in IM
No crash!
Image: test.eps
Format: PS (PostScript)
Class: DirectClass
Geometry: 10200x13200+0+0
Base geometry: 5068x4222
Resolution: 1200x1200
Print size: 8.5x11
Units: Undefined
Type: Bilevel
Base type: Bilevel
So perhaps your image got changed upon upload. Try downloading it and testing it.
Then if I convert it without the trim, I see the image in the bottom area with a lot of white area above it. So with the trim:
convert -density 72 test.eps -alpha off -trim +repage -depth 8 -type bilevel test.psd
test.psd opens fine in my PS CS and displays fine in IM
Code: Select all
identify -verbose test.psd
Image: test.psd
Format: PSD (Adobe Photoshop bitmap)
Class: PseudoClass
Geometry: 4862x4063+0+0
Resolution: 72x72
Print size: 67.5278x56.4306
Units: Undefined
Type: Bilevel
Base type: Bilevel
Endianess: Undefined
Colorspace: Gray
Depth: 8-bit
Channel depth:
gray: 1-bit
Channel statistics:
Gray:
min: 0 (0)
max: 255 (1)
mean: 235.062 (0.921813)
standard deviation: 68.4588 (0.268466)
kurtosis: 7.87463
skewness: -3.14239
Colors: 2
Histogram:
1544535: ( 0, 0, 0) #000000 black
18209771: (255,255,255) #FFFFFF white
Colormap: 256
0: ( 0, 0, 0) #000000 black
1: ( 1, 1, 1) #010101 gray(1,1,1)
2: ( 2, 2, 2) #020202 gray(2,2,2)
3: ( 3, 3, 3) #030303 grey1
4: ( 4, 4, 4) #040404 gray(4,4,4)
5: ( 5, 5, 5) #050505 grey2
6: ( 6, 6, 6) #060606 gray(6,6,6)
7: ( 7, 7, 7) #070707 gray(7,7,7)
8: ( 8, 8, 8) #080808 grey3
9: ( 9, 9, 9) #090909 gray(9,9,9)
10: ( 10, 10, 10) #0A0A0A grey4
11: ( 11, 11, 11) #0B0B0B gray(11,11,11)
12: ( 12, 12, 12) #0C0C0C gray(12,12,12)
13: ( 13, 13, 13) #0D0D0D grey5
14: ( 14, 14, 14) #0E0E0E gray(14,14,14)
15: ( 15, 15, 15) #0F0F0F grey6
16: ( 16, 16, 16) #101010 gray(16,16,16)
17: ( 17, 17, 17) #111111 gray(17,17,17)
18: ( 18, 18, 18) #121212 grey7
19: ( 19, 19, 19) #131313 gray(19,19,19)
20: ( 20, 20, 20) #141414 grey8
21: ( 21, 21, 21) #151515 gray(21,21,21)
22: ( 22, 22, 22) #161616 gray(22,22,22)
23: ( 23, 23, 23) #171717 grey9
24: ( 24, 24, 24) #181818 gray(24,24,24)
25: ( 25, 25, 25) #191919 gray(25,25,25)
26: ( 26, 26, 26) #1A1A1A grey10
27: ( 27, 27, 27) #1B1B1B gray(27,27,27)
28: ( 28, 28, 28) #1C1C1C grey11
29: ( 29, 29, 29) #1D1D1D gray(29,29,29)
30: ( 30, 30, 30) #1E1E1E gray(30,30,30)
31: ( 31, 31, 31) #1F1F1F grey12
32: ( 32, 32, 32) #202020 gray(32,32,32)
33: ( 33, 33, 33) #212121 grey13
34: ( 34, 34, 34) #222222 gray(34,34,34)
35: ( 35, 35, 35) #232323 gray(35,35,35)
36: ( 36, 36, 36) #242424 grey14
37: ( 37, 37, 37) #252525 gray(37,37,37)
38: ( 38, 38, 38) #262626 grey15
39: ( 39, 39, 39) #272727 gray(39,39,39)
40: ( 40, 40, 40) #282828 gray(40,40,40)
41: ( 41, 41, 41) #292929 grey16
42: ( 42, 42, 42) #2A2A2A gray(42,42,42)
43: ( 43, 43, 43) #2B2B2B grey17
44: ( 44, 44, 44) #2C2C2C gray(44,44,44)
45: ( 45, 45, 45) #2D2D2D gray(45,45,45)
46: ( 46, 46, 46) #2E2E2E grey18
47: ( 47, 47, 47) #2F2F2F gray(47,47,47)
48: ( 48, 48, 48) #303030 grey19
49: ( 49, 49, 49) #313131 gray(49,49,49)
50: ( 50, 50, 50) #323232 gray(50,50,50)
51: ( 51, 51, 51) #333333 grey20
52: ( 52, 52, 52) #343434 gray(52,52,52)
53: ( 53, 53, 53) #353535 gray(53,53,53)
54: ( 54, 54, 54) #363636 grey21
55: ( 55, 55, 55) #373737 gray(55,55,55)
56: ( 56, 56, 56) #383838 grey22
57: ( 57, 57, 57) #393939 gray(57,57,57)
58: ( 58, 58, 58) #3A3A3A gray(58,58,58)
59: ( 59, 59, 59) #3B3B3B grey23
60: ( 60, 60, 60) #3C3C3C gray(60,60,60)
61: ( 61, 61, 61) #3D3D3D grey24
62: ( 62, 62, 62) #3E3E3E gray(62,62,62)
63: ( 63, 63, 63) #3F3F3F gray(63,63,63)
64: ( 64, 64, 64) #404040 grey25
65: ( 65, 65, 65) #414141 gray(65,65,65)
66: ( 66, 66, 66) #424242 grey26
67: ( 67, 67, 67) #434343 gray(67,67,67)
68: ( 68, 68, 68) #444444 gray(68,68,68)
69: ( 69, 69, 69) #454545 grey27
70: ( 70, 70, 70) #464646 gray(70,70,70)
71: ( 71, 71, 71) #474747 grey28
72: ( 72, 72, 72) #484848 gray(72,72,72)
73: ( 73, 73, 73) #494949 gray(73,73,73)
74: ( 74, 74, 74) #4A4A4A grey29
75: ( 75, 75, 75) #4B4B4B gray(75,75,75)
76: ( 76, 76, 76) #4C4C4C gray(76,76,76)
77: ( 77, 77, 77) #4D4D4D grey30
78: ( 78, 78, 78) #4E4E4E gray(78,78,78)
79: ( 79, 79, 79) #4F4F4F grey31
80: ( 80, 80, 80) #505050 gray(80,80,80)
81: ( 81, 81, 81) #515151 gray(81,81,81)
82: ( 82, 82, 82) #525252 grey32
83: ( 83, 83, 83) #535353 gray(83,83,83)
84: ( 84, 84, 84) #545454 grey33
85: ( 85, 85, 85) #555555 gray(85,85,85)
86: ( 86, 86, 86) #565656 gray(86,86,86)
87: ( 87, 87, 87) #575757 grey34
88: ( 88, 88, 88) #585858 gray(88,88,88)
89: ( 89, 89, 89) #595959 grey35
90: ( 90, 90, 90) #5A5A5A gray(90,90,90)
91: ( 91, 91, 91) #5B5B5B gray(91,91,91)
92: ( 92, 92, 92) #5C5C5C grey36
93: ( 93, 93, 93) #5D5D5D gray(93,93,93)
94: ( 94, 94, 94) #5E5E5E grey37
95: ( 95, 95, 95) #5F5F5F gray(95,95,95)
96: ( 96, 96, 96) #606060 gray(96,96,96)
97: ( 97, 97, 97) #616161 grey38
98: ( 98, 98, 98) #626262 gray(98,98,98)
99: ( 99, 99, 99) #636363 grey39
100: (100,100,100) #646464 gray(100,100,100)
101: (101,101,101) #656565 gray(101,101,101)
102: (102,102,102) #666666 grey40
103: (103,103,103) #676767 gray(103,103,103)
104: (104,104,104) #686868 gray(104,104,104)
105: (105,105,105) #696969 DimGray
106: (106,106,106) #6A6A6A gray(106,106,106)
107: (107,107,107) #6B6B6B grey42
108: (108,108,108) #6C6C6C gray(108,108,108)
109: (109,109,109) #6D6D6D gray(109,109,109)
110: (110,110,110) #6E6E6E grey43
111: (111,111,111) #6F6F6F gray(111,111,111)
112: (112,112,112) #707070 grey44
113: (113,113,113) #717171 gray(113,113,113)
114: (114,114,114) #727272 gray(114,114,114)
115: (115,115,115) #737373 grey45
116: (116,116,116) #747474 gray(116,116,116)
117: (117,117,117) #757575 grey46
118: (118,118,118) #767676 gray(118,118,118)
119: (119,119,119) #777777 gray(119,119,119)
120: (120,120,120) #787878 grey47
121: (121,121,121) #797979 gray(121,121,121)
122: (122,122,122) #7A7A7A grey48
123: (123,123,123) #7B7B7B gray(123,123,123)
124: (124,124,124) #7C7C7C gray(124,124,124)
125: (125,125,125) #7D7D7D grey49
126: (126,126,126) #7E7E7E gray
127: (127,127,127) #7F7F7F grey50
128: (128,128,128) #808080 fractal
129: (129,129,129) #818181 gray(129,129,129)
130: (130,130,130) #828282 grey51
131: (131,131,131) #838383 gray(131,131,131)
132: (132,132,132) #848484 gray(132,132,132)
133: (133,133,133) #858585 grey52
134: (134,134,134) #868686 gray(134,134,134)
135: (135,135,135) #878787 grey53
136: (136,136,136) #888888 gray(136,136,136)
137: (137,137,137) #898989 gray(137,137,137)
138: (138,138,138) #8A8A8A grey54
139: (139,139,139) #8B8B8B gray(139,139,139)
140: (140,140,140) #8C8C8C grey55
141: (141,141,141) #8D8D8D gray(141,141,141)
142: (142,142,142) #8E8E8E gray(142,142,142)
143: (143,143,143) #8F8F8F grey56
144: (144,144,144) #909090 gray(144,144,144)
145: (145,145,145) #919191 grey57
146: (146,146,146) #929292 gray(146,146,146)
147: (147,147,147) #939393 gray(147,147,147)
148: (148,148,148) #949494 grey58
149: (149,149,149) #959595 gray(149,149,149)
150: (150,150,150) #969696 grey59
151: (151,151,151) #979797 gray(151,151,151)
152: (152,152,152) #989898 gray(152,152,152)
153: (153,153,153) #999999 grey60
154: (154,154,154) #9A9A9A gray(154,154,154)
155: (155,155,155) #9B9B9B gray(155,155,155)
156: (156,156,156) #9C9C9C grey61
157: (157,157,157) #9D9D9D gray(157,157,157)
158: (158,158,158) #9E9E9E grey62
159: (159,159,159) #9F9F9F gray(159,159,159)
160: (160,160,160) #A0A0A0 gray(160,160,160)
161: (161,161,161) #A1A1A1 grey63
162: (162,162,162) #A2A2A2 gray(162,162,162)
163: (163,163,163) #A3A3A3 grey64
164: (164,164,164) #A4A4A4 gray(164,164,164)
165: (165,165,165) #A5A5A5 gray(165,165,165)
166: (166,166,166) #A6A6A6 grey65
167: (167,167,167) #A7A7A7 gray(167,167,167)
168: (168,168,168) #A8A8A8 grey66
169: (169,169,169) #A9A9A9 DarkGray
170: (170,170,170) #AAAAAA gray(170,170,170)
171: (171,171,171) #ABABAB grey67
172: (172,172,172) #ACACAC gray(172,172,172)
173: (173,173,173) #ADADAD grey68
174: (174,174,174) #AEAEAE gray(174,174,174)
175: (175,175,175) #AFAFAF gray(175,175,175)
176: (176,176,176) #B0B0B0 grey69
177: (177,177,177) #B1B1B1 gray(177,177,177)
178: (178,178,178) #B2B2B2 gray(178,178,178)
179: (179,179,179) #B3B3B3 grey70
180: (180,180,180) #B4B4B4 gray(180,180,180)
181: (181,181,181) #B5B5B5 grey71
182: (182,182,182) #B6B6B6 gray(182,182,182)
183: (183,183,183) #B7B7B7 gray(183,183,183)
184: (184,184,184) #B8B8B8 grey72
185: (185,185,185) #B9B9B9 gray(185,185,185)
186: (186,186,186) #BABABA grey73
187: (187,187,187) #BBBBBB gray(187,187,187)
188: (188,188,188) #BCBCBC gray(188,188,188)
189: (189,189,189) #BDBDBD grey74
190: (190,190,190) #BEBEBE grey
191: (191,191,191) #BFBFBF grey75
192: (192,192,192) #C0C0C0 silver
193: (193,193,193) #C1C1C1 gray(193,193,193)
194: (194,194,194) #C2C2C2 grey76
195: (195,195,195) #C3C3C3 gray(195,195,195)
196: (196,196,196) #C4C4C4 grey77
197: (197,197,197) #C5C5C5 gray(197,197,197)
198: (198,198,198) #C6C6C6 gray(198,198,198)
199: (199,199,199) #C7C7C7 grey78
200: (200,200,200) #C8C8C8 gray(200,200,200)
201: (201,201,201) #C9C9C9 grey79
202: (202,202,202) #CACACA gray(202,202,202)
203: (203,203,203) #CBCBCB gray(203,203,203)
204: (204,204,204) #CCCCCC grey80
205: (205,205,205) #CDCDCD gray(205,205,205)
206: (206,206,206) #CECECE gray(206,206,206)
207: (207,207,207) #CFCFCF grey81
208: (208,208,208) #D0D0D0 gray(208,208,208)
209: (209,209,209) #D1D1D1 grey82
210: (210,210,210) #D2D2D2 gray(210,210,210)
211: (211,211,211) #D3D3D3 LightGray
212: (212,212,212) #D4D4D4 grey83
213: (213,213,213) #D5D5D5 gray(213,213,213)
214: (214,214,214) #D6D6D6 grey84
215: (215,215,215) #D7D7D7 gray(215,215,215)
216: (216,216,216) #D8D8D8 gray(216,216,216)
217: (217,217,217) #D9D9D9 grey85
218: (218,218,218) #DADADA gray(218,218,218)
219: (219,219,219) #DBDBDB grey86
220: (220,220,220) #DCDCDC gainsboro
221: (221,221,221) #DDDDDD gray(221,221,221)
222: (222,222,222) #DEDEDE grey87
223: (223,223,223) #DFDFDF gray(223,223,223)
224: (224,224,224) #E0E0E0 grey88
225: (225,225,225) #E1E1E1 gray(225,225,225)
226: (226,226,226) #E2E2E2 gray(226,226,226)
227: (227,227,227) #E3E3E3 grey89
228: (228,228,228) #E4E4E4 gray(228,228,228)
229: (229,229,229) #E5E5E5 grey90
230: (230,230,230) #E6E6E6 gray(230,230,230)
231: (231,231,231) #E7E7E7 gray(231,231,231)
232: (232,232,232) #E8E8E8 grey91
233: (233,233,233) #E9E9E9 gray(233,233,233)
234: (234,234,234) #EAEAEA gray(234,234,234)
235: (235,235,235) #EBEBEB grey92
236: (236,236,236) #ECECEC gray(236,236,236)
237: (237,237,237) #EDEDED grey93
238: (238,238,238) #EEEEEE gray(238,238,238)
239: (239,239,239) #EFEFEF gray(239,239,239)
240: (240,240,240) #F0F0F0 grey94
241: (241,241,241) #F1F1F1 gray(241,241,241)
242: (242,242,242) #F2F2F2 grey95
243: (243,243,243) #F3F3F3 gray(243,243,243)
244: (244,244,244) #F4F4F4 gray(244,244,244)
245: (245,245,245) #F5F5F5 grey96
246: (246,246,246) #F6F6F6 gray(246,246,246)
247: (247,247,247) #F7F7F7 grey97
248: (248,248,248) #F8F8F8 gray(248,248,248)
249: (249,249,249) #F9F9F9 gray(249,249,249)
250: (250,250,250) #FAFAFA grey98
251: (251,251,251) #FBFBFB gray(251,251,251)
252: (252,252,252) #FCFCFC grey99
253: (253,253,253) #FDFDFD gray(253,253,253)
254: (254,254,254) #FEFEFE gray(254,254,254)
255: (255,255,255) #FFFFFF white
Rendering intent: Perceptual
Gamma: 0.45455
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Interlace: None
Background color: white
Border color: gray(223,223,223)
Matte color: grey74
Transparent color: black
Compose: Over
Page geometry: 4862x4063+0+0
Dispose: Undefined
Iterations: 0
Compression: None
Orientation: Undefined
Properties:
date:create: 2012-02-25T10:43:51-08:00
date:modify: 2012-02-25T10:43:51-08:00
signature: 026cd72873590bf146dfc86140fb130dc27c401b681612c62c99c5901705df99
tiff:XResolution: 72
tiff:YResolution: 72
Profiles:
Profile-8bim: 22958 bytes
Profile-exif: 294 bytes
Artifacts:
verbose: true
Tainted: False
Filesize: 19.78MB
Number pixels: 19.75M
Pixels per second: 22.2MB
User time: 0.890u
Elapsed time: 0:01.890
Version: ImageMagick 6.7.5-7 2012-02-25 Q16 http://www.imagemagick.org