From adam@whizkidtech.net  Sun Jun 17 11:26:13 2001
Return-Path: <adam@whizkidtech.net>
Received: from whizkidtech.net (rh2.bfm.org [216.127.220.195])
	by hub.freebsd.org (Postfix) with ESMTP id 28E0A37B403
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 17 Jun 2001 11:26:12 -0700 (PDT)
	(envelope-from adam@whizkidtech.net)
Received: (from adam@localhost)
	by whizkidtech.net (8.11.3/8.11.3) id f5HIQ4M00441;
	Sun, 17 Jun 2001 13:26:04 -0500 (CDT)
	(envelope-from adam)
Message-Id: <200106171826.f5HIQ4M00441@whizkidtech.net>
Date: Sun, 17 Jun 2001 13:26:04 -0500 (CDT)
From: "G. Adam Stanislav" <adam@whizkidtech.net>
Reply-To: adam@whizkidtech.net
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: PNG resolution set too low
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         28237
>Category:       docs
>Synopsis:       Resolution of PNG images too low
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 17 11:30:08 PDT 2001
>Closed-Date:    Fri Jun 22 03:12:38 PDT 2001
>Last-Modified:  Fri Jun 22 03:12:56 PDT 2001
>Originator:     G. Adam Stanislav
>Release:        FreeBSD 4.3-20010525-STABLE i386
>Organization:
>Environment:
System: FreeBSD whizkidtech.net 4.3-20010525-STABLE FreeBSD 4.3-20010525-STABLE #0: Fri May 25 12:00:06 GMT 2001 root@usw3.freebsd.org:/usr/src/sys/compile/GENERIC i386

>Description:

By default, the eps2png program uses the resolution of 82, which is too
low. 10 point text in Courier is rendered completely illegible. That
creates the temptation to produce larger EPS originals. However, that
would make them too large for PS and PDF output (10 point Courier is
the standard default font/size for the typical printer).
>How-To-Repeat:
	
>Fix:
Introduce a PNG_RES in doc.images.mk, set it to 100 (unless it has already
been set to a different value by the user or the Makefile).

Add -res ${PNG_RES} to the eps2png command line.

Here is the diff:

--- doc.images.mk.orig	Wed May  9 14:31:47 2001
+++ doc.images.mk	Sun Jun 17 13:08:09 2001
@@ -56,6 +56,12 @@
 IMAGES_PNG=${IMAGES:M*.png} ${IMAGES_GEN_PNG}
 IMAGES_EPS=${IMAGES:M*.eps} ${IMAGES_GEN_EPS}
 
+# The default resolution eps2png (82) assumes a 640x480 monitor, and is too
+# low for the typical monitor in use today. The resolution of 100 looks
+# much better on these monitors without making the image too large for
+# a 640x480 monitor.
+PNG_RES?= 100
+
 # We only need to list ${IMAGES_GEN_PDF} here.  If all the source files are
 # EPS then they'll be in this variable; if any of the source files are PNG
 # then we can use them directly, and don't need to list them.
@@ -68,7 +74,7 @@
 
 .for _curimage in ${IMAGES_GEN_PNG}
 ${_curimage}: ${_curimage:S/.png$/.eps/}
-	eps2png -output ${.TARGET} ${.ALLSRC}
+	eps2png -res ${PNG_RES} -output ${.TARGET} ${.ALLSRC}
 .endfor
 
 .for _curimage in ${IMAGES_GEN_EPS}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: nik 
State-Changed-When: Fri Jun 22 03:12:38 PDT 2001 
State-Changed-Why:  
Committed, thanks. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28237 
>Unformatted:
