Re: PNG resolution not resolved?

2008-11-04 Thread Jeremias Maerki
Hmm, that's almost the same environment. That rules out a buggy codec
implementation. And FOP 0.95 behaves correctly as far as I've seen.
Maybe your expectations are wrong: If you generate an image at say 72x72
pixels and set the resolution to 72 dpi, you get an image with an
intrinsic size of exactly 1 inch. If you save it with 300dpi (but the
image is still 72x72 pixels), the image's intrinsic size naturally gets
smaller (you have more pixels per inch).

On 04.11.2008 13:53:20 Florent Georges wrote:
 Jeremias Maerki wrote:
 
  A short test with your back.png shows no problems on my machine
  (WinXP, Sun JVM 1.6.0_03 and Sun JVM 1.4.2_16).
 
   Thanks for the response.  I am on Win XP SP 2, Sun JVM 1.6.0_01.
 
  It could be that on your machine, a ImageIO PNG codec is running
  that is not properly reporting the image resolution.
 
   How can I give you more info about that?
 
   Regards,
 
 -- 
 Florent Georges
 http://www.fgeorges.org/



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PNG resolution not resolved?

2008-11-04 Thread Jeremias Maerki
Can you tell me what JVM (maker and version) and operating system you're
using? We have unit tests that make sure that we extract resolution
information correctly from various bitmaps (including PNG). A short test
with your back.png shows no problems on my machine (WinXP, Sun JVM
1.6.0_03 and Sun JVM 1.4.2_16). It could be that on your machine, a
ImageIO PNG codec is running that is not properly reporting the image
resolution.

On 04.11.2008 12:38:57 Florent Georges wrote:
   Hi,
 
   It seems that FOP 0.95 does not resolve correctly the resolution of
 the enclosed image.  The resolution of this file is 300 dpi, but it
 seems FOP uses its default 72 dpi.  If I save the image with 72 dpi,
 the result is ok.
 
   I can just use content-width=400% for now, or save the image with
 72 dpi for the documentation, but I thought that is maybe a bug of FOP.
 
   Hope that helps,
 
 -- 
 Florent Georges
 http://www.fgeorges.org/
 



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PNG resolution not resolved?

2008-11-04 Thread Florent Georges
Jeremias Maerki wrote:

 Maybe your expectations are wrong: If you generate an image at
 say 72x72 pixels and set the resolution to 72 dpi, you get an
 image with an intrinsic size of exactly 1 inch. If you save it
 with 300dpi (but the image is still 72x72 pixels), the image's
 intrinsic size naturally gets smaller

  Yes, that's interesting.  Actually this is not my own issue, I
was helping a client and thought to report here what I thought
was a problem.  But that makes sense.  I'll forward this idea to
him.

  Anyway, thanks for the help,

-- 
Florent Georges
http://www.fgeorges.org/






















  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PNG resolution not resolved?

2008-11-04 Thread Florent Georges
Jeremias Maerki wrote:

 A short test with your back.png shows no problems on my machine
 (WinXP, Sun JVM 1.6.0_03 and Sun JVM 1.4.2_16).

  Thanks for the response.  I am on Win XP SP 2, Sun JVM 1.6.0_01.

 It could be that on your machine, a ImageIO PNG codec is running
 that is not properly reporting the image resolution.

  How can I give you more info about that?

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/






















  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



PNG resolution not resolved?

2008-11-04 Thread Florent Georges
  Hi,

  It seems that FOP 0.95 does not resolve correctly the resolution of
the enclosed image.  The resolution of this file is 300 dpi, but it
seems FOP uses its default 72 dpi.  If I save the image with 72 dpi,
the result is ok.

  I can just use content-width=400% for now, or save the image with
72 dpi for the documentation, but I thought that is maybe a bug of FOP.

  Hope that helps,

-- 
Florent Georges
http://www.fgeorges.org/























  inline: back.png-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]