Low-level API that translates binary data to Python structure.
All the data structure in this subpackage inherits from one of the object
PSD(header=NOTHING, color_mode_data=NOTHING, image_resources=NOTHING, layer_and_mask_information=NOTHING, image_data=NOTHING)¶
Low-level PSD file structure that resembles the specification.
from psd_tools.psd import PSD with open(input_file, 'rb') as f: psd = PSD.read(f) with open(output_file, 'wb') as f: psd.write(f)