Method: IsoDoc::PresentationXMLConvert#svg_prep
- Defined in:
- lib/isodoc/presentation_function/image.rb
#svg_prep(img) ⇒ Object
142 143 144 145 146 |
# File 'lib/isodoc/presentation_function/image.rb', line 142 def svg_prep(img) img["mimetype"] = "image/svg+xml" %r{^data:}.match?(img["src"]) or img["src"] = Vectory::Emf.from_path(img["src"]).to_uri.content end |