Sha256: 767b12a232d247ce55dabb6b8c20938c15576ef98ca8e60867b8df2fcefb53bc
Contents?: true
Size: 660 Bytes
Versions: 9
Compression:
Stored size: 660 Bytes
Contents
# frozen_string_literal: true module Vectory class Ps < Vector def self.default_extension "ps" end def self.mimetype "application/postscript" end def self.from_node(node) return from_content(node.children.to_xml) unless node.text.strip.empty? uri = node["src"] return Vectory::Datauri.new(uri).to_vector if %r{^data:}.match?(uri) from_path(uri) end def to_eps convert_with_inkscape("--export-type=eps", Eps) end def to_emf convert_with_inkscape("--export-type=emf", Emf) end def to_svg convert_with_inkscape("--export-type=svg", Svg) end end end
Version data entries
9 entries across 9 versions & 1 rubygems