Skip to content

Instantly share code, notes, and snippets.

@eerohele
Last active November 16, 2015 20:18
Show Gist options
  • Select an option

  • Save eerohele/651c1c6fe70cba9aa19e to your computer and use it in GitHub Desktop.

Select an option

Save eerohele/651c1c6fe70cba9aa19e to your computer and use it in GitHub Desktop.
DITA-OT image metadata
<project name="test">
<target name="dita2ltIntermediate" depends="build-init, preprocess, lt.image.metadata"/>
<target name="lt.image.metadata" depends="build-init">
<pipeline message="Read image metadata." taskname="image-metadata" tempdir="${dita.temp.dir}">
<module class="org.dita.dost.module.ImageMetadataModule">
<param name="outputdir" location="${output.dir}"/>
</module>
</pipeline>
</target>
</project>
< <image href="../image/carwash.jpg" alt="washing the car" height="171" width="249" placement="inline" class="- topic/image " xtrf="file:/Users/eerohele/Git/dita-ot/src/main/samples/tasks/washingthecar.xml" xtrc="image:1;28:14"/>
---
> <image href="../image/carwash.jpg" alt="washing the car" height="171" width="249" placement="inline" class="- topic/image " xtrf="file:/Users/eerohele/Git/dita-ot/src/main/samples/tasks/washingthecar.xml" xtrc="image:1;28:14" dita-ot:image-width="249" dita-ot:image-height="171" dita-ot:horizontal-dpi="150" dita-ot:vertical-dpi="150"/>
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="my.test">
<feature extension="dita.conductor.target.relative" file="build.xml"/>
<transtype name="ltIntermediate" desc="ltIntermediate"/>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment