lib/psd_native.rb in psd_native-0.6.0 vs lib/psd_native.rb in psd_native-1.0.0
- old
+ new
@@ -1,20 +1,26 @@
require "psd"
+require "oily_png"
module PSDNative
def self.included(base)
base::Image.send(:include, PSDNative::ImageMode::RGB)
base::Image.send(:include, PSDNative::ImageMode::CMYK)
base::Image.send(:include, PSDNative::ImageMode::Greyscale)
base::Image.send(:include, PSDNative::ImageFormat::RLE)
+ base::ChannelImage.send(:include, PSDNative::ImageFormat::LayerRAW)
base::Color.send(:include, PSDNative::Color)
- base::Node.send(:include, PSDNative::Node::BuildPreview)
base::Util.extend PSDNative::Util
- base::ClippingMask.class_eval do
- remove_method :apply
+ base::Renderer::ClippingMask.class_eval do
+ remove_method :apply!
end
- base::ClippingMask.send(:include, PSDNative::ClippingMask)
+ base::Renderer::ClippingMask.send(:include, PSDNative::Renderer::ClippingMask)
+
+ base::Renderer::Blender.class_eval do
+ remove_method :compose!
+ end
+ base::Renderer::Blender.send(:include, PSDNative::Renderer::Blender)
end
end
require "psd_native/version"
require "psd_native/psd_native"
\ No newline at end of file