Sha256: 11fa3fc93874997215b74848e1f64181a5903dea41a41990726a58154b9b6934
Contents?: true
Size: 704 Bytes
Versions: 5
Compression:
Stored size: 704 Bytes
Contents
require 'psd/layer_info' class PSD # This is the new way that Photoshop stores the brightness/contrast # data. If this data is present, DO NOT use the legacy BrightnessContrast # info block. class ContentGenerator < LayerInfo def self.should_parse?(key) key == 'CgEd' end def parse # Version @file.seek 4, IO::SEEK_CUR @data = Descriptor.new(@file).parse end def brightness @data['Brgh'] end def contrast @data['Cntr'] end def mean_value @data['means'] end def lab_color @data['Lab '] end def use_legacy @data['useLegacy'] end def auto @data['Auto'] end end end
Version data entries
5 entries across 5 versions & 1 rubygems