Reputation: 1339
I have a directory of images that I want to create a montage from.
These images have the following sizes:
image-00.png
= 19 x 21
image-01.png
= 20 x 22
image-02.png
= 25 x 30
When I create a montage with:
magick montage *.png -mode Concatenate -background transparent info.html
using just the first two images, the html coords
look correct:
<map id="image" name="image">
<area href="image-00.png" shape="rect" coords="0,0,19,21" alt="" />
<area href="image-01.png" shape="rect" coords="20,0,39,21" alt="" />
</map>
However, when I add in the third image, the coordinates are different and incorrect as the first two frames are now larger:
<map id="image" name="image">
<area href="image-00.png" shape="rect" coords="0,0,24,29" alt="" />
<area href="image-01.png" shape="rect" coords="25,0,49,29" alt="" />
<area href="image-02.png" shape="rect" coords="50,0,74,29" alt="" />
</map>
I'm not sure why this happens since the dimensions of the first two frames didn't change. I'd like to be able to grab the exact position of each image from the html but I'm not sure how to do so when the coordinates aren't correct.
Edit:
The images I'm using:
Upvotes: 0
Views: 57