mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 02:44:24 +01:00
Distort: keep blend steps, saved corners, previews and deep masks right
- A blend step whose interpolated corners and nearer key's corners both fail the check is placed as the nearer key is. - Corners an image can't take are dropped when a file is read, so a later transform does not make them its distortion. - The .ai editing data writes a distorted image at any nesting depth, as it does a gradient mesh, so an opacity mask at the limit keeps it. - A linked image's preview keeps the clipping path its file keeps, so a document reopened from its preview still knows the file's clip group and Update Links replaces it instead of nesting a new one. - Docs: `corners` in the plugin API covers only corners that are not a parallelogram; Relink's warning for distorted images needs `preserve`.
This commit is contained in:
1 parent
d6bc984cad
commit
fb0a82b095
12 files changed
+208
-25
No files matched your search
+2
-1
@@ -6951,7 +6951,8 @@ Crop Image (`object.cropImage`), Image Trace (`imageTrace.make`, `imageTrace.mak
|
||||
(`object.createObjectMosaic`), Create Gradient Mesh (`object.mesh.create`) and Place with Replace (`file.place` with
|
||||
`replace`) refuse a distorted image with an error that names the distortion. Update Links (`links.update`) and Relink
|
||||
(`links.relink`) put the file's pixels between a distorted image's corners, without applying its Placement Options or
|
||||
Relink's `preserve`; Relink then adds a `warnings` entry naming those images. The clipping path a PSD, PSB or DCS
|
||||
Relink's `preserve`. When `preserve` is given, Relink adds a `warnings` entry naming those images; without it, Relink
|
||||
adds none for them. The clipping path a PSD, PSB or DCS
|
||||
file names is drawn through the corners: the clip group of the old file's clipping path gets the new file's clipping
|
||||
path, or becomes a plain group when the new file names none. Embed (`links.embed`) and Unembed (`links.unembed`) keep
|
||||
the corners, each in one undo step. Unembed of a distorted image from a PSD or PSB file, written as stored (PNG, or
|
||||
|
||||
+4
-3
@@ -678,9 +678,10 @@ every attribute:
|
||||
of JSON: type whose runs and paragraphs don't fit what the type before it in paint order left comes with
|
||||
`truncated: true` too.
|
||||
- An image (`"image"`): `pixelSize` is its width and height in pixels; `colorMode` is `"rgb"`, `"cmyk"`, `"gray"` or
|
||||
`"unknown"`, read from the image itself. An image changed by Perspective Distort or Free Distort also has `corners`,
|
||||
its pixel rectangle's corners on the page (top left, top right, bottom right, bottom left), and its `transform` is the
|
||||
affine placement that matches it at its middle. An embedded image whose pixels take at most 1 MiB in base64 (443 × 443
|
||||
`"unknown"`, read from the image itself. An image whose corners Perspective Distort or Free Distort moved to a shape
|
||||
other than a parallelogram also has `corners`, its pixel rectangle's corners on the page (top left, top right, bottom
|
||||
right, bottom left), and its `transform` is the affine placement that matches it at its middle. Corners that make a
|
||||
parallelogram are described by `transform` alone. An embedded image whose pixels take at most 1 MiB in base64 (443 × 443
|
||||
pixels fit) has them in `pixelsBase64`: straight RGBA, 8 bits a channel, row by row from the top, and
|
||||
`pixelsOmitted: false`. A CMYK image's pixels are its inks through the working CMYK profile, as sRGB. The pixels of
|
||||
all the images in one input take at most 16 MiB in base64, and an image the host starts to decode takes its size
|
||||
|
||||
Reference in new issue
Block a user