xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas E Deweese <thomas.dewe...@kodak.com>
Subject RE: Blurred PNG images
Date Mon, 05 May 2003 16:43:33 GMT
>>>>> "JR" == Jaladurgam, Ramana <Ramana.Jaladurgam@pearson.com> writes:

JR> I have attached the png file.  To see the blurring effect,
JR> increase the zoom. You can see the shady effects.  How to made the
JR> rendering with crispEdges?

    This is the issue, the easiest thing to do is add
shape-rendering="crispEdges" and text-rendering="optimizeSpeed"
to the outermost svg element.


JR> Regards, Ramana.JV.

JR> -----Original Message----- From: Thomas E Deweese
JR> [mailto:thomas.deweese@kodak.com] Sent: Monday, May 05, 2003 6:50
JR> AM To: Batik Users Subject: RE: Blurred PNG images


>>>>> "JR" == Jaladurgam, Ramana <Ramana.Jaladurgam@pearson.com> writes:

JR> Hello Group, I am converting SVG to PNG format. But the resultant
JR> PNG file is very blurred, especially the text content.  Any ideas
JR> or suggestions?

JR>     I suspect what you are calling blurring is what is known as
JR> anti-aliasing.  If you set the shape-rendering hint to
JR> 'crispEdges' you will get non-anti-aliased rendering.  However for
JR> text at small point sizes this is usually worse than the
JR> anti-aliased rendering.

JR>     Typically for small font-sizes rendering engines either use
JR> bitmap versions of fonts - obviously not possible for SVG - or
JR> font hinting where the outlines of the font are tweaked to lie on
JR> pixels - Batik does not currently support font hinting (it would
JR> be very tricky to support given the complexity of SVG text).

JR>     If suspect that this is not the issue (I'm 99.9% sure it is)
JR> you might send a small sample PNG.


JR> ---------------------------------------------------------------------
JR> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org For
JR> additional commands, e-mail: batik-users-help@xml.apache.org


JR> ****************************************************************************
JR> This email may contain confidential material.  If you were not an
JR> intended recipient, Please notify the sender and delete all
JR> copies.  We may monitor email to and from our network.
JR> ****************************************************************************
JR> ---------------------------------------------------------------------
JR> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org For
JR> additional commands, e-mail: batik-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message