Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2001 13:26:04 -0500 (CDT)
From:      "G. Adam Stanislav" <adam@whizkidtech.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/28237: PNG resolution set too low
Message-ID:  <200106171826.f5HIQ4M00441@whizkidtech.net>

next in thread | raw e-mail | index | archive | help

>Number:         28237
>Category:       docs
>Synopsis:       Resolution of PNG images too low
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 17 11:30:08 PDT 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106171826.f5HIQ4M00441>