Closed selaux closed 11 years ago
Looks like with that equation, the transformed result is flipped:
options.compressionLevel | 10 * (10 - options.compressionLevel) | (options.compressionLevel * 10) + 10 |
---|---|---|
0 | 100 | 10 |
1 | 90 | 20 |
2 | 80 | 30 |
3 | 70 | 40 |
4 | 60 | 50 |
5 | 50 | 60 |
6 | 40 | 70 |
7 | 30 | 80 |
8 | 20 | 90 |
9 | 10 | 100 |
This will calculate the quality parameter for graphicsmagick from the compression level.
Input: 0-9 Output: 10-100