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/inkscape_converter.rb
Defined Under Namespace
Modules: Capture
Classes: CLI, ConversionError, Datauri, Emf, Eps, Error, FileMagic, Image, ImageResize, InkscapeConverter, InkscapeNotFoundError, InkscapeQueryError, NotImplementedError, NotWrittenToDiskError, Ps, Svg, SvgMapping, SystemCall, SystemCallError, Utils, Vector
Constant Summary
collapse
- VERSION =
"0.7.3"
Class Method Summary
collapse
Class Method Details
.convert(image, format) ⇒ Object
42
43
44
|
# File 'lib/vectory.rb', line 42
def self.convert(image, format)
image.convert(format)
end
|
.image_resize(img, path, maxheight, maxwidth) ⇒ Object
46
47
48
|
# File 'lib/vectory.rb', line 46
def self.image_resize(img, path, maxheight, maxwidth)
Vectory::ImageResize.new.call(img, path, maxheight, maxwidth)
end
|
.root_path ⇒ Object
38
39
40
|
# File 'lib/vectory.rb', line 38
def self.root_path
Pathname.new(File.dirname(__dir__))
end
|
.ui ⇒ Object
31
32
33
34
35
36
|
# File 'lib/vectory.rb', line 31
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
|