Method: IsoDoc::HtmlFunction::Html#move_images
- Defined in:
- lib/isodoc/html_function/postprocess.rb
#move_images(docxml) ⇒ Object
presupposes that the image source is local
94 95 96 97 98 99 100 101 102 |
# File 'lib/isodoc/html_function/postprocess.rb', line 94 def move_images(docxml) FileUtils.rm_rf tmpimagedir FileUtils.mkdir tmpimagedir docxml.xpath("//*[local-name() = 'img'][@src]").each do |i| /^data:/.match? i["src"] and next @datauriimage ? datauri(i) : move_image1(i) end docxml end |