Commit Graph
1047 Commits
Author SHA1 Message Date
dotCooCoo 89c9b61c56 Merge main into fix/psd-knockout-layers-merge 2026-11-19 04:52:41 -08:00
BFlat 2c1c36c77a Merge pull request #8632 from dotCooCoo/feat/cmx-open
File formats: open and place .cmx files
2026-11-19 15:07:21 +07:00
BFlat 2988a7ed53 Merge pull request #8492 from dotCooCoo/feat/save-pdf-custom-flattener
Save PDF: Custom… beside Flattener preset sets the flattener options the save uses
2026-11-19 14:59:41 +07:00
BFlat c9f742fc2c Merge pull request #8183 from dotCooCoo/feat/transform-show-on-shape-creation
Transform panel: Show on Shape Creation shows the panel after a shape is drawn
2026-11-19 14:56:18 +07:00
BFlat 4da9768637 Merge pull request #7996 from dotCooCoo/fix/i18n-psd-import-options-and-slices
i18n: PSD Import Options and the PSD layer and slice warnings are translated
2026-11-19 14:54:07 +07:00
BFlat df42e09ba5 Merge pull request #7733 from dotCooCoo/feat/color-profile-ask-prompts
Color Settings: Ask When Opening and Ask When Pasting prompt about profile mismatches
2026-11-19 14:52:30 +07:00
BFlat 49f5da65ae Merge pull request #7331 from dotCooCoo/feat/hpgl-options-dialog
HP-GL: Export As opens HP-GL Options for the version, pens, origin and path order
2026-11-19 14:48:03 +07:00
ruchirguitar 8fcadbc3c1 Fix #864: SVG export preserves the document unit in viewBox and width/height (#8610)
* SVG export: preserve document unit in viewBox and width/height (#864)

When exporting SVG documents with physical units (mm, cm, in, pc), emit
the physical unit suffix on the root <svg width=... height=...>
attributes while keeping viewBox numbers and inner coordinates in 1:1 points
per SVG 1.1 coords §7.10. This avoids the 75% scaling mismatch when opening
drawings in external tools such as Inkscape or LightBurn, and preserves
the document unit setting across save/open round trips. Unitless documents
(points, pixels) continue to emit unitless dimensions.

Tested via export_physical_units_writes_unit_suffixes in vectorcraft-svg
and full round-trip svg_round_trip_preserves_document_units in vectorcraft-engine.
Ran cargo xtask ci (fmt, clippy, tests, xtask gates).

* SVG export: preserve nonzero width and viewBox on extreme small dimensions
2026-11-18 23:27:00 -05:00
dotCooCoo 9b0fc2e249 HP-GL Options: check and list pens from what the export writes
- Export Selection to HP-GL checks the selection and starts Pen Table
  from its pens, as the export writes it, and `exportSelection` is no
  longer remembered for the next whole-document export.
- Pen Table with options or an artboard choice the export refuses keeps
  One Pen per Color and shows the error, instead of starting from one
  black pen that corrected options would keep. `automatic_pens` returns
  that error.
- `automatic_pens` refuses `rect`, as `check` and the export do.
- A save panel shown in line that is canceled keeps the dialog open,
  and a canceled save panel keeps the options remembered before.
2026-11-18 18:24:51 -08:00
dotCooCoo 67c446b313 PSD import: a knockout that cuts nothing gives back the warnings of a merge it left short of memory
A visible knockout whose trial merge cut nothing kept the warnings that
drawing the layers below it recorded while its canvas was held. A merge
below it that only failed for want of that memory then came in merged,
with a warning that it hadn't been applied. Such a trial now gives back
what it counted, and the layers count again when they come in.

The PSD catalog test compares the whole numbers of each warning and its
translation, and checks that each complete catalog puts the translated
reason inside the warnings that carry one.
2026-11-18 18:16:47 -08:00
dotCooCoo 1c5f97acfc File formats: .cmx gray and CMY colors, unnamed layers, stricter chunk search
- Colors in the older color fields read gray (model 9) and CMY (model 4)
  as the .cdr reader numbers them, instead of opening as black.
- A dash pattern whose lengths are all 0 draws a solid line, as for a
  .cdr outline.
- A curve whose point field is too short for its count and is not whole
  points with their type bytes is left out as damaged, instead of reading
  coordinates as point types.
- A layer without a name comes in unnamed, and the importer names it by
  its place, as for a .cdr drawing.
- After stray bytes, a chunk id starts with a letter and may hold digits
  and spaces, and the id found must name a chunk the reader uses or have
  a length that fits its list. Padding is no longer taken for a chunk.
- A canvas or a container in an object's attributes gives the
  unsupported-objects warning.
- A page with no size and no bounds is 612 x 792 pt, VectorCraft's own
  size, as for a .cdr page; PROVENANCE R61 says so. PROVENANCE also names
  the other program's .cmx reader, read for field order.
2026-11-18 17:54:13 -08:00
dotCooCoo 6c5e10fd64 Color Settings: keep script gates and background reads after a profile answer
- A scope narrowed to the confirming caller keeps the script gates of both,
  and reads are exempt from them only where both scopes exempt them.
- A file read off the UI thread does the rest of its read after its profile
  answer (linked files and type) off the UI thread too; an open a caller
  asked for by path still finishes before OK returns.
2026-11-18 16:46:24 -08:00
dotCooCoo c7d78a2dac File formats: open and place .cmx files
.cmx exchange files with 32-bit coordinates open and place as editable
art. vectorcraft-cdr reads the RIFF form CMX1, its header, the color,
pen, line type, dash, outline and arrowhead tables, and each page's
instructions in drawing order, into the drawing model the .cdr reader
uses, so the importer maps pages, layers, groups and curves with uniform
fills and outlines the same way. A layer that holds nothing is left out.
A page that gives no size of its own takes the size of the drawing's
bounds, which the page header stores, and is centered on them.

Text, images, rectangles, ellipses, clipping paths, fills other than
uniform ones and arrowheads are left out, and lenses are not applied;
the warnings name each kind, with rows in every complete catalog.
Big-endian files and files with 16-bit coordinates are refused with a
message. Layouts and their sources are rows R53 to R63 of
crates/cdr/PROVENANCE.md; tests use synthetic files only.
2026-11-18 15:52:44 -08:00
dotCooCoo 95ed13dd80 Color Settings: answer the review of the profile prompts
- An absolute-colorimetric conversion from CMYK starts from the source's
  absolute appearance.
- An assigned profile that was removed counts as the working space when
  copied colors are compared.
- Colors that can't convert are listed with convertible false, start on
  Preserve Numbers, and the dialog disables Convert for them.
- Paste on All Artboards leaves the backgrounds of copied artboards out of
  the question (clipboard.profileMismatch allArtboards).
- A converting paste into its own document keeps its image keys.
- An open answer is refused once Color Settings change the question; the
  dialog asks the new question, or opens by the policy.
- Files opened while a question is open ask their own questions in turn.
- OK on the paste question and on Swatch Conflict checks again where the
  paste runs and asks again when the question changed.
- docs/mcp.md and the command help describe these rules.
2026-11-18 15:42:03 -08:00
dotCooCoo 24d04bd50b Merge main into feat/hpgl-options-dialog 2026-11-18 15:10:32 -08:00
dotCooCoo c103a88649 Merge main into feat/cdr-import-all 2026-11-18 14:27:18 -08:00
dotCooCoo 9e61345342 Merge main into feat/color-profile-ask-prompts 2026-11-18 13:16:20 -08:00
dotCooCoo 91a361b520 Merge main into feat/save-pdf-custom-flattener 2026-11-18 13:15:57 -08:00
dotCooCoo ff5d818284 Merge main into fix/psd-knockout-layers-merge 2026-11-18 13:15:46 -08:00
dotCooCoo fcdfdc16f2 Merge main into fix/i18n-psd-import-options-and-slices 2026-11-18 13:14:51 -08:00
dotCooCoo 80cc17da48 Merge main into feat/transform-show-on-shape-creation 2026-11-18 13:09:50 -08:00
bflatastic 4bce0e413d combo: #8561 2026-11-19 01:26:14 +07:00
bflatastic e398e5f155 combo: #8061 2026-11-19 01:26:02 +07:00
bflatastic 40c878de7f Merge main into #8561 2026-11-19 01:21:20 +07:00
bflatastic ea3fc0a6f3 Merge main into #8061 2026-11-19 01:20:13 +07:00
bflatastic c0ca4268ab Merge main into #8014 2026-11-19 01:20:04 +07:00
dotCooCoo c1c2619146 Merge main into feat/cdr-import-all 2026-11-18 08:21:04 -08:00
dotCooCoo bc1c1131c0 PSD import: merges being tried get their own allowance, and knockouts that cut nothing give it back
- A knockout, clip or blend-mode merge being tried may use the whole
  import allowance beyond what was read before it. A merge that is made
  must still fit the allowance with everything read before it.
- A knockout that turns out to cut nothing moves what its drawing read
  out of the allowance, as a merge that isn't made does. A hidden one
  also forgets what its drawing counted, so a later merge that leaves it
  out reports only the hidden layer.
- A hidden layer in a mode VectorCraft lacks is left out before any
  knockout drawing, as before the knockout merge.
- A knockout at 0 fill whose painted pixels lie outside the bounds of
  every layer below it is kept apart before their canvas is made.
2026-11-18 08:01:37 -08:00
dotCooCoo a6d6ff667d Merge main into feat/transform-show-on-shape-creation 2026-11-18 07:28:28 -08:00
dotCooCoo a6d4729bf2 PSD import: knockouts that cut no paint stay apart, and failed merges keep room to read the layers
- A knockout at 0 fill whose pixels cover none of the painted pixels below
  it is no longer merged with them.
- A hidden knockout is left out only when its merge would be made or is
  too large, so one whose layer mask hides all of it comes in with
  hiddenLayers. What drawing it counted is forgotten when it is left out.
- The pixels and canvases of a merge that isn't made are counted against
  a separate limit of the same size, so the layers can still be read
  apart afterward.
- docs: the memory-limit fallback for knockouts is listed with the
  knockouts that aren't applied.
2026-11-18 06:49:40 -08:00
dotCooCoo 62ccc549f9 Merge main into fix/metafile-empty-artboard-first 2026-11-18 06:20:40 -08:00
dotCooCoo d959415d48 Merge main into feat/background-save-progress 2026-11-18 06:15:04 -08:00
dotCooCoo 8b930faed3 Merge main into feat/bleed-coverage-warning 2026-11-18 06:14:15 -08:00
dotCooCoo 877fd21dca Merge main into feat/color-profile-ask-prompts 2026-11-18 06:03:13 -08:00
dotCooCoo 9a9cdd95fd Merge main into feat/hpgl-options-dialog 2026-11-18 05:56:58 -08:00
dotCooCoo 9ac1201257 Merge main into fix/i18n-psd-import-options-and-slices 2026-11-18 02:05:35 -08:00
dotCooCoo d597c950f0 Links: Unembed keeps the clip group of a PSD file's clipping path
An image placed from a PSD or PSB file that names a clipping path comes
in a clip group of that path, and its image is kept as a PNG (or, for a
CMYK file, a TIFF) that holds the path. Unembed writes that file as
stored, but the file was read back without the path, so Unembed turned
the clip group into a plain group, and File > Open, File > Place,
Relink and Update Links of the written file gave an unclipped image.

The shared loader now reads the path a PNG or TIFF keeps, so these
commands keep the clip group, for Unembed with a path and with a folder.
2026-11-18 01:53:46 -08:00
dotCooCoo e26598d11c Merge main into feat/bleed-coverage-warning 2026-11-18 01:43:11 -08:00
dotCooCoo c4f19c9207 Merge main into fix/psd-knockout-layers-merge 2026-11-18 01:26:25 -08:00
BFlat ada472586e Merge pull request #8135 from dotCooCoo/fix/confined-exporter-and-placed-pdf-paths
MCP: confined exporter plug-ins and unreadable linked files keep paths outside the read roots
2026-11-18 13:53:34 +07:00
dotCooCoo b9d34c41aa Merge main into feat/background-save-progress 2026-11-17 22:27:57 -08:00
dotCooCoo 1ccf0e4f08 Merge main into fix/metafile-empty-artboard-first 2026-11-17 22:24:07 -08:00
dotCooCoo cc312e66f3 Merge main into feat/hpgl-options-dialog 2026-11-17 22:11:27 -08:00
BFlat e63768c862 Merge pull request #8425 from dotCooCoo/fix/action-batch-step-numbers
Actions: action.batch errors count steps from 1 and name the member they reject
2026-11-18 13:05:15 +07:00
BFlat 20c753472f Merge pull request #8421 from dotCooCoo/perf/metafile-artboards-bake-once
EMF/WMF: Use Artboards applies live effects once for all artboards
2026-11-18 12:59:42 +07:00
BFlat 7bcd7b62d2 Merge pull request #8443 from dotCooCoo/perf/dxf-artboards-bake-once
DXF: Use Artboards applies live effects once for all the drawings
2026-11-18 12:58:53 +07:00
BFlat 10b2d14d1b Merge pull request #8342 from dotCooCoo/fix/issue-1954
Fix #1954: PDF/X CMYK in the output intent's profile is written as DeviceCMYK
2026-11-18 12:57:50 +07:00
BFlat 17e1aa67e1 Merge pull request #8362 from dotCooCoo/feat/place-pdf-link-default
Import PDF: All checks Import PDF pages as links and Range clears it
2026-11-18 12:57:32 +07:00
dotCooCoo dace34d9a8 Merge main into feat/cdr-import-all 2026-11-17 20:24:50 -08:00
dotCooCoo 67f2c39a37 Merge main into fix/i18n-psd-import-options-and-slices 2026-11-17 20:09:47 -08:00