Commit Graph
691 Commits
Author SHA1 Message Date
dotCooCoo 82ef5176bc Merge main into feat/distort-images 2026-11-19 06:39:02 -08:00
dotCooCoo 55438151f3 Merge main into feat/distort-images 2026-11-19 06:08:29 -08:00
dotCooCoo dafade6173 Merge main into feat/proof-setup-customize
# Conflicts:
#	crates/ui-egui/src/dialogs.rs
#	crates/ui-egui/src/i18n/tests.rs
2026-11-19 05:04:12 -08:00
dotCooCoo 0c74698e55 Render: RenderOptions::hidden is a set, so each hidden check is one lookup
RenderOptions::hidden was a Vec<NodeId>, and the renderer checked each
node it visits against it with contains (node_checks::left_out and
Renderer::draw_node), so every check could compare against all k
hidden ids. The Fold Preview print hides every non-printing layer and,
with Show Fold Lines off, every object with a line role.

hidden is now a HashSet<NodeId>, so each check is one hash lookup. The
Fold Preview collects print_hidden's list into the set, and two tests
that built the field with vec! build it from an array. The field's doc
comment now names the Fold Preview print as its example.

New test a_render_leaves_out_every_object_of_a_large_hidden_set renders
2,000 strips with 1,000 of them in hidden and checks every strip's
pixel. It checks that hiding still works for a large set; the old Vec
drew the same pixels, so the test does not fail at run time without
the change.
2026-11-19 01:49:55 -08:00
BFlat 2769afa489 Merge pull request #8540 from dotCooCoo/fix/classic-overprint-separations
Separations Preview: keep Classic 3D black shading on the Black plate
2026-11-19 15:01:48 +07:00
BFlat 4c1b27bc41 Merge pull request #8178 from dotCooCoo/feat/image-trace-split-view
Image Trace: Split View shows the source image and the result on either side of a divider
2026-11-19 14:56:07 +07:00
dotCooCoo 3f253b4da2 Merge main into feat/distort-images 2026-11-18 18:48:32 -08:00
dotCooCoo 621c06bd26 Free Transform: distorted images keep their corners and placement through files, exports and refusals
- A file's corners are kept only when there are exactly four that the
  image can take; a longer list is skipped without decoding it. Corners
  the affine map misses stay a distortion, and a scale past the
  perspective limit leaves the image at its nearest affine placement.
- Distort checks the corners in a frame local to the quad, so a missed
  corner far from the origin is still refused.
- Relink and Unembed refuse a named or selected distorted image before
  searching a folder or writing a file. Create Gradient Mesh lists the
  distorted images it leaves in `skipped`. Place with Replace refuses
  only when the measured image is distorted and the file is not text.
- SVG cuts a distorted image in a scaled symbol instance at the placed
  size. EMF pieces store only the pixels inside their clip. PDF mesh
  pieces of a CMYK image keep a same-corner mask as its soft mask, color
  mask included. Both `.ai` writers write an image at the nesting limit
  at its nearest placement with a warning. DXF warns only when it writes
  the image.
- The canvas cuts the mesh by the view's largest stretch. Warped images
  with a singular placement keep finite corners.
- docs/mcp.md and docs/plugins.md describe the tolerances, the DXF and
  WMF fallback, the partial result of Create Gradient Mesh, and when a
  plug-in sees `corners`.
