Pyside-rcc command line compression question
-
What are the valid compression levels for the -compress flag of pyside-rcc?
I am trying various numbers but it seems to accept anything including negative numbers, and what ever the number seems to make no difference on the size of the output file.
The resources are png images at the moment so i don't expect a big reduction in size, but i would expect some tiny difference between using the -no-compress flag and the -compress 9 flag.
anyone knows if the compress flag is working/active on pyside-rcc comman line?
system:
ubuntu 11.10 64bit
python 2.7
pyside 1.1.0 -
Try the threshold flag. The argument is given as a percentage (0-100).
I dug it up here:
http://qt.gitorious.org/pyside/pyside-tools/blobs/master/pyrcc/rcc.cpp#line124
The compression itself is done using the qCompress method of the QByteArray class, which is documented here: