DeepBlueCLtd / LegacyMan

Legacy content for Field Service Manual
https://deepbluecltd.github.io/LegacyMan/index.html
Apache License 2.0
2 stars 0 forks source link

Need to retain dimensions of flag #639

Closed IanMayo closed 6 months ago

IanMayo commented 6 months ago

At the start of the country pages, we show a flag.

We don't provide size values, so it is displayed at the original size.

This has resulted in flag images with a wide range of sizes.

We should extract the height and width from the original source, and propagate these to DITA. Here is a sample of the original source:

<div name="BritainFlag" id="image10" style="position: absolute; visibility: visible; left: 5px; top: 6px; width: 66px; height: 37px">
    <a href="../Britain1/Britain1.html">
          <img src="Content/Images/FlagS.jpg" name="image2" width="66" height="37">
    </a>
</div>

Here is how the height/width should be specified in the DITA:

   <image height="177" width="98" href="Content/Images/daf_3.jpeg"/>