Closed trevorld closed 1 year ago
The {knitr} fig.process option allows one to post-process images - https://yihui.org/knitr/options/#plots
{knitr}
fig.process
fig.process should be a function that takes one or two arguments
Path of image to be processed
options List of chunk options (optional)
options
Should return (possibly new) path of image
Would be nice to be able to automatically embed relevant metadata...
[ ] Function that takes XMP tags and returns a suitable fig.process() function
fig.process()
[ ] Function that takes XMP tags and returns a function that can take further XMP tags and returns a fig.process() function
xmp()
fig.cap
dc:description
fig.lat
Iptc4xmpCore:AltTextAccessibility
fig.scap
photoshop:Headline
The
{knitr}
fig.process
option allows one to post-process images - https://yihui.org/knitr/options/#plotsfig.process
should be a function that takes one or two argumentsPath of image to be processed
options
List of chunk options (optional)Should return (possibly new) path of image
Would be nice to be able to automatically embed relevant metadata...
[ ] Function that takes XMP tags and returns a suitable
fig.process()
function[ ] Function that takes XMP tags and returns a function that can take further XMP tags and returns a
fig.process()
functionxmp()
object function?