]> git.saurik.com Git - wxWidgets.git/blame - wxPython/tools/img2png.py
wxUniversal fixes:
[wxWidgets.git] / wxPython / tools / img2png.py
CommitLineData
afb810d9
RD
1#!/usr/bin/env python
2"""
3img2png.py -- convert several image formats to PNG format
4
5Usage:
6
7 img2png.py [options] image_files...
8
9Options:
10
11 -o <dir> The directory to place the .png file(s), defaults to
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 .png data to. Defaults to the
20 basename of the image file + '.png' This option overrides
21 the -o option.
22"""
23
24
25import sys
26import img2img
27from wxPython import wx
28
29img2img.main(sys.argv[1:], wx.wxBITMAP_TYPE_PNG, ".png", __doc__)
30
31