Sha256: 6918297569df03b6fb26c2d73d64d155f7175cbb35a95605b183fb47eb6ef00f

Contents?: true

Size: 1.83 KB

Versions: 22

Compression:

Stored size: 1.83 KB

Contents

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="210mm" height="297mm" viewBox="0 0 1050 1485"
     xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">

  <g transform="translate(50 0)">
    <text y="25" font-size="12pt">wide image, aspect ratio meet</text>

    <rect y="50" width="100" height="100" fill="none" stroke="blue" stroke-width="2"/>
    <image y="50" width="100" height="100" preserveAspectRatio="xMidYMid" xlink:href="sample_images/mushroom-wide.jpg"></image>

    <rect y="200" width="150" height="100" fill="none" stroke="blue" stroke-width="2"/>
    <image y="200" width="150" height="100" xlink:href="sample_images/mushroom-wide.jpg"></image>

    <rect y="350" width="100" height="150" fill="none" stroke="blue" stroke-width="2"/>
    <image y="350" width="100" height="150" xlink:href="sample_images/mushroom-wide.jpg"></image>

    <rect y="550" width="150" height="100" fill="none" stroke="blue" stroke-width="2"/>
    <image y="550" width="150" height="100" preserveAspectRatio="xMinYMin" xlink:href="sample_images/mushroom-wide.jpg"></image>

    <rect y="700" width="100" height="150" fill="none" stroke="blue" stroke-width="2"/>
    <image y="700" width="100" height="150" preserveAspectRatio="xMinYMin" xlink:href="sample_images/mushroom-wide.jpg"></image>

    <rect y="900" width="150" height="100" fill="none" stroke="blue" stroke-width="2"/>
    <image y="900" width="150" height="100" preserveAspectRatio="xMaxYMax" xlink:href="sample_images/mushroom-wide.jpg"></image>

    <rect y="1050" width="100" height="150" fill="none" stroke="blue" stroke-width="2"/>
    <image y="1050" width="100" height="150" preserveAspectRatio="xMaxYMax" xlink:href="sample_images/mushroom-wide.jpg"></image>
  </g>
</svg>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
prawn-svg-0.23.1 spec/sample_svg/image03.svg
prawn-svg-0.23.0 spec/sample_svg/image03.svg