Class: Vectory::Eps
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
Class Method Details
.default_extension ⇒ Object
5
6
7
|
# File 'lib/vectory/eps.rb', line 5
def self.default_extension
"eps"
end
|
.mimetype ⇒ Object
9
10
11
|
# File 'lib/vectory/eps.rb', line 9
def self.mimetype
"application/postscript"
end
|
Instance Method Details
#to_emf ⇒ Object
21
22
23
|
# File 'lib/vectory/eps.rb', line 21
def to_emf
convert_with_inkscape("--export-type=emf", Emf)
end
|
#to_ps ⇒ Object
13
14
15
|
# File 'lib/vectory/eps.rb', line 13
def to_ps
convert_with_inkscape("--export-type=ps", Ps)
end
|
#to_svg ⇒ Object
17
18
19
|
# File 'lib/vectory/eps.rb', line 17
def to_svg
convert_with_inkscape("--export-plain-svg --export-type=svg", Svg)
end
|