[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-user
Subject:    AW: AW: Scaling images
From:       <markus.sticker.epos () zf ! com>
Date:       2014-02-26 8:07:04
Message-ID: BF53CA5B9B0DAE44A912C32CB11A44D123F0EF1A () FRDS01163 ! emea ! zf-world ! com
[Download RAW message or body]

Ok... but I didn't see how it should work.
My target is to have a implementation which is able to
down scale the images if it is necessary. In serveral cases
I get smaller images, so it is wrong to scale them to the max. space.
(Of course I need the "scale-down-to-fit")

Currently I have no idea how it can be fixed,
because I will get in my template different images and I don't know the
meassurements of them.


Von: Luis Bernardo [mailto:lmpmbernardo@gmail.com]
Gesendet: Mittwoch, 26. Februar 2014 00:56
An: fop-users@xmlgraphics.apache.org
Betreff: Re: AW: Scaling images


For you specifying an absolute height in the block-container or in the \
external-graphic should be the same (in terms of complexity). So I don't see the need \
for a workaround. But I will confirm whether the fact that content-height does not \
seem to take the height from the block-container is a bug, and then I will create a \
Jira ticket if needed.

On 2/25/14, 2:18 PM, markus.sticker.epos@zf.com<mailto:markus.sticker.epos@zf.com> \
wrote: Ok. But scaling has in our case to be dynamic.
So I even can calulate the maximum availiable space.
Will there be a bug created in the Jira?
What I mean is, will it be fixed by the apache team or
should I build a workaround?

Von: Luis Bernardo [mailto:lmpmbernardo@gmail.com]
Gesendet: Dienstag, 25. Februar 2014 14:05
An: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Betreff: Re: Scaling images

Add the height attribute to the external-graphic element. Now, I was expecting that \
height="100%" would work in this case but it doesn't seem to be the case so either \
there is a bug in the code or in my understanding. But if you specify an absolute \
value, say height="150mm", then it works.

On Mon, Feb 24, 2014 at 2:54 PM, \
<markus.sticker.epos@zf.com<mailto:markus.sticker.epos@zf.com>> wrote: But it fails \
also. Is there really a support of content-height="scale-to-fit"    ?

Von: Luis Bernardo [mailto:lmpmbernardo@gmail.com<mailto:lmpmbernardo@gmail.com>]
Gesendet: Montag, 24. Februar 2014 15:46

An: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Betreff: Re: Scaling images

Yes, that is the best approach. You can even check now that a percentage for the \
height attribute in the external-graphic element works since the height of the \
containing block is being explicitly set.

On Mon, Feb 24, 2014 at 2:25 PM, \
<markus.sticker.epos@zf.com<mailto:markus.sticker.epos@zf.com>> wrote: Ok should I \
                use something like this?
      <fo:block-container width="100mm" height="150mm" border="solid solid solid \
                solid" border-color="pink" background-color="violet" >
        <fo:block id="id1049528" border="solid solid solid solid" border-color="red" \
background-color="blue">  <fo:external-graphic \
src="url(file:///c:/temp/SernaPlugin/Source/draft/draft/hoch.jpg<file:///c:%5Ctemp%5CSernaPlugin%5CSource%5Cdraft%5Cdraft%5Choch.jpg>)" \
content-height="scale-to-fit"     scaling="uniform"/>  </fo:block>
      </fo:block-container>

Von: Luis Bernardo [mailto:lmpmbernardo@gmail.com<mailto:lmpmbernardo@gmail.com>]
Gesendet: Montag, 24. Februar 2014 14:33
An: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Betreff: Re: Scaling images

I think the issue is height="100%", which doesn't work the way you probably expect... \
When you specify 100%, you want 100% of what? Width does not suffer from the same \
"problem" because the width is constrained by the page width. Since the height is not \
constrained by the page height, as you maybe expected, then you get the  behavior you \
noticed.

From the spec for height:

<percentage>
Specifies a percentage height. The percentage is calculated with respect to the \
height of the generated box's containing block. If the height of the containing block \
is not specified explicitly (i.e., it depends on content height), the value is \
interpreted like "auto".

So that's what you get, i.e., you get auto.

On Mon, Feb 24, 2014 at 1:09 PM, \
<markus.sticker.epos@zf.com<mailto:markus.sticker.epos@zf.com>> wrote: Hello FOP,

I've got an issue about scalling images.
The target is to scale images so they fit to the space on the page.
Scaling the width works fine.
I set this ("breit.png" is a picture with extreme width):
<fo:external-graphic \
src="url(file:///c:/temp/SernaPlugin/Source/draft/draft/breit.png<file:///c:%5Ctemp%5CSernaPlugin%5CSource%5Cdraft%5Cdraft%5Cbreit.png>)" \
content-width="scale-to-fit"  width="100%" height="100%" \
inline-progression-dimension.maximum="100%" inline-progression-dimension.minimum="1%" \
scaling="uniform" />

So I tried this ("hoch.png" is a picture with extreme height) :
<fo:external-graphic \
src="url(file:///c:/temp/SernaPlugin/Source/draft/draft/hoch.png<file:///c:%5Ctemp%5CSernaPlugin%5CSource%5Cdraft%5Cdraft%5Choch.png>)" \
content-height="scale-to-fit" width="100%" height="100%" \
inline-progression-dimension.maximum="100%" inline-progression-dimension.minimum="1%" \
                scaling="uniform"/>
--> That failed --> The image was not scaled.

So what's wrong ?

Thanks and
Kind regards
Markus Sticker
Forschung und Entwicklung ZF Konzern/Research and Development ZF Group
Infrastruktur/Infrastructure (DTEP4)
ZF Friedrichshafen AG
88038 Friedrichshafen, Deutschland/Germany
Telefon/Phone  +49 7541 77-7644<tel:%2B49%207541%2077-7644>, Telefax/Fax  +49 7541 \
77-907644<tel:%2B49%207541%2077-907644> \
Markus.Sticker.Epos@zf.com<mailto:Markus.Sticker.Epos@zf.com>

Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio \
Behr Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. \
                Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf \
                Lutz
Sitz/Headquarters: Friedrichshafen
Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal \
court of Ulm HRB 630206


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	color:black;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Sprechblasentext Zchn";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";
	color:black;}
span.SprechblasentextZchn
	{mso-style-name:"Sprechblasentext Zchn";
	mso-style-priority:99;
	mso-style-link:Sprechblasentext;
	font-family:"Tahoma","sans-serif";
	mso-fareast-language:DE;}
span.E-MailFormatvorlage20
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.E-MailFormatvorlage21
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Ok&#8230; \
but I didn&#8217;t see how it should work.<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">My \
target is to have a implementation which is able to <br>
down scale the images if it is necessary. In serveral cases<br>
I get smaller images, so it is wrong to scale them to the max. \
space.<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">(Of \
course I need the &#8220;scale-down-to-fit&#8221;)<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Currently \
I have no idea how it can be fixed, <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">because \
I will get in my template different images and I don&#8217;t know the <br>
meassurements of them.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">Von:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> \
Luis Bernardo [mailto:lmpmbernardo@gmail.com] <br>
<b>Gesendet:</b> Mittwoch, 26. Februar 2014 00:56<br>
<b>An:</b> fop-users@xmlgraphics.apache.org<br>
<b>Betreff:</b> Re: AW: Scaling images<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal"><br>
For you specifying an absolute height in the block-container or in the \
external-graphic should be the same (in terms of complexity). So I don't see the need \
for a workaround. But I will confirm whether the fact that content-height does not \
seem to take the  height from the block-container is a bug, and then I will create a \
Jira ticket if needed.<br> <br>
On 2/25/14, 2:18 PM, <a \
href="mailto:markus.sticker.epos@zf.com">markus.sticker.epos@zf.com</a> \
wrote:<o:p></o:p></p> </div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Ok. \
But scaling has in our case to be dynamic.</span><o:p></o:p></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">So \
I even can calulate the maximum availiable space.</span><o:p></o:p></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Will \
there be a bug created in the Jira?</span><o:p></o:p></p> <p class="MsoNormal"><span \
lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">What \
I mean is, will it be fixed by the apache team or <br>
should I build a workaround?</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
 <p class="MsoNormal"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Von:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Luis \
Bernardo [<a href="mailto:lmpmbernardo@gmail.com">mailto:lmpmbernardo@gmail.com</a>] \
<br> <b>Gesendet:</b> Dienstag, 25. Februar 2014 14:05<br>
<b>An:</b> <a href="mailto:fop-users@xmlgraphics.apache.org">fop-users@xmlgraphics.apache.org</a><br>
 <b>Betreff:</b> Re: Scaling images</span><o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<div>
<p class="MsoNormal">Add the height attribute to the external-graphic element. Now, I \
was expecting that height=&quot;100%&quot; would work in this case but it doesn't \
seem to be the case so either there is a bug in the code or in my understanding. But \
if you specify  an absolute value, say height=&quot;150mm&quot;, then it \
works.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">&nbsp;<o:p></o:p></p>
<div>
<p class="MsoNormal">On Mon, Feb 24, 2014 at 2:54 PM, &lt;<a \
href="mailto:markus.sticker.epos@zf.com" \
target="_blank">markus.sticker.epos@zf.com</a>&gt; wrote:<o:p></o:p></p> <div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">But \
it fails also.</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:justify"> <span \
lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Is \
there really a support of \
content-height=&quot;scale-to-fit&quot;&nbsp;&nbsp;&nbsp;&nbsp;?</span><o:p></o:p></p>
 <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
 <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Von:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Luis \
Bernardo [mailto:<a href="mailto:lmpmbernardo@gmail.com" \
target="_blank">lmpmbernardo@gmail.com</a>] <br>
<b>Gesendet:</b> Montag, 24. Februar 2014 15:46</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
<b>An:</b> <a href="mailto:fop-users@xmlgraphics.apache.org" \
target="_blank">fop-users@xmlgraphics.apache.org</a><br> <b>Betreff:</b> Re: Scaling \
images<o:p></o:p></p> </div>
</div>
<div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
<div> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Yes, that is the best \
approach. You can even check now that a percentage for the height attribute in the \
external-graphic element works since the height of the containing block  is being \
explicitly set.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;margin-bottom:12.0pt">&nbsp;<o:p></o:p></p> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On \
Mon, Feb 24, 2014 at 2:25 PM, &lt;<a href="mailto:markus.sticker.epos@zf.com" \
target="_blank">markus.sticker.epos@zf.com</a>&gt; wrote:<o:p></o:p></p> <div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Ok \
should I use something like this?</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;fo:block-container width=&quot;100mm&quot; height=&quot;150mm&quot; \
border=&quot;solid solid solid solid&quot;  border-color=&quot;pink&quot; \
background-color=&quot;violet&quot; &gt;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;fo:block id=&quot;id1049528&quot; border=&quot;solid solid solid solid&quot; \
border-color=&quot;red&quot;  \
background-color=&quot;blue&quot;&gt;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;fo:external-graphic src=&quot;url(<a \
href="file:///c:%5Ctemp%5CSernaPlugin%5CSource%5Cdraft%5Cdraft%5Choch.jpg">file:///c:/temp/SernaPlugin/Source/draft/draft/hoch.jpg</a>)&quot;&nbsp;
  content-height=&quot;scale-to-fit&quot;&nbsp;&nbsp;&nbsp;&nbsp; \
scaling=&quot;uniform&quot;/&gt;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/fo:block&gt;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/fo:block-container&gt;</span><o:p></o:p></p> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
 <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Von:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Luis \
Bernardo [mailto:<a href="mailto:lmpmbernardo@gmail.com" \
target="_blank">lmpmbernardo@gmail.com</a>] <br>
<b>Gesendet:</b> Montag, 24. Februar 2014 14:33<br>
<b>An:</b> <a href="mailto:fop-users@xmlgraphics.apache.org" \
target="_blank">fop-users@xmlgraphics.apache.org</a><br> <b>Betreff:</b> Re: Scaling \
images</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I \
think the issue is height=&quot;100%&quot;, which doesn't work the way you probably \
expect... When you specify 100%, you want 100% of what? Width does not suffer from \
the same &quot;problem&quot;  because the width is constrained by the page width. \
Since the height is not constrained by the page height, as you maybe expected, then \
you get the &nbsp;behavior you noticed.<o:p></o:p></p> <div>
<div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">From \
the spec for height:<o:p></o:p></p> <div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&lt;percentage&gt;<o:p></o:p></p>
 </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Specifies a percentage \
height. The percentage is calculated with respect to the height of the<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">generated box's containing \
block. If the height of the containing block is not specified \
explicitly<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">(i.e., it depends on \
content height), the value is interpreted like &quot;auto&quot;.<o:p></o:p></p> \
</div> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">So \
that's what you get, i.e., you get auto.<o:p></o:p></p> </div>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;margin-bottom:12.0pt">&nbsp;<o:p></o:p></p> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On \
Mon, Feb 24, 2014 at 1:09 PM, &lt;<a href="mailto:markus.sticker.epos@zf.com" \
target="_blank">markus.sticker.epos@zf.com</a>&gt; wrote:<o:p></o:p></p> <div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
lang="EN-US">Hello FOP,</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
lang="EN-US">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
lang="EN-US">I&#8217;ve got an issue about scalling images.</span><o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
lang="EN-US">The target is to scale images so they fit to the space on the \
page.</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">Scaling \
the width works fine. </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
lang="EN-US">I set this (&#8220;breit.png&#8221; is a picture with extreme \
width):</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;,&quot;serif&quot;">&lt;fo:external-graphic src=&quot;url(<a \
href="file:///c:%5Ctemp%5CSernaPlugin%5CSource%5Cdraft%5Cdraft%5Cbreit.png">file:///c:/temp/SernaPlugin/Source/draft/draft/breit.png</a>)&quot;
  content-width=&quot;scale-to-fit&quot;&nbsp; width=&quot;100%&quot; \
height=&quot;100%&quot; inline-progression-dimension.maximum=&quot;100%&quot; \
inline-progression-dimension.minimum=&quot;1%&quot;&nbsp; scaling=&quot;uniform&quot; \
/&gt;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
lang="EN-US">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">So I \
tried this (&#8220;hoch.png&#8221; is a picture with extreme height) \
:</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:justify"> <span \
lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;,&quot;serif&quot;">&lt;fo:external-graphic src=&quot;url(<a \
href="file:///c:%5Ctemp%5CSernaPlugin%5CSource%5Cdraft%5Cdraft%5Choch.png">file:///c:/temp/SernaPlugin/Source/draft/draft/hoch.png</a>)&quot; \
content-height=&quot;scale-to-fit&quot;  width=&quot;100%&quot; \
height=&quot;100%&quot; inline-progression-dimension.maximum=&quot;100%&quot; \
inline-progression-dimension.minimum=&quot;1%&quot;&nbsp; \
scaling=&quot;uniform&quot;/&gt;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" \
style="font-family:Wingdings">à</span><span lang="EN-US"> That failed </span><span \
lang="EN-US" style="font-family:Wingdings">à</span><span lang="EN-US"> The image was \
not scaled.</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
lang="EN-US">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">So \
what&#8217;s wrong ?</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
lang="EN-US">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">Thanks \
and<br> </span><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Kind \
regards</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Markus \
Sticker</span><span lang="EN-US"><br> </span><span lang="EN-US" \
style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Forschung \
und Entwicklung ZF Konzern/Research and Development ZF Group</span><span \
lang="EN-US"><br> </span><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Infrastruktur/Infrastructure \
(DTEP4)</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">ZF \
</span></b><b><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Friedrichshafen \
AG</span></b><br> <span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">88038 \
Friedrichshafen, Deutschland/Germany<br> Telefon/Phone&nbsp; <a \
href="tel:%2B49%207541%2077-7644" target="_blank">&#43;49 7541 77-7644</a>, \
Telefax/Fax&nbsp; <a href="tel:%2B49%207541%2077-907644" target="_blank">&#43;49 7541 \
77-907644</a></span><br> <u><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><a \
href="mailto:Markus.Sticker.Epos@zf.com" \
target="_blank">Markus.Sticker.Epos@zf.com</a></span></u><o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><br> \
<span style="font-size:7.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Vorsitzender \
des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr <br>
Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. Konstantin \
Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf Lutz</span><o:p></o:p></p> \
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:7.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Sitz/Headquarters: \
Friedrichshafen <br>
Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal \
court of Ulm HRB 630206</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> </div>
</div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> </div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> </div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
</div>
</blockquote>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic