mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 07:10:13 +00:00
A PSD or PSB file can name one of its saved paths (image resources 2000 to 2997) as its clipping path in resource 2999. psdread::clipping_path reads that path in the image's pixel space, under the even-odd rule the file format specification gives, with a subpath around the whole image first when the initial fill record says the fill starts with all pixels. File > Place of such a file, and File > Open of its merged image, put the image in a clip group of that path with no paint. file.place answers the image's id as `image`, as for a DCS file. Replacing an image alone in a clip group with such a file keeps the image's scale and rotation. links.update and links.relink leave the clip group as it is. Files that name no clipping path come in as before.