Module: Vectory
- Defined in:
- lib/vectory.rb,
lib/vectory/ps.rb,
lib/vectory/cli.rb,
lib/vectory/emf.rb,
lib/vectory/eps.rb,
lib/vectory/svg.rb,
lib/vectory/image.rb,
lib/vectory/utils.rb,
lib/vectory/vector.rb,
lib/vectory/capture.rb,
lib/vectory/datauri.rb,
lib/vectory/version.rb,
lib/vectory/file_magic.rb,
lib/vectory/svg_mapping.rb,
lib/vectory/system_call.rb,
lib/vectory/image_resize.rb,
lib/vectory/svg_document.rb,
lib/vectory/inkscape_converter.rb
Defined Under Namespace
Modules: Capture
Classes: CLI, ConversionError, Datauri, Emf, Eps, Error, FileMagic, Image, ImageResize, InkscapeConverter, InkscapeNotFoundError, InkscapeQueryError, NotImplementedError, NotWrittenToDiskError, ParsingError, Ps, Svg, SvgDocument, SvgMapping, SystemCall, SystemCallError, Utils, Vector
Constant Summary
collapse
- VERSION =
"0.7.5"
Class Method Summary
collapse
Class Method Details
.convert(image, format) ⇒ Object
44
45
46
|
# File 'lib/vectory.rb', line 44
def self.convert(image, format)
image.convert(format)
end
|
.image_resize(img, path, maxheight, maxwidth) ⇒ Object
48
49
50
|
# File 'lib/vectory.rb', line 48
def self.image_resize(img, path, maxheight, maxwidth)
Vectory::ImageResize.new.call(img, path, maxheight, maxwidth)
end
|
.root_path ⇒ Object
40
41
42
|
# File 'lib/vectory.rb', line 40
def self.root_path
Pathname.new(File.dirname(__dir__))
end
|
.ui ⇒ Object
33
34
35
36
37
38
|
# File 'lib/vectory.rb', line 33
def self.ui
@ui ||= Logger.new(STDOUT).tap do |logger|
logger.level = ENV['VECTORY_LOG'] || Logger::WARN
logger.formatter = proc { |severity, datetime, progname, msg| "#{msg}\n" }
end
end
|