
Dave Holmes wrote:
... It would be interesting to see a script that compressed the image by removing extra digits as Henning suggested, but also allowed you to determine how much loss you were willing to accept. With the range of compression options such as:
lossless where it only throws out zeros eg. .75000000 >> .75, 143.23123576 >> 143.23123576
lots of loss rounds all coordinates to nearest whole number, all opacity values to
two decimal digits (so the percentage is a whole number) eg. .75000000 >> .75, 143.23123576 >> 143
somewhere in between allows a user to specify how many digits to round off eg. .750 >> .75, 143.23123576 >> 143.231
...
It might be more useful to let a user specify the number of significant digits. This should give much more consistent results.