lib/psd/image_formats/layer_raw.rb in psd-1.5.0 vs lib/psd/image_formats/layer_raw.rb in psd-2.0.0
- old
+ new
@@ -5,10 +5,10 @@
# Since we're parsing on a per-channel basis, we need to modify the behavior
# of the RAW encoding parser a bit. This version is aware of the current
# channel data position, since layers that have RAW encoding often use RLE
# encoded alpha channels.
- def parse_raw!(length = @length)
+ def parse_raw!
PSD.logger.debug "Attempting to parse RAW encoded channel..."
(@chan_pos...(@chan_pos + @ch_info[:length] - 2)).each do |i|
@channel_data[i] = @file.read(1).bytes.to_a[0]
end
\ No newline at end of file