LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File compress-params.diff of Package img2eps (Project openSUSE:Factory)

--- ./src/st_dct.c.orig	2005-01-19 14:25:11.839977740 +0000
+++ ./src/st_dct.c	2005-01-19 14:25:57.804922470 +0000
@@ -123,6 +123,7 @@
     st->cinfo.in_color_space = cspace;
 
     jpeg_set_defaults(&st->cinfo);
+    jpeg_set_quality(&st->cinfo, 80, 0);
     jpeg_start_compress(&st->cinfo, TRUE);
     return (stream *)st;
 }
--- ./src/st_flate.c.orig	2005-01-19 14:25:04.755219323 +0000
+++ ./src/st_flate.c	2005-01-19 14:25:32.417371601 +0000
@@ -111,7 +111,7 @@
     st->z.avail_in = 0;
     st->z.avail_out = 0;
 
-    if (deflateInit(&st->z, Z_DEFAULT_COMPRESSION) != Z_OK) {
+    if (deflateInit(&st->z, 9) != Z_OK) {
 	msg = st->z.msg;
 	free(st);
 	throwf(EINVAL, "cannot initialize z stream: %s", msg);