You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Hinrich Aue <hi...@lci-software.com> on 2007/02/14 16:57:30 UTC

fop and image sizing

Hello everybody,

 

I was wondering about some things:

Why does FOP not use meta data (specially dpi) from images? I know it
doesn't, I read the documentation. I just wonder why.

Of course, when you don't read that information, you have to set a dpi
resolution.

Why is it 72 dpi? Every screen these days has >96dpi. Printers have even
higher dpi.

Another question is, is it configurable? I read a different post about this,
but nobody answered. Can I change these default 72 dpi to 96 dpi?

 

I'm asking these questions because I'm a docbook user, and I use FOP.

For our printed documentation we use FOP. We have _a lot_ of screenshots.

Now I have to set the absolute width for every image instead of setting dpi
to 96 dpi in FOP.

I cannot scale the images, they are also used for our html documentation.

 

Is there something I can do?

Are there plans for FOP to use image meta data?

 

Thanks in advance,

            Hinrich


Re: AW: [SPAM] Re: fop and image sizing

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Most attachments should work, though you should only do that if you have
small files. Otherwise, you are likely to upset some people. The
better alternative is to put the files on a website somewhere and you
just post the URLs.

On 15.02.2007 13:13:39 Hinrich Aue wrote:
> Thanks for the answer,
> 
> thats valuable information.
> 
> I can send you an example with a jpeg or png.
> I'm using FOP 0.93
> Can I attach it to the mailing list?
> 
> -----Ursprüngliche Nachricht-----
> Von: Jeremias Maerki [mailto:dev@jeremias-maerki.ch] 
> Gesendet: Mittwoch, 14. Februar 2007 18:53
> An: fop-users@xmlgraphics.apache.org
> Betreff: [SPAM] Re: fop and image sizing
> 
> 
> On 14.02.2007 16:57:30 Hinrich Aue wrote:
> > Hello everybody,
> > 
> >  
> > 
> > I was wondering about some things:
> > 
> > Why does FOP not use meta data (specially dpi) from images? I know it
> > doesn't, I read the documentation. I just wonder why.
> 
> Wow, http://xmlgraphics.apache.org/fop/0.93/graphics.html seems quite a
> bit out of date. A few things stated there are wrong.
> 
> FOP does interpret the resolution setting of most bitmap images. Only
> formats like BMP don't contain a resolution. For JPEG and PNG this
> should work fine.
> 
> > Of course, when you don't read that information, you have to set a dpi
> > resolution.
> > 
> > Why is it 72 dpi? Every screen these days has >96dpi. Printers have even
> > higher dpi.
> 
> 72dpi is the default PostScript and PDF resolution.
> 
> > Another question is, is it configurable? I read a different post about
> this,
> > but nobody answered. Can I change these default 72 dpi to 96 dpi?
> 
> Yes, see:
> http://xmlgraphics.apache.org/fop/0.93/configuration.html#general-elements
> ("source-resolution")
> 
> > 
> > I'm asking these questions because I'm a docbook user, and I use FOP.
> 
> 0.93???
> 
> > For our printed documentation we use FOP. We have _a lot_ of screenshots.
> > 
> > Now I have to set the absolute width for every image instead of setting
> dpi
> > to 96 dpi in FOP.
> 
> For screenshots, even 96dpi may be too little. How about using
> percentages to scale down the images?
> 
> > I cannot scale the images, they are also used for our html documentation.
> > 
> >  
> > 
> > Is there something I can do?
> > 
> > Are there plans for FOP to use image meta data?
> 
> As indicated above, we already do that in most places. If the above
> doesn't help, please post an example.



Jeremias Maerki


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


Re: fop and image sizing

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 15.02.2007 13:17:43 Hinrich Aue wrote:
> Can I test if FOP can interpret the document size?

Yes, by setting different resolutions on the image files. You can then
see the effect when you generate the output through FOP.

> What are the parameters for the fo:external-graphic that would scale the
> image to it's intrinsic size?

<fo:external-graphic src="<your-url"/> that's it.

<snip/>

Jeremias Maerki


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


AW: [SPAM] Re: fop and image sizing

Posted by Hinrich Aue <hi...@lci-software.com>.
Can I test if FOP can interpret the document size?
What are the parameters for the fo:external-graphic that would scale the
image to it's intrinsic size?

Hinrich

-----Ursprüngliche Nachricht-----
Von: Jeremias Maerki [mailto:dev@jeremias-maerki.ch] 
Gesendet: Mittwoch, 14. Februar 2007 18:53
An: fop-users@xmlgraphics.apache.org
Betreff: [SPAM] Re: fop and image sizing


On 14.02.2007 16:57:30 Hinrich Aue wrote:
> Hello everybody,
> 
>  
> 
> I was wondering about some things:
> 
> Why does FOP not use meta data (specially dpi) from images? I know it
> doesn't, I read the documentation. I just wonder why.

Wow, http://xmlgraphics.apache.org/fop/0.93/graphics.html seems quite a
bit out of date. A few things stated there are wrong.

FOP does interpret the resolution setting of most bitmap images. Only
formats like BMP don't contain a resolution. For JPEG and PNG this
should work fine.

> Of course, when you don't read that information, you have to set a dpi
> resolution.
> 
> Why is it 72 dpi? Every screen these days has >96dpi. Printers have even
> higher dpi.

72dpi is the default PostScript and PDF resolution.

> Another question is, is it configurable? I read a different post about
this,
> but nobody answered. Can I change these default 72 dpi to 96 dpi?

Yes, see:
http://xmlgraphics.apache.org/fop/0.93/configuration.html#general-elements
("source-resolution")

> 
> I'm asking these questions because I'm a docbook user, and I use FOP.

0.93???

