Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

docs/28860: Adding anti-alising to png images

0 views
Skip to first unread message

G. Adam Stanislav

unread,
Jul 10, 2001, 12:40:15 AM7/10/01
to

>Number: 28860
>Category: docs
>Synopsis: Adding anti-aliasing to PNG images created from EPS
>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: Mon Jul 09 21:40:00 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 ro...@usw3.freebsd.org:/usr/src/sys/compile/GENERIC i386



>Description:
Now that peps-1.0 has been committed in the ports, we can use it instead
of eps2png. That will produce anti-aliased images that look much better
than what we have now.

P.S. It will be a good idea to redo all png images created from eps
files before (perhaps by touching all .eps files so they have a new
date and are forced to be reconverted).
>How-To-Repeat:

>Fix:
--- doc.images.mk.OLD Mon Jul 9 23:19:56 2001
+++ doc.images.mk Mon Jul 9 23:22:29 2001
@@ -80,7 +80,7 @@

.for _curimage in ${IMAGES_GEN_PNG}
${_curimage}: ${_curimage:S/.png$/.eps/}
- eps2png -res ${EPS2PNG_RES} -output ${.TARGET} ${.ALLSRC}
+ peps -r ${EPS2PNG_RES} -o ${.TARGET} ${.ALLSRC}
.endfor

.for _curimage in ${IMAGES_GEN_EPS}
>Release-Note:
>Audit-Trail:
>Unformatted:

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

G. Adam Stanislav

unread,
Jul 10, 2001, 3:56:43 PM7/10/01
to
On Mon, Jul 09, 2001 at 11:32:59PM -0500, G. Adam Stanislav wrote:
>
>>Number: 28860
>>Category: docs
>>Synopsis: Adding anti-aliasing to PNG images created from EPS
>>Fix:
>--- doc.images.mk.OLD Mon Jul 9 23:19:56 2001
>+++ doc.images.mk Mon Jul 9 23:22:29 2001
>@@ -80,7 +80,7 @@
>
> .for _curimage in ${IMAGES_GEN_PNG}
> ${_curimage}: ${_curimage:S/.png$/.eps/}
>- eps2png -res ${EPS2PNG_RES} -output ${.TARGET} ${.ALLSRC}
>+ peps -r ${EPS2PNG_RES} -o ${.TARGET} ${.ALLSRC}

Oops, that last line should have been

+ peps -r ${EPS2PNG_RES} -p -o ${.TARGET} ${.ALLSRC}

Note the "-p" please.

Adam
--
Suppose you were an idiot.
Suppose you were a member of Congress.
But I'm repeating myself...
-- Mark Twain

Nik Clayton

unread,
Jul 11, 2001, 8:20:59 PM7/11/01
to
On Tue, Jul 10, 2001 at 02:54:38PM -0500, G. Adam Stanislav wrote:
> On Mon, Jul 09, 2001 at 11:32:59PM -0500, G. Adam Stanislav wrote:
> >
> >>Number: 28860
> >>Category: docs
> >>Synopsis: Adding anti-aliasing to PNG images created from EPS
> >>Fix:
> >--- doc.images.mk.OLD Mon Jul 9 23:19:56 2001
> >+++ doc.images.mk Mon Jul 9 23:22:29 2001
> >@@ -80,7 +80,7 @@
> >
> > .for _curimage in ${IMAGES_GEN_PNG}
> > ${_curimage}: ${_curimage:S/.png$/.eps/}
> >- eps2png -res ${EPS2PNG_RES} -output ${.TARGET} ${.ALLSRC}
> >+ peps -r ${EPS2PNG_RES} -o ${.TARGET} ${.ALLSRC}
>
> Oops, that last line should have been
>
> + peps -r ${EPS2PNG_RES} -p -o ${.TARGET} ${.ALLSRC}
>
> Note the "-p" please.

Works for me. No one else has commented, so I'll commit this in 12-24
hours, along with the changes to textproc/docproj to adjust the
dependencies.

N
--
FreeBSD: The Power to Serve http://www.freebsd.org/
FreeBSD Documentation Project http://www.freebsd.org/docproj/

--- 15B8 3FFC DDB4 34B0 AA5F 94B7 93A8 0764 2C37 E375 ---

Nik Clayton

unread,
Jul 13, 2001, 8:20:56 AM7/13/01
to
On Thu, Jul 12, 2001 at 01:08:10AM +0100, Nik Clayton wrote:
> On Tue, Jul 10, 2001 at 02:54:38PM -0500, G. Adam Stanislav wrote:
> > On Mon, Jul 09, 2001 at 11:32:59PM -0500, G. Adam Stanislav wrote:
> > > .for _curimage in ${IMAGES_GEN_PNG}
> > > ${_curimage}: ${_curimage:S/.png$/.eps/}
> > >- eps2png -res ${EPS2PNG_RES} -output ${.TARGET} ${.ALLSRC}
> > >+ peps -r ${EPS2PNG_RES} -o ${.TARGET} ${.ALLSRC}
> >
> > Oops, that last line should have been
> >
> > + peps -r ${EPS2PNG_RES} -p -o ${.TARGET} ${.ALLSRC}
> >
> > Note the "-p" please.
>
> Works for me. No one else has commented, so I'll commit this in 12-24
> hours, along with the changes to textproc/docproj to adjust the
> dependencies.

Done. ports/textproc/docproj now depends on the ports/graphics/peps
port, instead of ports/graphics/eps2png. I have adjusted doc.images.mk
to suit, and made the necessary changes to the Handbook.

Thanks,

0 new messages