Re: png vs. jpg

2013-10-20 Thread Luis Bernardo
+0100 From: lmpmberna...@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

RE: png vs. jpg

2013-10-17 Thread Bernard Giannetti
-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

RE: png vs. jpg

2013-10-17 Thread Roberto Cahanap
Ah, that makes sense then. I'm going to read the link that you referenced. Thank you Luis. -Roberto From: Luis Bernardo [mailto:lmpmberna...@gmail.com] Sent: Wednesday, October 16, 2013 6:45 PM To: fop-users@xmlgraphics.apache.org Subject: Re: png vs. jpg Yes, there is a difference

png vs. jpg

2013-10-16 Thread Roberto Cahanap
Hello everyone. We have been trying to figure out why our pdf generation was taking so long. When we changed an image in the PDF from PNG to JPG, then it was much faster. Is there a difference in the way these two graphic formats are processed in FOP? Thank you for your responses. -Roberto

Re: png vs. jpg

2013-10-16 Thread Luis Bernardo
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

PNG vs JPG in performance

2010-08-13 Thread Adam Kovacs
Hi there! Im currently having a strange effect. I use PNG images in my XSL to create PDFs. I have real performance problems (the XSL is quite complex and looks fancy with many images) If I use PNGs it takes 30s to create a PDF. If I use JPGs it takes only 2,5s to create the same PDF (JPGs

Re: PNG vs JPG in performance

2010-08-13 Thread Matthias Reischenbacher
Hi Adam, I think the cause of the 30sec delay is that PNGs aren't embedded natively into the PDF and they must be transcoded first. It would be really nice, if the FOP-Team could fix this issue, since this problem also occurs when using PNGs inside SVGs and converting PNGs to JPEGs isn't so

Re: PNG vs JPG in performance

2010-08-13 Thread Ognjen Blagojevic
Hi Matthias, Do zou know to which format are they trasformed? Regards, Ognjen On 13.8.2010 14:37, Matthias Reischenbacher wrote: Hi Adam, I think the cause of the 30sec delay is that PNGs aren't embedded natively into the PDF and they must be transcoded first. It would be really nice, if

Re: PNG vs JPG in performance

2010-08-13 Thread Jeremias Maerki
Matthias is right. The PNGs need to be decoded and re-encoded. Some time ago I've made experiments to embed PNG files without re-encoding them but I haven't gotten that to work. Somehow the data was not quite right so Acrobat barked at me with its usual unhelpful error messages. :-( At the moment

Re: PNG vs JPG in performance

2010-08-13 Thread Matthias Reischenbacher
Jeremias, do you have a patch file of your work with PNG? Perhaps with a second pair of eyes we could resolve that issue... ;-) Regards, Matthias On 13.08.2010 12:06, Jeremias Maerki wrote: Matthias is right. The PNGs need to be decoded and re-encoded. Some time ago I've made experiments to