|
Subject: Re: Automatic image scaling From: Tony Graham <tgraham@xxxxxxxxxxxxxxxx> Date: Thu, 23 Jul 1998 16:51:01 -0400 (EDT) |
At 23 Jul 1998 14:42 -0500, Kendall Clark wrote:
> Dssslers,
>
> I'd like to be able to have DSSSL scale my images depending on the
> value of %body-width%.
>
> Has anyone done this or can you suggest an approach; one problem is that
> DSSSL/Jade will need to know the dimensions of the original image so
> it can compute a scale factor... but how does it get the dimensions of
> the original image? I would be willing to modify the DocBook DTD to add
> attributes like file-width and file-height.
You should be able to set the max-width characteristic of your
external graphics, and you should be able to work out the available
width from the page width, left-margin, and right-margin plus
actual-start-indent and actual-end-indent at the current point.
As I read section 12.5.2, you should also be able to use:
(make external-graphic
entity-system-id: "graphic.eps"
display?: #t
max-width: (display-size))
See http://www.mulberrytech.com/dsssl/dssslist/archive/0822.html.
Regards,
Tony Graham
=======================================================================
Tony Graham
Mulberry Technologies, Inc. Phone: 301-315-9632
17 West Jefferson Street, Suite 207 Fax: 301-315-8285
Rockville, MD USA 20850 email: tgraham@xxxxxxxxxxxxxxxx
=======================================================================
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Automatic image scaling, Kendall Clark | Thread | Processing CDATA content with DSSSL, Thomas Corte |
| Automatic image scaling, Kendall Clark | Date | Processing CDATA content with DSSSL, Thomas Corte |
| Month |