Class: Vectory::Eps

Inherits:
Vector show all
Defined in:
lib/vectory/eps.rb

Instance Attribute Summary

Attributes inherited from Vector

#initial_path

Attributes inherited from Image

#content

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Vector

#convert_with_inkscape, #file_size, from_path, #height, #initialize, #mime, #path, #size, #to_uri, #width, #write

Methods inherited from Image

from_content, from_path, #initialize

Constructor Details

This class inherits a constructor from Vectory::Vector

Class Method Details

.default_extensionObject



5
6
7
# File 'lib/vectory/eps.rb', line 5

def self.default_extension
  "eps"
end

.mimetypeObject



9
10
11
# File 'lib/vectory/eps.rb', line 9

def self.mimetype
  "application/postscript"
end

Instance Method Details

#to_emfObject



21
22
23
# File 'lib/vectory/eps.rb', line 21

def to_emf
  convert_with_inkscape("--export-type=emf", Emf)
end

#to_psObject



13
14
15
# File 'lib/vectory/eps.rb', line 13

def to_ps
  convert_with_inkscape("--export-type=ps", Ps)
end

#to_svgObject



17
18
19
# File 'lib/vectory/eps.rb', line 17

def to_svg
  convert_with_inkscape("--export-plain-svg --export-type=svg", Svg)
end