lib/vectory.rb in vectory-0.6.0 vs lib/vectory.rb in vectory-0.7.0
- old
+ new
@@ -2,10 +2,11 @@
require "logger"
require_relative "vectory/version"
require_relative "vectory/utils"
require_relative "vectory/image"
+require_relative "vectory/image_resize"
require_relative "vectory/datauri"
require_relative "vectory/vector"
require_relative "vectory/eps"
require_relative "vectory/ps"
require_relative "vectory/emf"
@@ -38,7 +39,11 @@
Pathname.new(File.dirname(__dir__))
end
def self.convert(image, format)
image.convert(format)
+ end
+
+ def self.image_resize(img, path, maxheight, maxwidth)
+ Vectory::ImageResize.new.call(img, path, maxheight, maxwidth)
end
end