lib/psd/layer.rb in psd-1.0.0 vs lib/psd/layer.rb in psd-1.1.0

- old
+ new

@@ -94,11 +94,12 @@ # We just delegate this to a normal method call. def [](val) self.send(val) end - def parse_channel_image!(header) #:nodoc: - # @image = ChannelImage.new(@file, header, self) + def parse_channel_image!(header, parse) + @image = ChannelImage.new(@file, header, self) + parse ? @image.parse : @image.skip end # Does this layer represent the start of a folder section? def folder? return false unless @adjustments.has_key?(:section_divider) \ No newline at end of file