Re: external-graphic : twice request for the same element

2003-09-20 Thread Thomas Sondag
Le jeu 18/09/2003 à 23:38, J.Pietschmann a écrit :
 Thomas S wrote:
  I'm using FOP fop-0.20.5 with fop.sh script and for all external-graphic
  element, I can see 2 requests in my apache log.
 
 Well, this happens for a few image formats. FOP first opens
 a connection to check the image type (format), then may access
 the URL again to do the actual processing.
 However:
   src=http://agarycus/perl/mat_tests/A/A.jpg/
 
 I could have sworn JPGs are accessed only once (GIFs are accessed
 twice for sure).
I try with PNG too, but I still have the same problem 

  Is that normal ? Can I change it ?
 Not easily. Your options:
 - cache in the image your generator
That's what I do now.
 - use another format (check the FOP website for supported formats)
It's not an option for me, I can just generate PNG or JPEG.
 - provide a patch for FOP
The better way for sure, but I haven't got any competences for java coding.

 J.Pietschmann
Thank's for your help

 Thomas S.


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



Re: external-graphic : twice request for the same element

2003-09-18 Thread J.Pietschmann
Thomas S wrote:
I'm using FOP fop-0.20.5 with fop.sh script and for all external-graphic
element, I can see 2 requests in my apache log.
Well, this happens for a few image formats. FOP first opens
a connection to check the image type (format), then may access
the URL again to do the actual processing.
However:
 src=http://agarycus/perl/mat_tests/A/A.jpg/
I could have sworn JPGs are accessed only once (GIFs are accessed
twice for sure).
Is that normal ? Can I change it ?
Not easily. Your options:
- cache in the image your generator
- use another format (check the FOP website for supported formats)
- provide a patch for FOP
J.Pietschmann

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


external-graphic : twice request for the same element

2003-09-17 Thread Thomas S
Hello,

I'm using FOP fop-0.20.5 with fop.sh script and for all external-graphic
element, I can see 2 requests in my apache log.
So I lose lot of time for dynamically generated images.

Is that normal ? Can I change it ?

my .fo file : 

?xml version=1.0 encoding=utf-8?
 
fo:root font-family=Times Roman font-size=12pt text-align=center
xmlns:fo=http://www.w3.org/1999/XSL/Format;
 
fo:layout-master-set
fo:simple-page-master
  margin-right=1.5cm
  margin-left=1.5cm
  margin-bottom=2cm
  margin-top=1cm
  page-width=21cm
  page-height=29.7cm
  master-name=left
  fo:region-body margin-top=1cm/
/fo:simple-page-master
 
/fo:layout-master-set
 
fo:page-sequence id=N2528 master-reference=left
 
 
fo:flow flow-name=xsl-region-body
  fo:block
fo:external-graphic width=100pt height=100pt
content-width=50pt content-height=50pt
src=http://agarycus/perl/mat_tests/A/A.jpg/
  /fo:block
/fo:flow
/fo:page-sequence
/fo:root

Apache log :
172.16.23.6 - - [17/Sep/2003:16:01:54 +0200] GET
/perl/mat_tests/A/A.jpg HTTP/1.1 200 3976 - Java1.3.1
172.16.23.6 - - [17/Sep/2003:16:01:54 +0200] GET
/perl/mat_tests/A/A.jpg HTTP/1.1 200 3976 - Java1.3.1


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