psd_tools.psd.tagged_blocks¶
Tagged block data structure.
Todo
Support the following tagged blocks: Tag.PATTERN_DATA
,
Tag.TYPE_TOOL_INFO
, Tag.LAYER
,
Tag.ALPHA
TaggedBlocks¶
- class psd_tools.psd.tagged_blocks.TaggedBlocks(items=NOTHING)[source]¶
Dict of tagged block items.
See
Tag
for available keys.Example:
from psd_tools.constants import Tag # Iterate over fields for key in tagged_blocks: print(key) # Get a field value = tagged_blocks.get_data(Tag.TYPE_TOOL_OBJECT_SETTING)
TaggedBlock¶
Annotations¶
Annotation¶
- class psd_tools.psd.tagged_blocks.Annotation(kind: bytes = b'txtA', is_open: int = 0, flags: int = 0, optional_blocks: int = 1, icon_location=NOTHING, popup_location=NOTHING, color=NOTHING, author: str = '', name: str = '', mod_date: str = '', marker: bytes = b'txtC', data: bytes = b'')[source]¶
Annotation structure.
- kind¶
- is_open¶
Bytes¶
ChannelBlendingRestrictionsSetting¶
FilterMask¶
MetadataSettings¶
MetadataSetting¶
PixelSourceData2¶
PlacedLayerData¶
- class psd_tools.psd.tagged_blocks.PlacedLayerData(kind: bytes = b'plcL', version: int = 3, uuid: bytes = '', page: int = 0, total_pages: int = 0, anti_alias: int = 0, layer_type=PlacedLayerType.UNKNOWN, transform: tuple = (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), warp=None)[source]¶
PlacedLayerData structure.
ProtectedSetting¶
ReferencePoint¶
SectionDividerSetting¶
SheetColorSetting¶
SmartObjectLayerData¶
TypeToolObjectSetting¶
- class psd_tools.psd.tagged_blocks.TypeToolObjectSetting(version: int = 1, transform: tuple = (0.0, 0.0, 0.0, 0.0, 0.0, 0.0), text_version: int = 1, text_data: Optional[psd_tools.psd.descriptor.DescriptorBlock] = None, warp_version: int = 1, warp: Optional[psd_tools.psd.descriptor.DescriptorBlock] = None, left: int = 0, top: int = 0, right: int = 0, bottom: int = 0)[source]¶
TypeToolObjectSetting structure.
- version¶
- transform¶
Tuple of affine transform parameters (xx, xy, yx, yy, tx, ty).
- text_version¶
- text_data¶
- warp_version¶
- warp¶
- left¶
- top¶
- right¶
- bottom¶