[prev in list] [next in list] [prev in thread] [next in thread]
List: fop-user
Subject: Re: png vs. jpg
From: Luis Bernardo <lmpmbernardo () gmail ! com>
Date: 2013-10-20 21:56:21
Message-ID: 52645185.6070105 () gmail ! com
[Download RAW message or body]
That is a good question! It seems to be some legacy configuration that
copied from an existing fop.xconf that apparently is not used anymore.
But I will need to investigate because I do not have an answer.
On 10/17/13 10:49 AM, Bernard Giannetti wrote:
> Hi Luis,
>
> I went to the page you provided (ImageLoaderRawPNG) and noticed in the
> config for application/pdf
>
> <xmlHandler mime="text/svg+xml"/>
>
> I searched for xmlhandler and cannot find any reference to this tag
> (other than the page you gave).
>
> I'm generating PDFs using embedded FOP (which include a small SVG
> image). As a test, I generated a PDF with the tag in the FOP config
> and then without and I noticed no (obvious) difference in
> timing/memory. Is this tag necessary...what does it do?
>
>
> Thanks in advance,
>
> Bernard.
>
>
> ------------------------------------------------------------------------
> Date: Wed, 16 Oct 2013 23:44:52 +0100
> From: lmpmbernardo@gmail.com
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: png vs. jpg
>
>
> <snip>
> Yes, there is a difference. By default FOP uses a "native" image
> loader for JPG but not for PNG. There is however a native image loader
> for PNG too, which you can enable in the configuration file. See
> http://wiki.apache.org/xmlgraphics-fop/HowTo/ImageLoaderRawPNG for
> more info. Try it and I expect that you will see a performance
> improvement.
> </snip>
[Attachment #3 (text/html)]
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
That is a good question! It seems to be some legacy configuration
that copied from an existing fop.xconf that apparently is not used
anymore. But I will need to investigate because I do not have an
answer.<br>
<br>
On 10/17/13 10:49 AM, Bernard Giannetti wrote:<br>
</div>
<blockquote cite="mid:BLU175-W4796247677DD6DF82351F3DC050@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr"><font face="Arial" size="2">Hi Luis,</font>
<div><font face="Arial" size="2"><br>
</font></div>
<div><font face="Arial" size="2">I went to the page you provided
(ImageLoaderRawPNG) and noticed in the config for
application/pdf</font></div>
<div><font face="Arial" size="2"><br>
</font></div>
<div><font face="Arial" size="2"><xmlHandler
mime="text/svg+xml"/></font></div>
<div><font face="Arial" size="2"><br>
</font></div>
<div><font face="Arial" size="2">I searched for xmlhandler and
cannot find any reference to this tag (other than the page
you gave).</font></div>
<div><font face="Arial" size="2"><br>
</font></div>
<div><font face="Arial" size="2">I'm generating PDFs using
embedded FOP (which include a small SVG image). As a test,
I generated a PDF with the tag in the FOP config and then
without and I noticed no (obvious) difference in
timing/memory. </font><span style="font-family: Arial;
font-size: 10pt;"> Is this tag necessary...what does it \
do?</span><font face="Arial" size="2"><br id="FontBreak">
<br>
<br>
</font>
<div style="line-height:21px;">
<div><font style="line-height:normal;" face="Arial" size="2">Thanks
in advance,</font></div>
<div><font style="line-height:normal;" face="Arial" size="2"><br
style="line-height:18px;">
</font></div>
<div><font style="line-height:normal;" face="Arial" \
size="2">Bernard.</font></div> <div><font face="Arial" size="2"><br>
</font></div>
</div>
<font face="Arial" size="2"><br>
</font>
<div>
<hr id="stopSpelling"><font face="Arial" size="2">Date: Wed,
16 Oct 2013 23:44:52 +0100<br>
From: <a class="moz-txt-link-abbreviated" \
href="mailto:lmpmbernardo@gmail.com">lmpmbernardo@gmail.com</a><br>
To: <a class="moz-txt-link-abbreviated" \
href="mailto:fop-users@xmlgraphics.apache.org">fop-users@xmlgraphics.apache.org</a><br>
Subject: Re: png vs. jpg<br>
<br>
</font>
<div class="ecxmoz-cite-prefix"><font face="Arial" size="2"><br>
</font></div>
<div class="ecxmoz-cite-prefix"><font face="Arial" \
size="2"><snip><br> Yes, there is a difference. By default FOP uses a
"native" image loader for JPG but not for PNG. There is
however a native image loader for PNG too, which you can
enable in the configuration file. See <a
moz-do-not-send="true"
class="ecxmoz-txt-link-freetext"
href="http://wiki.apache.org/xmlgraphics-fop/HowTo/ImageLoaderRawPNG"
target="_blank">http://wiki.apache.org/xmlgraphics-fop/HowTo/ImageLoaderRawPNG</a>
for more info. Try it and I expect that you will see a
performance improvement.<br>
</font></div>
</div>
</div>
<div class="ecxmoz-cite-prefix"><font face="Arial" \
size="2"></snip></font></div> <style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass \
div.ecxMsoNormal { font-size:11.0pt;
font-family:"Calibri","sans-serif";
}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}
.ExternalClass span.ecxMsoHyperlinkFollowed {
color:purple;
text-decoration:underline;
}
.ExternalClass span.ecxEmailStyle17 {
font-family:"Calibri","sans-serif";
color:windowtext;
}
.ExternalClass .ecxMsoChpDefault {
}
.ExternalClass div.ecxWordSection1 {
}
--></style> </div>
</blockquote>
<br>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic