As long as I do not do anything to my smaller images they work fine, however,
I want to use the same code for big and small images without having to check
for the widths. e.g.

This is what happens when i don't add any attributes to my
external-graphics, all I add is a src.

                                                            |
Hello there! [SMALL_IMAGE] oo this is coo   |
o i know [SMALL_IMAGE] hello world blah    |
[                     BIG_IMAGE                       |                ] (<-
overflows the block-container)
hello this is some more text blah balh blah   |

So now how do I keep everything the same and just make the BIG_IMAGE not
overflow the block, but rather scale it down to fit within the block.  I do
not know the with of any of the images, and the small images need to keep
the same effect.


_zachary_ wrote:
> 
> Hey Guys,
> 
> I would love some help on this issue because it has been driving me crazy.
> First, let me describe what I am trying to do.  I am trying to make images
> that are bigger than my fo:block shrink to the size of the block, breaking
> it off to its own line, so that no text is before or after it.  Next, for
> the images that are smaller than my block I want my text to flow around
> the image.
> 
> Now then, the only way that I have been able to obtain this functionality
> is by calculating the widths of the images, if they are bigger than my
> fo:block then i do the following:
>   <fo:external-graphic src="url('[EMAIL PROTECTED]')">
>     <xsl:attribute name="width">100%</xsl:attribute>
>     <xsl:attribute name="content-width">scale-to-fit</xsl:attribute>
>     <xsl:attribute name="content-height">100%</xsl:attribute>
>   </fo:external-graphic>
> This code works great for the big images, however when I apply the same
> code to the smaller images they don't allow text to flow around them, due
> to the width being 100%.  I tried using the scale-down-to-fit method in
> 0.95b but it didn't seem to do anything.  Does anyone have a solution to
> this so that my code can be dynamic and I don't have to do many
> calculations to fix the width?
> 
> Thank you for your time
> 
> zach
> 

-- 
View this message in context: 
http://www.nabble.com/0.94-AND-0.95b-Images-tp17627201p17628246.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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

Reply via email to