https://issues.dlang.org/show_bug.cgi?id=14799 --- Comment #1 from briancschott at gmail.com --- Correction: The valid values are -1 through 9 (inclusive). -1 is Z_DEFAULT_COMPRESSION, which is -1. This -1 gets translated to 6 inside the C library. --