Log in

HCMC Journal

Automated image dimensions in the build process

to : Martin Holmes
Minutes: 290

Building on work started in LEMDO, PS and I have implemented a build step which parses the image directory and generates a text file with all the image dimensions; this file is then picked up by the XSLT and used to add width, height, and a class expressing aspect ratio, to any image tag. This means the information never has to be added by the encoder, and is always guaranteed to be correct. Another bonus is that any mis-linked images generate an error, and we were able to find and fix several of these.

For the rest of the week, helped PS as he implements new XSLT to handle portraits and figures.