lib/frameit/editor.rb in frameit-0.2.1 vs lib/frameit/editor.rb in frameit-0.2.2
- old
+ new
@@ -1,5 +1,6 @@
+require 'deliver'
require 'fastimage'
module Frameit
class Editor
module Color
@@ -46,9 +47,10 @@
c.compose "Over"
c.geometry offset_information[:offset]
end
output_path = screenshot.gsub('.png', '_framed.png').gsub('.PNG', '_framed.png')
+ result.format "png"
result.write output_path
Helper.log.info "Added frame: '#{File.expand_path(output_path)}'".green
end
rescue => ex
Helper.log.error ex
\ No newline at end of file