Method: IsoDoc::Function::Utils#image_localfile
- Defined in:
- lib/isodoc/function/utils.rb
#image_localfile(img) ⇒ Object
190 191 192 193 194 195 196 197 198 |
# File 'lib/isodoc/function/utils.rb', line 190 def image_localfile(img) if /^data:/.match? img["src"] save_dataimage(img["src"], false) elsif %r{^([A-Z]:)?/}.match? img["src"] img["src"] else File.join(@localdir, img["src"]) end end |