Class: PSD::MetadataSetting
- Defined in:
- lib/psd/layer_info/metadata_setting.rb
Instance Attribute Summary
Attributes inherited from LayerInfo
Instance Method Summary collapse
Methods inherited from LayerInfo
Constructor Details
This class inherits a constructor from PSD::LayerInfo
Instance Method Details
#parse ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/psd/layer_info/metadata_setting.rb', line 7 def parse count = @file.read_int count.times do @file.seek 4, IO::SEEK_CUR # signature, always 8BIM key = @file.read_string(4) copy_on_sheet_dup = @file.read(1).bytes.to_a[0] @file.seek 3, IO::SEEK_CUR # Padding len = @file.read_int data_end = @file.tell + len PSD.logger.debug "Layer metadata: key = #{key}, length = #{len}" parse_layer_comp_setting if key == 'cmls' @file.seek data_end end end |