On Fri, 23 Nov 2012, Guy Stalnaker wrote:
But I'm left with another problem, again something that becomes apparent as the difference between having two output formats in my document workflow: markdown -> pandoc -> html/text -> context tex -> pdf. This time it's images that are too wide for the available textarea in the pdf document. Now that the dpi is set, they display at the expected full resolution, yet if they are greater than 6.5*72=438 pixels, they go over the right margin. I know I can, individually, modify each /externalfigure directive and add 'width=\textwidth', but that really is a PITA. This document will have close to a hundred images.
I will investigate using a commandline script, exif data, and convert to work through all of the images in the folder to scale/resize them so that they fit in the PDF document margin width. I don't think that the html version will suffer if I do this.
\setupexternalfigures[maxwidth=\textwidth] Aditya