]>
Commit | Line | Data |
---|---|---|
96bfd053 RD |
1 | #!/usr/bin/env python |
2 | """ | |
3 | img2xpm.py -- convert several image formats to XPM | |
4 | ||
5 | Usage: | |
6 | ||
7 | img2xpm.py [options] image_files... | |
8 | ||
9 | Options: | |
10 | ||
926bb76c | 11 | -o <dir> The directory to place the .xpm file(s), defaults to |
96bfd053 RD |
12 | the current directory. |
13 | ||
14 | -m <#rrggbb> If the original image has a mask or transparency defined | |
15 | it will be used by default. You can use this option to | |
16 | override the default or provide a new mask by specifying | |
17 | a colour in the image to mark as transparent. | |
18 | ||
19 | -n <name> A filename to write the .xpm data to. Defaults to the | |
20 | basename of the image file + '.xpm' This option overrides | |
21 | the -o option. | |
22 | """ | |
23 | ||
24 | ||
afb810d9 RD |
25 | import sys |
26 | import img2img | |
27 | from wxPython import wx | |
bddab5e9 | 28 | |
afb810d9 | 29 | img2img.main(sys.argv[1:], wx.wxBITMAP_TYPE_XPM, ".xpm", __doc__) |
96bfd053 RD |
30 | |
31 |