Commit Graph
11729 Commits
Author SHA1 Message Date
dotCooCoo d1e9fc67db Save for Web: Lock, Transparent and Web Shift are off for a selected color the table no longer shows
The three buttons act on the last color clicked (__color). After a change of reduction or color count, or through ui.dialog.set, that color can be one the table no longer shows, and a click added it to locked, transparent or webShift. The buttons are now enabled only when the table shows that color, the same check Delete Color uses.
2026-11-17 19:13:47 -08:00
dotCooCoo fc5460d18e Save for Web: GIF lossy compares pixels with the web-snapped colors
Web shift and web snap now run before lossy compression again, so a pixel
is compared with the color its neighbor's entry is written as. Colors
shifted by hand are written after lossy, which still moves no pixel into
or out of them.
2026-11-17 18:57:53 -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
dotCooCoo 5ac41ee089 Save for Web: Delete Color skips selected colors the table no longer shows
A selection made before the reduction or the color count changed, or set
through ui.dialog.set, could name a color the table no longer holds. Delete
Color stayed enabled for it, added the absent color to colorTable.deleted
and fixed the table as a Custom palette although no shown color was
deleted. Delete Color is now enabled only for selected colors the table
shows and deletes only those; a selection with none of them is cleared and
the table is left unchanged.
2026-11-17 17:56:55 -08:00
dotCooCoo f6c512920a Save for Web: a fixed palette keeps an opaque color when it maps colors to transparent
With a fixed palette (Custom table), the colors listed in colorTable.transparent
all become the one transparent entry, so together they now take a single slot of
Colors, and the opaque colors fill the remaining slots in palette order. Before,
the palette was cut to its first entries; when those were all mapped to
transparent, every opaque pixel took one of them and the whole image turned
transparent, and with a deleted color the export was refused although an opaque
color was left past the cut. The check that a deletion leaves an opaque color
now reads the whole palette.

When no pixel is transparent and no pixel takes a color mapped to transparent,
that slot goes to the next opaque color. At 256 colors one entry stays for a
color mapped to transparent.
2026-11-17 17:29:11 -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 dedff4e91e Save for Web: ui.dialog.set accepts __editColor to open the Color Picker
The color table's __editColor control opens the Color Picker on a source color, as a double-click on its swatch does. ui.dialog.set refused it as a protected field; Save for Web now lists it with its other controls.
2026-11-17 14:48:43 -08:00
dotCooCoo 2209a64dc2 Save for Web: double-clicking a color-table swatch shifts that color
Double-clicking an opaque GIF or PNG-8 color-table swatch opens the
Color Picker. Its OK writes that color as the color picked wherever it
appears in the image; Cancel changes nothing. A shifted swatch shows the
original color at its upper left and the new one at its lower right,
with the lock mark. Double-clicking it opens the picker on the original
color, and OK on it takes the shift away. Unshift All Colors in the
table's menu clears shifts and web shifts.

- colorTable.shifted {"#source": "#rrggbb"} carries the shifts by
  source color, in the settings, the remembered settings and presets.
  A shifted color is kept when reducing, before locked colors, and wins
  over Web Shift, Web Snap and Lock; a color mapped to transparent stays
  transparent. Bad colors, duplicate keys and more than 256 entries are
  refused. The preview marks shifted colors.
- GIF lossy compression compares pixels with the reduction's colors
  before the table's edits, so a shifted or web-shifted color does not
  take in the pixels of a nearby color.
- Web Shift replaces a shift by hand, Lock stays on for a shifted color,
  and Delete Color drops a deleted color's shift.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-17 14:28:52 -08:00
dotCooCoo c9812414ce Merge main into feat/save-for-web-shift-color 2026-11-17 13:00:56 -08:00
BFlat ee60c51fd9 Merge pull request #8323 from dotCooCoo/fix/psd-cmyk-placement
Fix #8316: preserve CMYK PSD images when placed or relinked
2026-11-18 03:23:55 +07: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
BFlat aab753f4f2 Merge pull request #7819 from dotCooCoo/feat/textures-map-art-and-shading
Export 3D Object: mapped graphics export as textures of their faces
2026-11-18 03:23:34 +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
BFlat 41b70ed172 Merge pull request #8333 from dotCooCoo/fix/issue-6117
Enclosing Lasso: the tool is in the Lasso tool's flyout
2026-11-18 03:23:25 +07:00
BFlat 521e5ac158 Merge pull request #8258 from dotCooCoo/feat/type-forced-line-break
Type: Forced Line Break inserts a line break in the paragraph, at the caret
2026-11-18 03:23:16 +07:00
BFlat 0d8315801f Merge pull request #8207 from dotCooCoo/fix/issue-8090
Fix #8090: the Eyedropper samples into picked gradient mesh points
2026-11-18 03:23:07 +07:00
BFlat 7429d7247f Merge pull request #8265 from dotCooCoo/feat/live-paint-isolation-adds-paths
Live Paint: paths drawn in an isolated Live Paint group join it when isolation ends
2026-11-18 03:22:58 +07:00
BFlat 97503140eb Merge pull request #8166 from dotCooCoo/fix/blur-drag-test-clock
Tests: canvas tests keep their color settings when a parallel test changes them
2026-11-18 03:22:47 +07:00
BFlat bb0329a885 Merge pull request #7750 from dotCooCoo/feat/mesh-drop-color-point
Gradient mesh: a color dropped or eyedropped on a point or patch recolors it
2026-11-18 03:22:38 +07:00
BFlat a18fef053f Merge pull request #8288 from dotCooCoo/fix/metafile-loss-warnings
Metafile import: warn about images, clips and raster operations the reader leaves out
2026-11-18 03:22:29 +07:00
BFlat 496f1e351e Merge pull request #8287 from dotCooCoo/fix/pdf-large-images-64-bit
PDF import: 64-bit desktop builds open images up to 4 GB and 2^30 pixels
2026-11-18 03:22:18 +07:00
BFlat d55a967dde Merge pull request #8157 from dotCooCoo/fix/hfp-full-tone
Image Trace: High Fidelity Photo traces in Full Tone with abutting shapes
2026-11-18 03:22:09 +07:00
BFlat e1b12a5640 Merge pull request #8060 from dotCooCoo/feat/hyphenation-languages
Type: text hyphenates in Bulgarian, Turkish and Russian, and in German, Polish, Portuguese and Italian with CRAFT_I18N_DIR
2026-11-18 03:22:00 +07:00
BFlat 957881339f Merge pull request #8219 from dotCooCoo/chore/craft-libs-exr-deep-offsets
Dependencies: take craft-libs crates other than craft-plotter from craft-libs main at 64b181977a
2026-11-18 03:21:50 +07:00
BFlat a3a9b081e2 Merge pull request #8062 from dotCooCoo/feat/loaded-text-link-cursor
Selection: loaded text shows a link cursor over an object a click threads it into
2026-11-18 03:21:40 +07:00
BFlat b458f8f757 Merge pull request #7254 from dotCooCoo/fix/ai-xa-working-rgb
.ai save: Lab colors and type paints are written in the working RGB space
2026-11-18 03:21:30 +07:00
BFlat a85cb5cf8e Merge pull request #8332 from dotCooCoo/fix/issue-7095
Fix #7095: a double-click on a pattern swatch no longer paints its tile
2026-11-18 03:21:20 +07:00
BFlat 5088d9c6ec Merge pull request #8272 from dotCooCoo/feat/emf-font-width-scale
Metafile import: a LOGFONT average character width becomes Horizontal Scale
2026-11-18 03:21:07 +07:00
BFlat d7556fbae5 Merge pull request #8249 from dotCooCoo/feat/swatches-drag-to-delete
Swatches: swatches dragged onto the Delete Swatch button are deleted
2026-11-18 03:20:53 +07:00
BFlat 3ab5db4c64 Merge pull request #8092 from dotCooCoo/fix/issue-8047-group-marquee
Group Selection: a marquee selects the objects it touches, whole
2026-11-18 03:20:42 +07:00
BFlat aa8ef006da Merge pull request #7446 from dotCooCoo/fix/ai-transform-guide-reach
.ai import: guides past an object's art keep the drawn look under Transform and Free Distort
2026-11-18 03:20:32 +07:00
BFlat 0d681e804d Merge pull request #8339 from dotCooCoo/fix/bounds-reference-number
Fix #8334: setBounds reads whole-number float references correctly
2026-11-18 03:20:23 +07:00
BFlat 40f1080a86 Merge pull request #8215 from dotCooCoo/fix/trim-line-end-on-curve
Path Precision Tools: a path that ends on a curve still divides it after the curve is cut
2026-11-18 03:20:13 +07:00
BFlat a3a3f2dfec Merge pull request #8108 from dotCooCoo/feat/spiral-constrain-angle
Spiral: dragging turns the spiral to the pointer, and the click dialog starts it along Constrain Angle
2026-11-18 03:20:05 +07:00
BFlat 409b8ce9d1 Merge pull request #8058 from dotCooCoo/perf/selection-batch-toggle
Selection: select.toggle and select.add with many ids go through the selection once
2026-11-18 03:19:52 +07:00
BFlat 3bdc7400a3 Merge pull request #8045 from dotCooCoo/fix/ai-legacy-perceptual-gradient
Legacy .ai: write Perceptual gradients with the stops on their curve
2026-11-18 03:19:43 +07:00
BFlat ba6e0683a5 Merge pull request #8328 from dotCooCoo/fix/followup-8305
Color Guide: a script run or a resting link keeps the base color it showed
2026-11-18 03:19:34 +07:00
BFlat 36219a7c79 Merge pull request #7905 from dotCooCoo/fix/touch-point-on-sample
Smart Guides: tangent and perpendicular snaps find a touch point that falls exactly on a sample
2026-11-18 03:19:25 +07: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 9ae9da71b8 Fix numeric reference points in bounds transforms 2026-11-17 08:02:50 -08:00
dotCooCoo c0342e63aa Swatches: quick clicks after a double-click do not apply the swatch
A third quick click on a swatch counts as a triple click, and so does
each quick click after it. Those clicks still applied the swatch, so a
triple click on a pattern swatch opened pattern editing and then
painted the tile art with the pattern itself. Only the first click of
a run of quick clicks now applies and selects the swatch.

