Return-Path: Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: (qmail 8176 invoked from network); 7 Apr 2008 05:58:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Apr 2008 05:58:44 -0000 Received: (qmail 91048 invoked by uid 500); 7 Apr 2008 05:58:44 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 91032 invoked by uid 500); 7 Apr 2008 05:58:44 -0000 Mailing-List: contact batik-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: batik-users@xmlgraphics.apache.org Delivered-To: mailing list batik-users@xmlgraphics.apache.org Received: (qmail 91021 invoked by uid 500); 7 Apr 2008 05:58:44 -0000 Delivered-To: apmail-xml-batik-users@xml.apache.org Received: (qmail 91018 invoked by uid 99); 7 Apr 2008 05:58:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Apr 2008 22:58:44 -0700 X-ASF-Spam-Status: No, hits=3.6 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ap-batik-users@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2008 05:57:59 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JikMr-0002S4-UU for batik-users@xml.apache.org; Mon, 07 Apr 2008 05:58:09 +0000 Received: from 217.8.219.185 ([217.8.219.185]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Apr 2008 05:58:09 +0000 Received: from hstoessel.list by 217.8.219.185 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Apr 2008 05:58:09 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: batik-users@xml.apache.org From: "Hans Stoessel" Subject: Re: JPEGTranscoder: Bad quality - JPEG is displaced Date: Mon, 7 Apr 2008 07:57:53 +0200 Lines: 150 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000F_01C89885.15691660" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 217.8.219.185 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Sender: news X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_000F_01C89885.15691660 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi I have try it with PNG. The font is also bad, like in the JPG format. Thanks Hans schrieb im Newsbeitrag = news:OFB7DC6B64.A4156032-ON8525741F.003D94F5-8525741F.003E0BE7@knotes.kod= ak.com... Hi Hans, news wrote on 03/28/2008 08:48:47 AM: > I transcode a SVG into a JPEG using the JPEGTranscoder. I set the = quality to=20 > 1.0 (maximum) and the resolution to 300 dpi. How are you setting the JPEG quality? > Quality > ------- > The qualitiy of the JPEG is bad, especially the texts (fonts). What = can I=20 > do? So if you are really setting the JPEG quality it may be something you just have to live with. Even with quality set to 1.0 JPEG is lossy. For vector graphics PNG is really a much better choice as it doesn't have ringing problems around high frequency edges. > JGEP is truncated > ------------------ > In my SVG I have a black frame around the SVG. When I transcode it = to a=20 > JPEG, the frame, and the whole SVG, is displaced. I mean the content = from=20 > the SVG is moved to the top and to the left. I can see a white space = on=20 > bottom and right where the frame should be. >=20 > What could be wrong? > Is there a workaround? This sort of truncation is almost always caused by incorrectly set viewBox and width/height attributes (mostly commonly the viewBox). > By the way: I have the same problem when I trabscode the SVG with = the=20 > PDFTranscoder from FOP. Is something in my SVG wrong? Most likely your viewBox on the root SVG element. ------=_NextPart_000_000F_01C89885.15691660 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi
 
I have try it with PNG. The font is = also bad, like=20 in the JPG format.
 
Thanks
Hans
 
 
 
<thomas.deweese@kodak.com>= =20 schrieb im Newsbeitrag news:OFB7DC6B64.A4156032-ON8525741F.003D94F5-8525741F.003= E0BE7@knotes.kodak.com...

Hi Hans,

news = <news@ger.gmane.org> wrote on = 03/28/2008 08:48:47 AM:

> I transcode a SVG into a JPEG = using the=20 JPEGTranscoder. I set the quality to
> 1.0 (maximum) and the = resolution=20 to 300 dpi.

   How are = you=20 setting the JPEG quality?

>=20 Quality
> -------
> The qualitiy of the JPEG is bad, = especially=20 the texts (fonts). What can I
> = do?

   So if you are really setting the JPEG quality it = may be=20 something
you just have to live = with.=20  Even with quality set to 1.0 JPEG is
lossy.  For vector graphics PNG is really a much better = choice as=20 it
doesn't have ringing problems = around high=20 frequency edges.

> JGEP is=20 truncated
> ------------------
> In my SVG I have a black = frame=20 around the SVG. When I transcode it to a
> JPEG, the frame, and = the=20 whole SVG, is displaced. I mean the content from
> the SVG is = moved to=20 the top and to the left. I can see a white space on
> bottom = and right=20 where the frame should be.
>
> What could be = wrong?
> Is=20 there a workaround?

  =   This=20 sort of truncation is almost always caused by=20 incorrectly
set viewBox and = width/height=20 attributes (mostly commonly the viewBox).

> By the way: I have the same problem when I trabscode the = SVG with=20 the
> PDFTranscoder from FOP. Is something in my SVG=20 wrong?

    Most likely = your=20 viewBox on the root SVG = element.

------=_NextPart_000_000F_01C89885.15691660--