From owner-freebsd-doc Sun Jun 17 11:30:42 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C90FE37B639 for ; Sun, 17 Jun 2001 11:30:08 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5HIU8a53144; Sun, 17 Jun 2001 11:30:08 -0700 (PDT) (envelope-from gnats) Received: from whizkidtech.net (rh2.bfm.org [216.127.220.195]) by hub.freebsd.org (Postfix) with ESMTP id 28E0A37B403 for ; 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" Reply-To: adam@whizkidtech.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: docs/28237: PNG resolution set too low Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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