]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wxPython/tools/img2png.py
76e7f6db06188d2a1dd9f53af2326aaa22235729
3 img2png.py -- convert several image formats to PNG format
7 img2png.py [options] image_files...
11 -o <dir> The directory to place the .png file(s), defaults to
12 the current directory.
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.
19 -n <name> A filename to write the .png data to. Defaults to the
20 basename of the image file + '.png' This option overrides
27 from wxPython
import wx
30 img2img
.main(sys
.argv
[1:], wx
.wxBITMAP_TYPE_PNG
, ".png", __doc__
)
32 if __name__
== '__main__':