Sha256: 8391d48d4cb304f02e29a1e18025c1da99ad3470e011a32276c904fd0eb902f6
Contents?: true
Size: 526 Bytes
Versions: 5
Compression:
Stored size: 526 Bytes
Contents
# frozen_string_literal: true require "emf2svg" module Vectory class Emf < Vector def self.default_extension "emf" end def self.mimetype "image/emf" end def to_svg with_file("emf") do |input_path| content = Emf2svg.from_file(input_path).sub(/<\?[^>]+>/, "") Svg.from_content(content) end end def to_eps convert_with_inkscape("--export-type=eps", Eps) end def to_ps convert_with_inkscape("--export-type=ps", Ps) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
vectory-0.4.2 | lib/vectory/emf.rb |
vectory-0.4.1 | lib/vectory/emf.rb |
vectory-0.4.0 | lib/vectory/emf.rb |
vectory-0.3.0 | lib/vectory/emf.rb |
vectory-0.2.0 | lib/vectory/emf.rb |