> For our printed documentation we use FOP. We have _a lot_ of screenshots.
> 
> Now I have to set the absolute width for every image instead of setting
dpi
> to 96 dpi in FOP.

For screenshots, even 96dpi may be too little. How about using
percentages to scale down the images?

> I cannot scale the images, they are also used for our html documentation.
> 
>  
> 
> Is there something I can do?
> 
> Are there plans for FOP to use image meta data?

As indicated above, we already do that in most places. If the above
doesn't help, please post an example.



Jeremias Maerki


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


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


AW: [SPAM] Re: fop and image sizing

Posted by Hinrich Aue <hi...@lci-software.com>.
Thanks for the answer,

thats valuable information.

I can send you an example with a jpeg or png.
I'm using FOP 0.93
Can I attach it to the mailing list?

-----Ursprüngliche Nachricht-----
Von: Jeremias Maerki [mailto:dev@jeremias-maerki.ch] 
Gesendet: Mittwoch, 14. Februar 2007 18:53
An: fop-users@xmlgraphics.apache.org
Betreff: [SPAM] Re: fop and image sizing


On 14.02.2007 16:57:30 Hinrich Aue wrote:
> Hello everybody,
> 
>  
> 
> I was wondering about some things:
> 
> Why does FOP not use meta data (specially dpi) from images? I know it
> doesn't, I read the documentation. I just wonder why.

Wow, http://xmlgraphics.apache.org/fop/0.93/graphics.html seems quite a
bit out of date. A few things stated there are wrong.

FOP does interpret the resolution setting of most bitmap images. Only
formats like BMP don't contain a resolution. For JPEG and PNG this
should work fine.

> Of course, when you don't read that information, you have to set a dpi
> resolution.
> 
> Why is it 72 dpi? Every screen these days has >96dpi. Printers have even
> higher dpi.

72dpi is the default PostScript and PDF resolution.

> Another question is, is it configurable? I read a different post about
this,
> but nobody answered. Can I change these default 72 dpi to 96 dpi?

Yes, see:
http://xmlgraphics.apache.org/fop/0.93/configuration.html#general-elements
("source-resolution")

> 
> I'm asking these questions because I'm a docbook user, and I use FOP.

0.93???

> For our printed documentation we use FOP. We have _a lot_ of screenshots.
> 
> Now I have to set the absolute width for every image instead of setting
dpi
> to 96 dpi in FOP.

For screenshots, even 96dpi may be too little. How about using
percentages to scale down the images?

> I cannot scale the images, they are also used for our html documentation.
> 
>  
> 
> Is there something I can do?
> 
> Are there plans for FOP to use image meta data?

As indicated above, we already do that in most places. If the above
doesn't help, please post an example.



Jeremias Maerki


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


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


Re: fop and image sizing

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 14.02.2007 16:57:30 Hinrich Aue wrote:
> Hello everybody,
> 
>  
> 
> I was wondering about some things:
> 
> Why does FOP not use meta data (specially dpi) from images? I know it
> doesn't, I read the documentation. I just wonder why.

Wow, http://xmlgraphics.apache.org/fop/0.93/graphics.html seems quite a
bit out of date. A few things stated there are wrong.

FOP does interpret the resolution setting of most bitmap images. Only
formats like BMP don't contain a resolution. For JPEG and PNG this
should work fine.

> Of course, when you don't read that information, you have to set a dpi
> resolution.
> 
> Why is it 72 dpi? Every screen these days has >96dpi. Printers have even
> higher dpi.

72dpi is the default PostScript and PDF resolution.

> Another question is, is it configurable? I read a different post about this,
> but nobody answered. Can I change these default 72 dpi to 96 dpi?

Yes, see: http://xmlgraphics.apache.org/fop/0.93/configuration.html#general-elements
("source-resolution")

> 
> I'm asking these questions because I'm a docbook user, and I use FOP.

0.93???

> For our printed documentation we use FOP. We have _a lot_ of screenshots.
> 
> Now I have to set the absolute width for every image instead of setting dpi
> to 96 dpi in FOP.

For screenshots, even 96dpi may be too little. How about using
percentages to scale down the images?

> I cannot scale the images, they are also used for our html documentation.
> 
>  
> 
> Is there something I can do?
> 
> Are there plans for FOP to use image meta data?

As indicated above, we already do that in most places. If the above
doesn't help, please post an example.



Jeremias Maerki


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


RE: fop and image sizing

Posted by Jim Tivy <ji...@bluestream.com>.
As a fellow user - For FOP 20 set a max height of 9 inches or so (only one
dimension set to avoid a change in aspect ratio).  For FOP .93 it seems to
use meta data
  -----Original Message-----
  From: Hinrich Aue [mailto:hinrich.aue@lci-software.com]
  Sent: Wednesday, February 14, 2007 7:58 AM
  To: fop-users@xmlgraphics.apache.org
  Subject: fop and image sizing


  Hello everybody,



  I was wondering about some things:

  Why does FOP not use meta data (specially dpi) from images? I know it
doesn't, I read the documentation. I just wonder why.

  Of course, when you don't read that information, you have to set a dpi
resolution.

  Why is it 72 dpi? Every screen these days has >96dpi. Printers have even
higher dpi.

  Another question is, is it configurable? I read a different post about
this, but nobody answered. Can I change these default 72 dpi to 96 dpi?



  I'm asking these questions because I'm a docbook user, and I use FOP.

  For our printed documentation we use FOP. We have _a lot_ of screenshots.

  Now I have to set the absolute width for every image instead of setting
dpi to 96 dpi in FOP.

  I cannot scale the images, they are also used for our html documentation.



  Is there something I can do?

  Are there plans for FOP to use image meta data?



  Thanks in advance,

              Hinrich