Exposed the arguments to gzcompress by adding public variables to the Zip library.
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php
index 4342294..5208c91 100644
--- a/system/libraries/Zip.php
+++ b/system/libraries/Zip.php
@@ -95,6 +95,19 @@
 	 * @var int
 	 */
 	public $now;
+        
+        /**
+         * The level of compression. 0 to 9, 9 being the highest level of
+         * compression.
+         * @var int
+         */
+        public $compression_level = 6;
+        
+        /**
+         * Which encoding to use. One of the ZLIB_ENCODING_* constants.
+         * @var int
+         */
+        public $compression_encoding = ZLIB_ENCODING_DEFLATE;
 
 	/**
 	 * Initialize zip compression class
@@ -248,7 +261,7 @@
 
 		$uncompressed_size = strlen($data);
 		$crc32  = crc32($data);
-		$gzdata = substr(gzcompress($data), 2, -4);
+		$gzdata = substr(gzcompress($data, $this->compression_level, $this->compression_encoding), 2, -4);
 		$compressed_size = strlen($gzdata);
 
 		$this->zipdata .=