create graphs with best jpeg quality, the image size increase is minimal,

and so is the quality actually, but it's better anyway.
This commit is contained in:
jasper 2015-04-03 10:11:24 +00:00
parent da94c9977f
commit 6feeace935
2 changed files with 17 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.34 2015/01/13 11:26:10 sthen Exp $
# $OpenBSD: Makefile,v 1.35 2015/04/03 10:11:24 jasper Exp $
COMMENT-main= packet filter statistics visualization
COMMENT-daemon= pfstat daemon
@ -10,7 +10,7 @@ PKGNAME-daemon= ${DISTNAME:S/-/d-/}
CATEGORIES= net
MASTER_SITES= http://www.benzedrine.ch/
REVISION-daemon=0
REVISION-main= 0
REVISION-main= 1
HOMEPAGE= http://www.benzedrine.ch/pfstat.html

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-graph_c,v 1.1 2015/04/03 10:11:24 jasper Exp $
Use best quality for JPEG images.
--- graph.c.orig Fri Apr 3 12:02:58 2015
+++ graph.c Fri Apr 3 12:03:16 2015
@@ -199,7 +199,7 @@ graph_generate_images(struct matrix *matrices)
return (1);
}
if (matrix->type == 0)
- gdImageJpeg(im, out, 95);
+ gdImageJpeg(im, out, 100);
else
gdImagePng(im, out);
fclose(out);