Make processing of images easier via multiple dispatch
rikhuijzer opened this issue · comments
Rik Huijzer commented
The logic for processing images should be more easily user-extendable by allowing people to add extra image types and how to convert the image to SVG and PNG. So, interface could be as follows:
Books.svg(path, p::ExternalPlottingLibrary.Figure) = ExternalPlottingLibrary.save_svg(p)
Books.png(path, ...) = ...
Rik Huijzer commented
And just make this the default way to handle extra dependencies. For someone who writes a book, adding a few methods like this shouldn't be too bad.