<html>
Yes thank you,<br>
<br>
I thought of this as well, but It will be quite a hassle to get this
right.<br>
Images in tables, images in lists etc. all complicate things quite a
bit<br>
I would have to calculate for each image the possible width, and with all
those possible contexts it's not allways that easy.<br>
(calculate the print area width as you call it)<br>
<br>
However I will give it a try once more, thank you all for your
replies.<br>
<br>
grtz<br>
Ronald<br>
<br>
At 05:26 PM 14-10-02 +0200, you wrote:<br>
<blockquote type=cite class=cite cite><font face="Courier New, Courier" size=2>Hi,</font><br>
&nbsp;<br>
<font face="Courier New, Courier" size=2>I handle this problem as
follows: Before calling XEP, I call a</font><br>
<font face="Courier New, Courier" size=2>little Perl script that uses
Image Alchemy to determine the</font><br>
<font face="Courier New, Courier" size=2>dimensions (in pixel) and
resolution of each image file. Based </font><br>
<font face="Courier New, Courier" size=2>on this, the script calculates
the width and height (in cm) of</font><br>
<font face="Courier New, Courier" size=2>each graphic and stores the
result in an xml-file.</font><br>
&nbsp;<br>
<font face="Courier New, Courier" size=2>For each graphic, my stylesheet
reads the graphic width and height </font><br>
<font face="Courier New, Courier" size=2>from this xml-file and compares
it with the print area width and </font><br>
<font face="Courier New, Courier" size=2>height. If the image exceeds the
print area, the stylesheet computes </font><br>
<font face="Courier New, Courier" size=2>a scale factor for width and
height and uses the lesser of these </font><br>
<font face="Courier New, Courier" size=2>values for both content-width
and content-height.</font><br>
&nbsp;<br>
<font face="Courier New, Courier" size=2>Hope this helps.</font><br>
&nbsp;<br>
<font face="Courier New, Courier" size=2>Regards</font><br>
<font face="Courier New, Courier" size=2>Matthias</font><br>
&nbsp;<br>
&nbsp;<br>
<font face="tahoma" size=2>-----Original Message-----<br>
<b>From:</b> ronald heller
[<a href="mailto:ronald@salience.nl" eudora="autourl">mailto:ronald@salience.nl</a>]<br>
<b>Sent:</b> Monday, October 14, 2002 4:20 PM<br>
<b>To:</b> xep-support@renderx.com<br>
<b>Subject:</b> [xep-support] scale-when-image-is-too-big<br>
<br>
</font>Hello there,<br>
<br>
I work with XSL FO files everynow and then, and mostly use FOP. Well not
everything is supported in fop so I started using XEP.<br>
Great results...except for my graphics.<br>
<br>
To my surprise I read that Xep currently doesn't support
content-width=&quot;scale-to-fit&quot;. For most of my publications this
is essential.<br>
Actually I do not want to scale if my image is small enough to fit, but I
do want to scale when my image is too large, so one could say
scale-to-fit is not a real solution either :-)<br>
I'm looking for a <i>&quot;scale-when-image-is-too-big&quot;</i> sort of
solution.<br>
<br>
Has any of you have some relevant experience with scaling images in XEP
and maybe you can give me some pointers here.<br>
I can't be the only one having this problem.... can I ?<br>
<br>
Grtz<br>
Ronald<br>
------------------- By using the Service, you expressly agree to these
Terms of Service
<a href="http://www.renderx.com/tos.html" eudora="autourl">http://www.renderx.com/tos.html</a>
</blockquote>
<x-sigsep><p></x-sigsep>
Salience B.V.<br>
&quot;The XML place to be&quot;<br>
Coltbaan 27b<br>
3439 NG Nieuwegein<br>
<br>
Ronald Heller<br>
Technisch Consultant<br>
<a href="http://www.salience.nl/" eudora="autourl">www</a>.salience.<a href="http://www.salience.nl/" eudora="autourl">nl<br>
</a>ronald@salience.nl<br>
<br>
T +31(0)30 60 56 675 <br>
F +31(0)30 60 56 324 <br>
M +31(0)6 20 41 25 77<br>
MSN ronald_heller@hotmail.com<br>
</html>

-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html