Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image stretch for maxwidth/maxheight #321

Closed
pgundlach opened this issue Mar 8, 2021 · 0 comments
Closed

Image stretch for maxwidth/maxheight #321

pgundlach opened this issue Mar 8, 2021 · 0 comments
Assignees

Comments

@pgundlach
Copy link
Member

The image should grow if the "natural width" or "natural height" of an image is smaller than maxwidth or max height:

<Layout xmlns="urn:speedata.de:2009/publisher/en"
    xmlns:sd="urn:speedata:2009/publisher/functions/en">
    <Trace grid="yes"/>
    <Record element="data">
        <PlaceObject>
            <Image file="cow.pdf" maxwidth="15cm" maxheight="15cm"></Image>
        </PlaceObject>
    </Record>
</Layout>

The file cow.pdf is approx. 10cm x 7cm, it should (with a switch) grow to 15 * 11 or so.

@pgundlach pgundlach self-assigned this Mar 8, 2021
pgundlach added a commit that referenced this issue Mar 9, 2021
This implements #321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant