0
Commit Graph

9 Commits

Author SHA1 Message Date
Nicolas F
2c1ce0d522 contrib/png-it: allow saving to stdout with -
Following the same convention as some other tools, - as output
filename means stdout now.
2019-03-12 00:41:57 +01:00
Nicolas F
e6d4ed8068 contrib/png-it: use the print function
This also allows us to print to stderr, which is handy and means
all program text output (i.e. argument parser and script messages)
will be on stderr.
2019-03-12 00:33:02 +01:00
Nicolas F
eee196623f contrib/png-it: switch from optparse to argparse
In the process, we can clean up some of the command line argument
handling. Sadly, argparse's mutually exclusive groups are too
primitive to get rid of the autocrop/manual crop conflict checking,
but we'll have to live with those two lines I guess.

This script apparently also works with Python 3 now, which is neat.
2019-03-12 00:26:51 +01:00
Nicolas F
88c056b6b7 contrib/png-it: clean up code, grammar
This took several years off my life expectancy, and there's still
ways to go.
2019-03-12 00:26:45 +01:00
Ean McLaughlin
52651c034c Fix a typo and silly crash case
Would crash instead of gracefully exiting if a tileset dir wasn't provided. Might also change how the memory limit option works - currently has to be provided, even though that's not mentioned.
2014-08-31 13:01:29 -06:00
Thomas Lake
fbb1a7b379 It helps if we print the error message 2013-08-29 20:05:45 +01:00
PotcFdk
15709e454d Fixed a typo ('leve' -> 'level'). 2013-08-29 19:46:35 +02:00
Alejandro Aguilera
eb8d445822 Updated png-it.py, now it has --autocrop option. 2013-02-26 08:45:57 +01:00
Alejandro Aguilera
22cefd69e6 Add png-it.py script to contrib directory
Creates 1 big PNG images from an overviewer tileset directory

Addresses #826
2012-11-29 10:03:52 -05:00