Trimage/src/trimage/filesize/__init__.py
Kálmán Tarnay d282bcf8e9 py2exe support
Usage: setup.py py2exe
You must be able to start trimage.py before even attempting to use py2exe.
It generates a standalone executable.
That standalone exacutable starts up only if the following files can be found on the path: jpegoptim.exe optipng.exe advpng.exe (they must return 0)
Compression does not work yet and the Windows versions of these tools are a lot slower than on Linux. The binaries I found were pretty old. They should most probably be recompiled to make use of new cpu features. Or we should find other tools.

trimage.hurry.filename -> trimage.filename
because py2exe couldn't deal with it
2010-04-20 23:29:24 +02:00

2 lines
90 B
Python

from filesize import size
from filesize import traditional, alternative, verbose, iec, si