Commit Graph
1186 Commits
Author SHA1 Message Date
dotCooCoo d75ba761d4 Merge main into feat/distorted-image-place-replace 2026-11-28 18:13:24 -08:00
dotCooCoo 2c18b10d17 Merge main into feat/distorted-image-place-replace 2026-11-28 17:41:51 -08:00
.CooCoo 774891d6ff Merge pull request #8088 from jmverges/fix/6983-followup-page-widths-pick-font-copy
.ai import: type takes the installed copy that sets its PDF part's widths
2026-11-28 17:25:40 -08:00
dotCooCoo 2974180502 Merge main into feat/plugin-api-importer-output-kinds
# Conflicts:
#	crates/engine/src/cmd/plugin.rs
#	crates/plugins/src/lib.rs
#	crates/plugins/src/manifest.rs
#	crates/plugins/src/permissions.rs
#	docs/plugins.md
#	docs/target-app-parity.md
2026-11-28 14:21:28 -08:00
jmvergesandClaude Opus 5.5 cbfb26b9ab Merge main (89a5b64170) into the font width import branch
Main now reads the editing copy decoded as its streams are read
(#9922: ai_alone_decoded, ai_layers_alone_decoded, AiLayers::decoded)
and renamed the text document's patterns to paints (#9782:
text_patterns, Texts::with_paints). The decoded entry points take the
PDF part's widths as the ones they wrap did, AiLayers::decode goes
through AiLayers::decoded, and the text document still takes the widths
when it is first read, before its paints. The docs keep both sides'
entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:50:55 +00:00
.CooCoo ab4b8bb64a Merge pull request #9136 from dotCooCoo/feat/plugin-api-generated-art
Plug-ins: generators draw generated art objects that keep their parameters
2026-11-28 08:06:06 -08:00
.CooCoo 8cdd897b23 Merge pull request #9909 from dotCooCoo/feat/windows-thumbnail-handler
Windows: Explorer shows thumbnails of VectorCraft documents
2026-11-28 08:03:20 -08:00
.CooCoo 2fd889ce4d Merge pull request #9922 from dotCooCoo/fix/ai-private-data-streamed
.ai import: editing data whose streams pass 256 MiB opens with its layers
2026-11-28 08:02:57 -08:00
dotCooCoo 6f012b6621 File formats: .pcraft documents open and place as one image
File › Open and File › Place read layered raster .pcraft documents
through craft-doc and store them as one PNG, sized by the document's
resolution. A placed file links like any image.

- The image is the file's full-size composite when it has one.
- Without one, the layers are combined at the canvas size when the
  document is RGB at 8 or 16 bits and every visible layer is a raster
  layer that blends Normal, with no clipping, layer effects, vector
  mask, frame, advanced blending or feathered layer mask. Hidden layers
  are not read, and an RGB ICC profile the document names is kept.
- Otherwise the composite preview comes in at the canvas's size, and
  Open, Place, links.update, links.relink and links.replaceEmbedded
  warn when it has fewer pixels than the canvas, naming both sizes and
  why the layers were not combined.
- A full-size composite or preview the file names but doesn't hold,
  can't decode or, for the full-size one, of another size than the
  canvas is an error. The Links commands decode the kept PNG before
  taking it.

The import fuzz tests cover mutated bundles and manifests.
2026-11-28 05:33:55 -08:00
dotCooCoo 4d1f6cc249 .ai import: editing data whose streams pass 256 MiB opens with its layers
The private data streams of a .ai file, or of a PDF saved with its
editing data, were joined into one buffer of at most 256 MiB before
they were decoded, while the decoded editing data may take up to an
eighth of installed memory (512 MiB to 2 GiB). A file whose streams
passed 256 MiB opened as its PDF part without a note, and a file whose
PDF part can't be read failed with "it is larger than 256 MB".

The streams are now read one after the other and decoded as they are
read, so they are never joined. The decoded data keeps its limit, and
no more of the streams is read than that limit and a sixteenth more.
The data is decompressed after the first compression marker in it.
2026-11-28 05:19:31 -08:00
dotCooCoo dfa6fb6f54 Place: Replace keeps a distorted image's corners for a DCS file and a tiny image
Replace of a clipped PSD file's distorted image by a DCS file now measures
the image in the clip group, as it does for a raster file, so the DCS
file's image takes the corners instead of losing them.

The checks that the new image's transform can be inverted now use a
scale-relative test (Homography::affine_is_invertible) in place of an
absolute determinant limit of 1e-12. A tiny distorted image replaced by a
file with many more pixels gets a valid transform with a determinant
below that limit, which Replace refused before.
2026-11-28 05:09:36 -08:00
dotCooCoo e2ac712ad2 Place: Replace keeps a distorted image's corners for a raster file
File > Place with Replace refused an image changed by Perspective Distort
or Free Distort. When the placed file is a raster image or a DCS file, the
new image now takes the old image's corners in one undo step: its pixels
fill them, its transform is the old one scaled to the new pixel size (as
Update Links scales it), the clipping path a PSD, PSB or DCS file names is
drawn through the corners, and a PSD file's slices cover their part of the
pixels where the corners put it. Vector and document files are still
refused; text is placed by the bounds as before.
2026-11-28 03:27:18 -08:00
dotCooCoo b12c27e518 Linux: file managers show thumbnails of VectorCraft documents
The deb, rpm and tar.gz packages install
share/thumbnailers/ai.storyteller.vectorcraft.thumbnailer for
application/x-vectorcraft and application/x-vectorcraft-template. It runs
the new `vectorcraft-cli thumbnail --size N IN OUT`, which opens the
document as the app does and writes an 8-bit RGBA PNG of the first
artboard, N pixels (1 to 1024, default 256) on its longer side.

A file larger than 256 MiB, one that can't be opened, a document that
shows nothing, or a run longer than 20 seconds writes no PNG and exits
non-zero, so the file manager keeps the file's icon. The Nightly deb and
rpm leave the entry out, as they leave out the MIME package.

The render moves into vectorcraft_render::encode::first_artboard, which
the embedded native preview also uses.
2026-11-28 02:39:17 -08:00
dotCooCoo 1ad7a1134f Merge main into feat/plugin-api-generated-art 2026-11-27 23:35:47 -08:00
dotCooCoo f850b6b7a3 Merge main into feat/plugin-api-importer-output-kinds 2026-11-27 22:24:08 -08:00
dotCooCoo 81d4dcc6ea File formats: export .cmx files
document.export and Export As write .cmx exchange files with 32-bit
coordinates through craft-cdr's write_cmx, in the layouts the .cmx
reader reads. The chosen artboard is the file's page, or with Use
Artboards each chosen artboard is a page of one file, and each layer with
art on a page is a layer of that page.

- vectorcraft-metafile gets painted_layers: the WMF writer's walk of the
  visible art, layer by layer, with each fill's and stroke's solid paint,
  its miter limit and the swatches of the document and of the documents
  it places.
- The export keeps CMYK, RGB, gray, spot colors at their tints and
  Registration; type is written as outlines, and gradients and patterns
  as one color. The warnings name images, clipping masks, transparency,
  art past a page's edge, dash offsets, dashes aligned to corners, miter
  limits, and each loss the writer reports: nonzero fills written
  even-odd, long paths, rounded dashes, shortened names, low spot tints,
  and spot colors without a name or a known color.
2026-11-27 19:12:32 -08:00
dotCooCoo 43b26d41e0 Merge main into feat/plugin-api-importer-output-kinds 2026-11-26 11:11:43 -08:00
dotCooCoo a7842eddcc Merge main into feat/plugin-api-generated-art 2026-11-26 10:27:02 -08:00
dotCooCoo f7d39bce07 Merge main into feat/plugin-api-generated-art 2026-11-26 10:13:31 -08:00
BFlat 478432c8b0 Merge pull request #8346 from dotCooCoo/feat/fogra51-52-cmyk-v2
Color: FOGRA51 and FOGRA52 CMYK working spaces computed from Fogra's data
2026-11-27 00:53:58 +07:00
dotCooCoo 2274a3416d Merge main into feat/plugin-api-importer-output-kinds 2026-11-26 07:25:04 -08:00
BFlat 3b168e8ba2 Merge pull request #9098 from dotCooCoo/fix/export-gif-png8-transparency-dither
Export: GIF and PNG-8 take the Transparency Dither settings
2026-11-26 16:58:59 +07:00
dotCooCoo 5491a68d2b Merge main into fix/export-gif-png8-transparency-dither 2026-11-26 00:40:00 -08:00
dotCooCoo 318770ea62 File open: apply the profile answer with the settings snapshot its question was built from
apply_answer read the working settings once for the reply's profileChoice
and again inside apply_open_policies_choosing. A Color Settings change
between the two reads could report an answer that the policies did not
apply. apply_open_policies_choosing now takes the snapshot, and
apply_answer passes the one it built the question from.
2026-11-26 00:37:50 -08:00
dotCooCoo 5220c3ce4b Plug-ins: importer type and images past the canvas open nothing
Type or an image an importer at API level 4 returns that reaches more than 4,000,000 pt from the origin is refused, as the document would drop it on the next open. plugin.list's description and docs/mcp.md name outputKinds and API level 4.
2026-11-25 19:25:40 -08:00
dotCooCoo 1332a448a5 Merge main into feat/plugin-api-importer-output-kinds
Importers at API level 4 also place their type, images and visible layers with File › Place; their artboards are left out.
2026-11-25 19:03:39 -08:00
dotCooCoo 594ebcb6e3 Merge main into feat/plugin-api-generated-art 2026-11-25 18:46:05 -08:00
jmvergesandClaude Opus 5.5 6a7ee26522 Merge main (a54d28887c) into the font width import branch
Main changed the M3 row of docs/roadmap.md, next to the M4 row this
branch adds its entry to: take main's M3 row and keep this branch's
entry at the front of main's M4 row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:12:35 +00:00
jmvergesandClaude Opus 5.5 8ed08d6637 Merge main (016ead2572) into the font width import branch
Main added its own entries to the change line at the top of
docs/file-format-parity.md and docs/target-app-parity.md: keep main's
lines and dates, with this branch's entry in front of them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:08:57 +00:00
BFlat fc34e27d99 Merge pull request #9110 from dotCooCoo/feat/plugin-api-importers-place
Plug-ins: importers whose manifest sets place also read files for File › Place
2026-11-26 08:49:00 +07:00
dotCooCoo aeb1e82b57 Merge main into feat/plugin-api-generated-art 2026-11-25 14:58:37 -08:00
dotCooCoo af7ee2fdca Merge main into feat/plugin-api-importer-output-kinds 2026-11-25 14:51:05 -08:00
dotCooCoo c3645d265d Merge main into feat/plugin-api-importers-place 2026-11-25 14:26:01 -08:00
dotCooCoo 93828740e2 Merge main into feat/save-for-web-transparency-dither 2026-11-25 13:41:08 -08:00
dotCooCoo c27619310a Merge main into feat/fogra51-52-cmyk-v2 2026-11-25 10:19:57 -08:00
dotCooCoo be44e65acd Merge main into feat/plugin-api-generated-art 2026-11-25 09:48:54 -08:00
dotCooCoo 388e1f29ef Merge main into feat/plugin-api-importers-place 2026-11-25 09:46:45 -08:00
BFlat e256ac7022 Merge pull request #9141 from dotCooCoo/fix/eps-discard-white-overprint
EPS: white fills and strokes knock out with Discard White Overprint
2026-11-26 00:30:32 +07:00
BFlat 4e50ad0d4a Merge pull request #8927 from dotCooCoo/fix/profile-mismatch-background-queue
Color Settings: a background open whose profile question is gone finishes off the UI thread
2026-11-25 19:32:31 +07:00
dotCooCoo 2784f684a1 EPS: white overprints knock out on PostScript plates with Discard White Overprint
On a separated PostScript plate, a process white fill, stroke or
character fill or stroke marked to overprint kept its overprint flag
with Discard White Overprint on, so it was drawn as nothing and the ink
below it stayed. The plate document now turns overprinting off for
those whites, so they knock out as in composite output. White linked to
a spot swatch that has a color, at a tint above 0%, still overprints.

An overprinting colorized image in the tile of an overprinting pattern
fill is now written in only the process inks it puts down, as it is
outside a pattern, instead of as a full CMYK image that removed the
inks below it.

The params text and docs/mcp.md now say the spot exception needs a spot
swatch with a color.
2026-11-25 04:12:07 -08:00
dotCooCoo 91e0ff8435 Merge main into feat/save-for-web-transparency-dither 2026-11-25 04:08:00 -08:00
dotCooCoo c738a88170 Merge main into fix/eps-discard-white-overprint 2026-11-25 03:33:00 -08:00
BFlat b8c7423ff9 Merge pull request #9071 from makesomethingshit/fix/7572-pdf-editing-data-opt-out
PDF import: honor the editing data opt-out when opening a file (#7572)
2026-11-25 17:49:10 +07:00
dotCooCoo e78c07546e Merge main into fix/profile-mismatch-background-queue 2026-11-24 23:36:54 -08:00
dotCooCoo 5449209275 Merge main into feat/plugin-api-importer-output-kinds 2026-11-24 22:38:00 -08:00
dotCooCoo 5e6441fd57 Merge main into feat/plugin-api-importer-output-kinds 2026-11-24 19:30:45 -08:00
dotCooCoo d1d2cb4c26 Merge main into fix/eps-discard-white-overprint 2026-11-24 13:58:57 -08:00
dotCooCoo 8f474a41a3 Merge main into fix/white-spot-ink-overprints
The white checks for colorized images in PDF export, EPS export and Print
Ink Fixes now go through DiscardWhite, which replaces
Document::spot_ink and Document::discards_white_overprint. Printed
separations read DiscardWhite with the spot inks they print, so a white
spot ink converted to process inks knocks out there.
2026-11-24 12:31:45 -08:00
dotCooCoo 287a05c857 EPS: spot white keeps overprinting with Discard White Overprint
Discard White Overprint covers process white only. A white fill or
stroke linked to a spot swatch at a tint above 0% is written as its own
Separation ink and now keeps overprinting. Global process swatches, a
0% tint and a spot swatch without a color still knock out.
2026-11-24 09:23:14 -08:00
jmvergesandClaude Opus 5.5 6467e3d1d5 Merge main (19ebdcab54) into the font width import branch
Main moved the pdf crate to the craft framework (craft::pdf) and added the
marks and output exports next to this branch's page_widths ones: keep all
three, keep cid::replacement crate-visible for page_widths, and read
craft::pdf in page_widths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:56:42 +00:00