The test now sends four quick clicks and gives the art a solid fill in
each view, so the list view's first click is checked on its own.
2026-11-17 07:59:01 -08:00
BFlat 36b5a5920c Merge pull request #8098 from el-j/feat/save-pdf-transparency-confirmation-8097
Fix #8097: Save PDF: show flattener rasterization resolutions in Summary warning and Advanced section
2026-11-17 22:38:24 +07:00
BFlat 27d0b095da Merge pull request #7075 from mockydevs/fix/twist-smooth-7069
Twist: handles follow the rotation's derivative, so a strongly twisted path is smooth
2026-11-17 22:38:15 +07:00
dotCooCoo cce26edfa0 Merge main into fix/metafile-loss-warnings
# Conflicts:
#	Cargo.toml
2026-11-17 07:25:38 -08:00
dotCooCoo 61abac22bf Merge main into chore/craft-libs-exr-deep-offsets
# Conflicts:
#	Cargo.toml
2026-11-17 07:20:10 -08:00
dotCooCoo ea4e3bce29 Color Guide: a script run or a resting link keeps the base color it showed
Running a script or a plug-in now ends the spot color base's link, as a
batch step already did, so a script that deletes the spot color and makes
another of the same name does not make the new one the base. Commands that
only list scripts or plug-ins keep the link.

While the link waits for an Undo, the color it captures before a command is
the one the guide shows, not that of a new spot color of the same name.
2026-11-17 07:08:52 -08:00
dotCooCoo 4c47558d9a Merge main into fix/pdf-large-images-64-bit 2026-11-17 07:06:24 -08:00
dotCooCoo 02da66521f Fix #7095: a double-click on a pattern swatch no longer paints its tile
The second click of a double-click on a swatch also counted as a plain
click. After the double-click opened pattern editing, which selects the
tile art, that click applied the pattern swatch to the tile, so the
pattern held a copy of itself. The second click now only opens the
editor; the first click still applies and selects the swatch.

Reported by erolkarino. #7164 by mockydevs makes the engine refuse
painting the tile with its own pattern; this change stops the swatch
panel from sending that paint on a double-click.
2026-11-17 06:54:13 -08:00
dotCooCoo d1afba560d Enclosing Lasso: the tool is in the Lasso tool's flyout
The Enclosing Lasso Tool joins the Lasso group in both shipped
toolbars, right after the Lasso, and stays in Object › Plug-ins ›
Enclosing Lasso. The All Tools drawer lists it once, under Select, and
Edit › Keyboard Shortcuts › Tools lists it once. It has no default
shortcut, and the Lasso keeps Q. A toolbar the user already edited
keeps its saved layout; Reset Toolbar adds the tool.

Fixes #6117
2026-11-17 06:51:00 -08:00
BFlat c4147826a3 Merge pull request #7353 from dotCooCoo/fix/i18n-adjacent-placeholders
i18n: messages with values side by side can be translated
2026-11-17 21:32:55 +07:00