2026-11-18 17:13:56 -08:00
dotCooCoo f4071dd56a Merge main into feat/image-trace-split-view 2026-11-18 15:58:59 -08:00
dotCooCoo f1542e5af0 Merge main into feat/proof-setup-customize 2026-11-18 13:13:29 -08:00
dotCooCoo a877d4bef7 Merge main into fix/classic-overprint-separations 2026-11-18 10:41:33 -08:00
dotCooCoo 18c4a7b965 Merge main into feat/stylus-wheel 2026-11-18 07:27:22 -08:00
dotCooCoo 1521a682eb Proof Setup: mask images in a pattern's tile are not proofed
A pattern's tile drawn for a proof that preserves the colors' numbers
kept the proof's image tables for its opacity masks, so a mask's image
was proofed and the mask covered differently than outside a pattern.
The mask now leaves its images as they are when the tile's ink carries
that proof, as it does for the frame's proof.
2026-11-18 06:53:28 -08:00
dotCooCoo fdd0b2fdb3 Merge main into fix/classic-overprint-separations 2026-11-18 06:33:44 -08:00
yoriswind 390203c35b 6582: resolve status documentation after the Blend fix merged 2026-11-18 05:13:11 -08:00
BFlat dce8a0c05e Merge pull request #7065 from yoriswind/codex/5179-blend-spine-redraw-bounds
Fix redraw bounds for blends following a curved spine
2026-11-18 19:58:54 +07:00
yoriswind 91898148d6 6582: preserve Eraser behavior with current upstream documentation 2026-11-18 04:55:12 -08:00
yoriswind 1d28f45f58 6582: retain fitted gradients beneath enclosing geometry effects 2026-11-18 04:39:25 -08:00
yoriswind 56b4fcb8c6 Fix redraw bounds for rotated Blend effects
Measure effect-bearing Align to Path content after spine placement, retaining
the conservative envelope and covering damage containment with original
software-rendered move and Undo controls.
2026-11-18 03:19:27 -08:00
yoriswind 3f09579dcd Merge upstream main to resolve PR #6601 documentation conflicts 2026-11-18 02:41:17 -08:00
dotCooCoo 45835405a5 Merge main into feat/distort-images 2026-11-18 01:42:11 -08:00
yoriswind a9b4015e40 Merge pinned current main for the confirmed #7065 bounds repair 2026-11-18 00:37:17 -08:00
dotCooCoo c8fb9bdf05 Merge main into fix/classic-overprint-separations 2026-11-17 23:53:25 -08:00
dotCooCoo 9357a71375 Merge main into fix/classic-overprint-separations 2026-11-17 21:51:14 -08:00
dotCooCoo ee0a28845f Keep Classic 3D black shading on its separation plate 2026-11-17 21:47:15 -08:00
dotCooCoo 0b1ba1c6ef Merge main into feat/proof-setup-customize 2026-11-17 20:24:50 -08:00
dotCooCoo 8486bd1892 Save for Web: pixels of a transparent color that does not fit in a fixed palette stay transparent
With transparent pixels and Colors at 256, a custom palette of one opaque color and 255 colors mapped to transparent has no room for the last of those, and its pixels took the nearest entry left, which could be the opaque color. Such pixels now take the transparent entry when their nearest color is one that did not fit.
2026-11-17 18:27:15 -08:00
yoriswind 0dd87f8921 Merge main into the qualified Eraser group-stroke repair 2026-11-17 17:40:53 -08:00
dotCooCoo dc30166813 Merge main into feat/save-for-web-delete-color 2026-11-17 16:25:37 -08:00
dotCooCoo ad03873c06 Merge main into feat/distort-images 2026-11-17 16:21:37 -08:00
dotCooCoo 949171b715 Save for Web: GIF lossy moves no pixel into or out of a shifted color
Lossy compression compared each pixel with the reduction's colors, so a pixel next to a color shifted by hand could join that color and be written in its new color, and a pixel of the shifted color could leave it. Lossy now leaves the entries of shifted colors alone, as it does the transparent entry.
2026-11-17 15:32:51 -08:00
dotCooCoo c9812414ce Merge main into feat/save-for-web-shift-color 2026-11-17 13:00:56 -08:00
dotCooCoo 09b7f6c3ce Merge main into feat/stylus-wheel 2026-11-17 12:36:31 -08:00
BFlat 1f84febb08 Merge pull request #8169 from dotCooCoo/fix/symbol-lookup-index
Symbols: render and SVG/PDF export find each instance's symbol in one index
2026-11-18 03:23:44 +07:00
dotCooCoo 54e8d3046e Save for Web: Delete Color removes colors from the color table
The color table's trash button and Delete Color in its new menu delete
the selected GIF or PNG-8 colors. Pixels that used a deleted color take
the nearest color left, with the current reduction's color distance and
dither, and the preview matches the saved file. A click selects one
color and makes it the anchor, Shift-click selects the range from the
anchor, and Ctrl-click (Command-click on macOS) adds or removes one.

- colorTable.deleted lists the deleted colors by source. A deleted color
  leaves the locked, transparent and webShift lists.
- colorTable.customPalette fixes the palette at the first deletion, so a
  deleted color is not made again; the table reads Custom. Restore
  Generated Table in the menu, or another reduction, clears both.
- Deleting every opaque color, or every color not mapped to transparent,
  is an error and changes nothing.
- Presets and the remembered settings keep the edit.
- quantize_to uses all 256 fixed colors when no pixel is transparent.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-17 12:23:26 -08:00
bflatastic 82c9631b57 Render: a gradient mesh past any buffer draws without flattening its outline
A damaged .ai can give a gradient mesh whose outline is enormous but finite.
draw_mesh_raster flattened that whole outline in device pixels (grown_outline),
and kurbo's flatten then asked for more segments than memory holds: a
"capacity overflow" panic (seen in import_fuzz's ai_written_meshes_never_panic).
An outline wider or taller than 2^24 device pixels now goes to the per-quad
drawing path the function already falls back to.
2026-11-18 01:41:52 +07:00
dotCooCoo 4373826cc6 Free Transform: Perspective Distort and Free Distort put an image's corners on the handles
Perspective Distort and Free Distort (`object.distort`) used to give an image
only the warp's affine approximation at its center, so its corners did not
follow the handles and it drifted away from paths warped with it.

- An image's four corners now go exactly where the warp takes them, alone or
  in a mixed selection. A parallelogram stays in the image's transform; any
  other shape is kept in the new `image_quad` field of the native file, which
  older files do not have and still open as before.
- Corners that would fold the image over, fall on one line, cross the warp's
  horizon or lie too close together for a perspective map are an error, and
  nothing changes. A file whose corners break these rules opens with the image
  placed by its transform. A drag is one undo step, and a distort that leaves
  the corners where they are records none.
- Bounds, hit testing, transforms, Transform effects, blends, the Eyedropper,
  Outline view, the Color Theme Picker and Weed Box and Lines follow the
  corners. Image info measures the resolution at the image's middle, and
  plug-ins get the corners.
- The canvas, printing and every exporter draw a distorted image as a mesh of
  affine image pieces through the shared mesh warp, clipped by the corners.
  In files and print the mesh aims to stay within 0.05 pt with cells of at
  least 2 pt; the canvas cuts it for the zoom, within a quarter of a pixel
  with cells of at least 4 pixels. Pieces reach into their neighbors (0.5 pt,
  or 2 pixels on the canvas), so the image stays opaque at every zoom. The
  mesh has at most 64 by 64 cells and no more cells across than the image
  has pixels on its longer side (at least 8). No warped copy of the pixels is
  stored. DXF and WMF write the nearest parallelogram and warn.
- Crop Image, Image Trace, Relink, Embed, Unembed, Create Object Mosaic,
  Create Gradient Mesh and Place with Replace refuse a distorted image with an
  error that names the distortion. Update Links puts a changed file's pixels
  between the same corners, without applying Placement Options. Mask follows
  the corners. Rasterize makes a plain image of it.
- The new error messages have rows in every complete-message catalog.

Docs: docs/mcp.md, docs/plugins.md, docs/target-app-parity.md.
2026-11-17 08:46:08 -08:00
yoriswind 4c764b2912 Merge main and retain qualified changes for #7065 2026-11-17 05:51:24 -08:00
dotCooCoo 14d814b9f0 Merge main into feat/stylus-wheel 2026-11-17 03:57:49 -08:00
yoriswind df92153483 Merge upstream main and retain independent progress documentation 2026-11-16 23:59:16 -08:00
BFlat b506bdc525 Merge pull request #8228 from dotCooCoo/feat/webp-lossy-quality
WebP: Lossy with a Quality setting writes a lossy WebP file
2026-11-17 11:45:05 +07:00
yoriswind 443b081128 Merge upstream main and retain independent parity history 2026-11-16 19:11:21 -08:00
BFlat dff94107d9 Merge pull request #8247 from dotCooCoo/feat/rasterize-transform-copies
Effects: each copy of a Transform effect listed after Rasterize carries the Rasterize image
2026-11-17 09:48:50 +07:00
dotCooCoo 6dae0b77e5 Merge main into feat/webp-lossy-quality 2026-11-16 17:39:20 -08:00
BFlat 1b14abbcdb Merge pull request #8080 from dotCooCoo/perf/curved-stroke-edges
Render: wide curved strokes draw their rims closer to the curves
2026-11-17 08:19:45 +07:00
dotCooCoo 76acc2e16c WebP: lossy export refuses a frame whose first partition overflows its size field
A VP8 key frame stores its first partition's size in 19 bits (RFC 6386
section 9.1). The encoder writes 524,287 for a larger partition too, and
a decoder then reads the token partition from the wrong offset. A lossy
WebP whose size field is at that limit now fails with an error that
suggests a lower resolution or Lossless, instead of writing a file that
does not decode.
2026-11-16 17:00:02 -08:00
FredApps 9a01d266b0 Merge pull request #8152 from storytold/cutover/shared-packbits
refactor: share TIFF and EPS PackBits encoding
2026-11-16 23:30:20 +01:00
yoriswind e9444983ef Merge main and preserve source-fitted container gradients 2026-11-16 14:16:34 -08:00
dotCooCoo 00f42826ef Effects: each copy of a Transform effect listed after Rasterize carries the Rasterize image
On a path or compound path, a Transform effect with copies listed after
the object's own Rasterize effect now places the one image Rasterize
makes of the art before it on the original and on each copy: copy k
through the effect's map applied k times, with its pixel grid and its
room around the art, the last copy lowest and the original on top.
Before, the Transform effect copied the art and Rasterize made one image
of all the copies on a grid square to the page.

The image is made once for every placement, also when a shadow or glow
is listed between the Rasterize and Transform effects. The canvas, the
object's bounds, Expand Appearance and PDF export use the same
placements; Expand Appearance and PDF export make a group of images that
share the one image's pixels. Copies stop where the copied art stops,
and a copy scaled to nothing is left out.
2026-11-16 13:55:27 -08:00
dotCooCoo 2f7e60dd54 WebP: Lossy with a Quality setting writes a lossy WebP file
WebP Options has a Compression menu (Lossless, Lossy) and a Quality
slider from 0 to 100 that is enabled for Lossy. document.export,
document.serialize and Export for Screens take lossless: false with
quality (default 90) and write a VP8 file, with an ALPH chunk that keeps
the alpha exactly when some pixels are not opaque. Lossless stays the
default. A WebP quality above 100, or one that is not a whole number,
is refused with an error.

The encoder is the one craft-image-codecs already provides; no
dependency changes. The note that lossy WebP isn't available, its
catalog rows and the format text that described it are removed.
2026-11-16 12:30:56 -08:00