@@ -35,45 +35,45 @@ add_format(format"WPG", UInt8[0xff,0x57,0x50,0x43], ".wpg",
35
35
add_format (format " Imagine" , " IMAGINE" , " .imagine" , [:ImagineFormat ])
36
36
37
37
add_format (
38
- format " TGA" ,
38
+ format " TGA" ,
39
39
(),
40
- " .tga" ,
41
- [:OSXNativeIO , LOAD, OSX],
40
+ " .tga" ,
41
+ [:OSXNativeIO , LOAD, OSX],
42
42
[:ImageMagick ]
43
43
)
44
44
add_format (
45
- format " GIF" ,
45
+ format " GIF" ,
46
46
UInt8[0x47 ,0x49 ,0x46 ,0x38 ],
47
- " .gif" ,
48
- [:OSXNativeIO , LOAD, OSX],
47
+ " .gif" ,
48
+ [:OSXNativeIO , LOAD, OSX],
49
49
[:ImageMagick ]
50
50
)
51
51
add_format (
52
- format " PNG" ,
53
- UInt8[0x89 ,0x50 ,0x4e ,0x47 ,0x0d ,0x0a ,0x1a ,0x0a ],
54
- " .png" ,
55
- [:OSXNativeIO , LOAD, OSX],
52
+ format " PNG" ,
53
+ UInt8[0x89 ,0x50 ,0x4e ,0x47 ,0x0d ,0x0a ,0x1a ,0x0a ],
54
+ " .png" ,
55
+ [:OSXNativeIO , LOAD, OSX],
56
56
[:ImageMagick ]
57
57
)
58
58
add_format (
59
- format " TIFF" ,
60
- (UInt8[0x4d ,0x4d ,0x00 ,0x2a ], UInt8[0x4d ,0x4d ,0x00 ,0x2b ], UInt8[0x49 ,0x49 ,0x2a ,0x00 ]),
61
- [" .tiff" , " .tif" ],
62
- [:OSXNativeIO , LOAD, OSX],
59
+ format " TIFF" ,
60
+ (UInt8[0x4d ,0x4d ,0x00 ,0x2a ], UInt8[0x4d ,0x4d ,0x00 ,0x2b ], UInt8[0x49 ,0x49 ,0x2a ,0x00 ]),
61
+ [" .tiff" , " .tif" ],
62
+ [:OSXNativeIO , LOAD, OSX],
63
63
[:ImageMagick ]
64
64
)
65
65
add_format (
66
- format " JPEG" ,
66
+ format " JPEG" ,
67
67
UInt8[0xff ,0xd8 ,0xff ],
68
- [" .jpeg" , " .jpg" , " .JPG" ],
69
- [:OSXNativeIO , LOAD, OSX],
68
+ [" .jpeg" , " .jpg" , " .JPG" ],
69
+ [:OSXNativeIO , LOAD, OSX],
70
70
[:ImageMagick ]
71
71
) # 0xe1
72
72
add_format (
73
- format " BMP" ,
73
+ format " BMP" ,
74
74
UInt8[0x42 ,0x4d ],
75
75
" .bmp" ,
76
- [:OSXNativeIO , LOAD, OSX],
76
+ [:OSXNativeIO , LOAD, OSX],
77
77
[:ImageMagick ]
78
78
)
79
79
@@ -147,7 +147,7 @@ function detect_stlbinary(io)
147
147
len = position (io)
148
148
seekstart (io)
149
149
len < size_header && return false
150
-
150
+
151
151
skip (io, 80 ) # skip header
152
152
number_of_triangle_blocks = read (io, UInt32)
153
153
# 1 normal, 3 vertices in Float32 + attrib count, usually 0
@@ -161,4 +161,3 @@ function detect_stlbinary(io)
161
161
end
162
162
add_format (format " STL_ASCII" , detect_stlascii, [" .stl" , " .STL" ], [:MeshIO ])
163
163
add_format (format " STL_BINARY" , detect_stlbinary, [" .stl" , " .STL" ], [:MeshIO ])
164
-
0 commit comments