diff --git a/README.md b/README.md index 33b574c..45b9dfb 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,11 @@ This is the client executed when you download the stand-alone binary or when you The GUI supports two output format: SUP and PES+MUI (Scenarist BD). +### GUI config.ini +The config.ini file can be used to specify the relative or absolute path to a quantizer binary (either pngquant[.exe] or libimagequant[.dll, .so]). If the program is in PATH, the name is sufficient. An external quantizer will offer higher quality than the common Python ones (Pillow or a K-Means clustering) and be, in general, faster. + +On UNIX systems, pngquant is fairly easily to get in your PATH via brew, apt-get and so on. + ## Command line client `supercli.py` is essentially the command line equivalent to `supergui.py`. diff --git a/SUPer/__metadata__.py b/SUPer/__metadata__.py index 63a2559..26f206f 100644 --- a/SUPer/__metadata__.py +++ b/SUPer/__metadata__.py @@ -19,8 +19,8 @@ """ __MAJOR = 0 -__MINOR = 1 -__REVISION = 9 +__MINOR = 2 +__REVISION = 0 __name__ = "SUPer" __version__ = '.'.join(map(str, [__MAJOR, __MINOR, __REVISION])) diff --git a/supergui.py b/supergui.py index 1494c70..a2219c4 100644 --- a/supergui.py +++ b/supergui.py @@ -192,6 +192,8 @@ def get_value_key(config, key: str): CWD = Path(os.path.abspath(Path(sys.argv[0]).parent)) config.read(CWD.joinpath('config.ini')) exepath = get_value_key(config['PILIQ'], 'quantizer') + if not os.path.isabs(exepath): + exepath = str(CWD.joinpath(exepath)) except: exepath = None if Quantizer.init_piliq(exepath):