mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
feat/shortcut-sets
20
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
+40 |
3a77137121 |
.kys import: tool keys and sets saved on Windows (K3) (#5345)
* Raw: measure the Nikon D90 image area (4288x2848 at (10, 10)) Aligning the decoded D90 sensor plane with the camera's own JPEG puts the image at (10, 10) in the 4352x2868 sensor plane, giving the camera's 4288x2848 frame (10-pixel margins; the right border reads the camera's flat 255 from column 4310). Add the measured ImageArea so a D90 NEF opens on the camera's frame instead of the uncropped plane, and make a measured profile leave a file that carries its own colour calibration (a DNG) untouched. * Codecs: open Cineon (.cin) film frames read-only Cineon is the 10-bit logarithmic film-scan format DPX grew from. Read it from the same Kodak header family: the generic header (big-endian, orientation at 192, channel count at 193, the channel-1 bits/dimensions), one or three channels, three 10-bit samples packed into each 32-bit word on a word boundary. The 10-bit code values open as U16 (round(c x 65535 / 1023)); the file's log black/white points are a display choice and are not applied. A depth other than 10 bits or a channel count other than 1/3 is Unsupported; truncation errors rather than panicking. Read-only (no Cineon writer), so .cin joins the open filters and Cineon read closes part of #1049's G10 gap. * .kys import: tool keys and sets saved on Windows (K3) Photoshop's <tool> rows now import: each matches our tool by name (our tool names are Photoshop's) or by pc-id in sets PhotoCraft exported, and a letter other than the tool's own becomes its override, while its own letter keeps the tool cycling with the others (#5036). A set saved on Windows spells the primary modifier Ctrl where a Mac set writes Cmd and keeps Control for the Control key. A set with no Cmd or Opt anywhere but some Ctrl is read as a Windows set, its Ctrl as our Cmd: Ctrl+L is the Cmd+L default, not a Control-key override that would also mean Control on a Mac. The import reports `windows`. * Vector: bound flattening memory, keep over-budget dashes, cheaper edge build (#5195) (#5204) * Vector: bound flattening memory, keep over-budget dashes, cheaper edge build (#5195) - flatten: a path's flattened points are capped at 1 << 20; past it every curve keeps a proportional share of its pieces (at least one), so hostile handles from files (vmsk, SVG, effect outlines) cannot exhaust memory. fill_rasterizer flattens the whole path under one budget. - stroke: past the dash step budget (or below coordinate precision), dash_polyline keeps the dashes made so far and draws the rest solid instead of dropping the stroke. Open polylines are no longer copied. - raster: coordinates are clamped to +-1e15 and edges with a non-finite slope (vanishingly short) are skipped, so huge finite coordinates no longer produce NaN coverage. fill_rasterizer sorts edges once instead of after every component (stable sort, identical order). - Cleanups: dead miter `half`, dead loop-length check in trace_mask, shared mask render body, map_knots helper, shared straight-segment test. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Vector: bound stroke outline points (#5211) - stroke_polygons dashes all lines first, then counts round caps and joins. When their full-resolution tessellation would exceed 1 << 20 outline points, every round cap and join gets the same smaller segment count (down to 4 per circle, 1 per join; area-exact radius kept). Strokes under the budget are unchanged; no piece is dropped. - The dash step budget (100000) is now shared by all lines of a stroke instead of per polyline, so many subpaths cannot multiply the dash (and cap) count. Past it the rest is drawn solid, as before. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * fix: limit Render Video timeline and GIF staging allocations (#5670) * fix(export): prompt for a Render Video output directory (#3365) (#3378) fix(export): prompt for a Render Video output directory (#3365) Also covers the same fix as #3390; thanks to its author. Co-authored-by: buivanvu94 <[email protected]> * fix(ui): avoid overflow when allocating layer style instance IDs (#4884) * fix(ui): avoid overflow when allocating layer style instance IDs * fix(ui): avoid panicking when layer style IDs overflow * fix(ui): format non-panicking layer style ID allocation * fix(doc): variable definitions follow layer id remapping on copy and load (#5023) * fix(doc): variable definitions follow layer id remapping on copy and load A duplicated document (image.duplicate, history.newDocument) or a .pcraft loaded with remapped ids assigned fresh layer ids but cloned VariableDef.layer unchanged, so datasets silently drove no layer (or, after remap, a colliding one). Remap variable targets through the same id map as layer comps and slices; a dangling target keeps a non-colliding placeholder. A merged-only duplicate drops the whole variable binding set, matching how it drops comps. Closes #4969 * style: cargo fmt duplicate_variables test --------- Co-authored-by: highperfocused <[email protected]> * fix(raw): reject truncated or oversized Deflate tiles in DNG import (#4977) (#5072) * fix(history): count fill caches and smart filter masks in undo memory (#4972) (#5075) * fix(ui): keep the close prompt up when a Save Document script edits the document after saving (#4953) (#5081) * fix(geom): clamp huge sizes in Rect::from_xywh instead of wrapping, and saturate TileCoord::rect (#5161) Co-authored-by: Saad Abdullah <[email protected]> * fix(algo): keep clipped warp bounds from overflowing (#5451) warp() computed the source-centre fallback as (x0 + x1) in i32 and the inverse-mapped tile footprint as `floor() as i32 - 3` / `ceil() as i32 + 3`. With a strongly skewed finite affine (for example Homography [1, 1e12, 0, 0, 1, 0, 0, 0, 1] on a 32x32 clip) the float-to-int cast saturates at i32::MIN/MAX and the following -3/+3 overflows, panicking in debug builds and wrapping in release. A source rect with coordinates near 1.5e9 would overflow the centre sum the same way. Widen the centre sum to f64 and use saturating_sub/saturating_add for the footprint, which is intersected with src_rect afterwards anyway. Add crates/algo/tests/warp_clipped.rs covering clipped-vs-full equivalence, huge scale allocation, the extreme-affine footprint, and the far-origin source centre. Refs #3446 * fix(linux): install the AppImage menu entry when AppImageLauncher skips it (#5551) AppImageLauncher exports DESKTOPINTEGRATION even after X-AppImage-Integrate=false makes it skip the AppImage. AppRun treated that variable as "already integrated" and wrote no .desktop file, so the menu stayed empty. Skip our entry only when another .desktop file's Exec already points at this AppImage. Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: nrq6993-a11y <[email protected]> * FITS: clamp 32-bit saves to 0..1 and warn, so they reopen as saved (#5627) (#5628) FITS: clamp 32-bit saves to 0..1 and warn, so they reopen as saved (#5627) Also covers the same fix as #5642; thanks to its author. Co-authored-by: nrq6993-a11y <[email protected]> * Properties / New Document: tiny sizes in physical units no longer resize the document (#5661) (#5662) The Width/Height fields in Properties > Document and in the New Document dialog clamped their shown value to at least 0.01 of the unit. A 1 x 1 px document at 300 ppi is 0.0033 in, so showing it in inches clamped it to 0.01 in, the field reported a change and the document became 3 x 3 px (two history steps, no user edit). The fields now accept down to 0; the pixel conversion afterwards already clamps to at least 1 px. Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * fix(psd): write the layer block after a kept merged-transparency marker (#5673) A 16/32-bit document saved as PSD has its layers in a global Lr16/Lr32 block, which the writer put first among the global blocks. A Mtrn/Mt16/Mt32 marker kept from the opened file then followed it, and Photoshop refuses such a file (verified in Photoshop 2026 with psd-tools' transparentbg.psd re-saved both ways: Mt32 first opens, Lr32 first doesn't). The layer block now goes right after the last kept marker, as Photoshop orders them. Fixes #5068. Co-authored-by: Claude Opus 5.5 <[email protected]> * Options bar: Brush and Eraser size go to 5000 px in every theme (#5708) (#5709) Options bar: Brush and Eraser size go to 5000 px in every theme (#5708) Also covers the same fix as #5724; thanks to its author. Co-authored-by: nrq6993-a11y <[email protected]> * Smart Objects: Curves preview no longer zooms in on a reduced proxy (#5766) (#5779) Adjustments and filters on a smart object add a smart filter, so their live preview re-renders the smart object from its source through its placement. The preview runs on a proxy document scaled down by k (large documents), and proxy_document scaled the smart object's cache but left its transform (and perspective and filter mask) in full-size document coordinates. The re-render then came out k times too large on the proxy canvas, so the object looked zoomed in until OK committed the full-size result. proxy_document now scales the placement and the filter mask with the proxy. Co-authored-by: Claude Opus 5.5 <[email protected]> * Fix Nikon NEF lossy levels, packed decoding and metadata crops (#3238) Co-authored-by: optimalbytee <[email protected]> * Curves: apply to masks, alpha, and Quick Mask (#5335) (#5448) Curves: apply to masks, alpha, and Quick Mask (#5335) Also covers the same fix as #5578; thanks to its author. Co-authored-by: Zer0C00L01 <[email protected]> * perf(ui): bound carried selection outlines and stabilize clipping (#5699) Limit whole-selection transform traces to a padded one-million-cell grid while preserving normal viewport caching and thin boundary samples. Use double-precision intermediates for clipping long perspective lines. Add regressions for large/disconnected selections and viewport accuracy near the projective horizon. Preserve the full-resolution selection and the transform behavior already landed in #5337. Related: #5297, #3402. Co-authored-by: LabDennis <[email protected]> * fix(heif): a grid's ICC profile is inherited from its tiles (#5553) fix(heif): a grid's ICC profile is inherited from its tiles Also covers the same fix as #5591; thanks to its author. Co-authored-by: nrq6993-a11y <[email protected]> * fix(ui): expose toolbar column toggle in all themes (#3538) fix(ui): expose toolbar column toggle in all themes Also covers the same fix as #4680; thanks to its author. Co-authored-by: Marco Arnulfo <[email protected]> * Double-clicking the empty workspace shows File › Open (#5367) (#5429) Double-clicking the empty workspace shows File › Open (#5367) Also covers the same fix as #5461; thanks to its author. Co-authored-by: Nigel Ihza Firdausy <[email protected]> * fix(ui): a held arrow key keeps stepping the focused value field (#5474) (#5497) Holding Up/Down in a value field (Character panel tracking, size, …) stepped it a couple of times, then jumped focus to the field above. Each arrow step re-requested focus on the field that already had it. egui's request_focus resets the field's event filter, so on the next frame egui no longer knew the field takes vertical arrows. A key repeat landing on that frame was read as "move focus up". Single presses rarely hit that frame; held keys always do. Only request focus when the field lost it (after a typed sum gives it up to be worked out). Regression test feeds key repeats on consecutive frames with a field above and failed before the fix (focus moved after two steps). Fixes #5474 Co-authored-by: Claude Opus 5.5 <[email protected]> * fix(ui): ⇧ marquee square keeps equal sides on the pixel grid (#5472) (#5506) The ⇧ square (and a 1:1 fixed ratio) is built in continuous document coordinates, and `marquee_px` then snapped each axis to the pixel grid on its own: floor the near edge, ceil the far one. A press between pixels, dragged 100.5 px, snapped x to 101 and y to 102, so the readout and the committed selection were off by one. `marquee_preview_px` now grows the shorter side to the longer one, away from the press point, so the square still covers every pixel the drag touched. Ants, readout and commit share this path. Fixes #5472 * fix(engine): validate bounded extended filter parameters (#5586) * Guide Layout: the disabled Rows field no longer turns Rows on (#5625) (#5626) The disabled Number field still drew a DragValue with range 1..=1000, which clamps the default rows 0 to 1 and reports a change; writing that back made the Rows checkbox's `positive` fallback turn on, so OK added guides at the top and bottom. Disabled number fields no longer write back. Kittest regression covers Rows and Columns. Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * Fix filter preview live during drag (#5549) * Filter dialogs: paint the preview computed mid-drag instead of waiting for the pointer to stop A preview that finished while the slider was still moving was thrown away before it could reach the canvas, because the worker result had to match the request on every field including the parameters. Every completion of a drag lands after the value has moved on, so none of them matched, the worker was handed the newest value instead, and that one went stale in turn. Nothing was ever painted while the pointer moved: the effect appeared only once the slider had been still for about a frame of preview time, which is what "I have to stop the slider and wait" looks like. The display gate a few lines below already had the opposite rule. It compared the document, revision, dialog, layer, channel target, command and proxy factor and deliberately left the parameters out, so that a slightly old frame stays on screen mid-drag. The publish gate disagreed with it and won, so the frame the display gate was written to keep never existed. Publish a successful result when the finished request matches the current one on everything except the parameters, and let the existing display gate decide whether to keep it. The two gates now share one predicate, FilterPreviewKey::same_target, so they cannot drift apart again. Errors keep the exact match. A value the pointer has already dragged past should not raise a notice, and a failure is not something to show stale. What this deliberately does not change: - A reopened dialog has a new id, a committed document a new revision, a different command or channel target a different key, so a result from another preview is still never painted. Covered by a_reopened_dialog_discards_the_previous_dialogs_finished_preview. - The freshly computed request is still what decides whether a new computation starts, so the worker still converges on the value the dialog actually holds. - One preview runs at a time and a stale one is still cancelled only once the values settle, so this adds no work to the worker; it only stops discarding completed work. - OK still recomputes at full resolution, so a frame shown mid-drag is never what gets written to the document. Test: a_preview_computed_mid_drag_reaches_the_canvas starts a blur at one radius, moves the slider before that preview lands, and requires the completed frame to reach the canvas while the slider is still on the new value. It fails on the old gate, timing out after 10 s with no frame published. * Filter dialogs: three guards on a mid-drag preview, after review The first version of this let any completed frame through that matched the dialog on everything but the parameters. Review found three ways that is wrong, and all three are now closed and pinned by a test. A stale result with nothing to show. Storing it replaces a good frame with an empty one, which the display gate paints as "draw nothing": the canvas blinks back to the unfiltered layer mid-drag. The exact request may still store an empty result, which is how a filter that no longer applies clears the canvas, so the guard belongs on the stale arm only. Splitting the match arm is what makes that separable; the earlier single arm forced a false choice between the two. A late frame replacing an exact one. Drag the slider away and straight back: the frame on screen is already exact for the dialog, and the in-flight frame for the value on the way out would have overwritten it, showing a blur the user has already undone. A stale result is now dropped when the stored preview is already exact. Errors were already scoped to the exact request and stay there: a value the pointer has dragged past should not raise a notice, and the value it comes to rest on will raise its own when it is recomputed. Also pinned by test, because both are easy to undo by accident: - The reopen test was not reaching the gate. discard_closed reclaims a closed dialog's job a frame earlier in the real app, and the test called it too, so the stale result never arrived and the test passed even with the dialog id removed from the comparison. It now drives the gate directly. Verified by mutation. - The mid-drag test asserted nothing about what the display gate does with the published frame, so re-adding params there passed. It now asserts the canvas actually returns something to draw, and it keeps polling until a frame for the dialog's current value lands, which is what pins fresh to an exact match. Tests are deterministic: the worker job is gated on a channel and signals when its result is already in the worker channel, so nothing sleeps and nothing races the 150 ms settle timer that cancels a job whose values stopped changing. Verified by mutating each guard and confirming a test catches it: publish gate back to exact-match ................. killed drop the is_some guard ........................... killed drop the already-exact guard .................... killed same_target ignores the dialog id ............... killed display gate compares params again .............. killed fresh relaxed to same_target .................... killed same_target ignores k ........................... killed k stays in the comparison on purpose. A 36 MP document previews at k=4, and preview_factor lowers k as a pixel-sized parameter approaches its minimum, so k does change under the slider. Relaxing it would paint a frame at a scale the preview policy exists to avoid, and would loosen the display gate further than upstream wrote it. The cost is a one-computation pause when the slider crosses a threshold on a large document; that test keeps the choice visible. * Filter dialogs: fix a race in the new tests that let CI pass them The four new tests signalled each other through a channel the worker sends from inside `compute`. But the worker only puts the result into the channel after `compute` returns: let result = compute(&work); let _ = tx.send(result); So a test that woke on the signal and called `ensure_filter_preview` immediately could reach `poll()` before that send. On a loaded CI runner it did: ubuntu failed `a_mid_drag_empty_result_leaves_the_preview_alone` with no frame published at all. The comment in the test claimed the result was already in the channel, which was the one thing it was not. The tests now drive the canvas until the state they need appears, which does not depend on the order of that send. They also check their invariant on every pass rather than only at the end: a wrongly published frame can be replaced by the next, correct one before the loop stops, which had already left the reopen, late-frame and empty-result tests unable to see their own mutation. Unchanged: the assertions, the production code, and the four mutations that broke each guard — re-verified, 7 of 7 still caught. Runs: 30 back-to-back runs of the four tests on 12 cores, no failure; the full crate twice, 2800 pass. --------- Co-authored-by: agent-346022 <[email protected]> * Fix #5414: Keep created paths visible and editable (#5424) * Paths: keep work and shape paths visible with any tool (#5414) * Tests: improve path overlay regression coverage * fix(ui): widen tool-options drag targets (#5135) Co-authored-by: haranishi <[email protected]> * fix(cms): write the product name as PhotoCraft in built-in profile descriptions (#5614) * style: rustfmt five files on main (fmt break from #5448, #5670, #5135) (#5873) Formatting only; cargo fmt --all -- --check passes again. * cargo fmt the extension lists Co-Authored-By: Claude Opus 5.5 <[email protected]> * Document layerFilter in the ui_set MCP schema (#5776) Co-authored-by: FredApps <[email protected]> * i18n(hu): align six rows with the catalog conventions (#5434) Three prompts used the formal verb form ("Adjon", "Válasszon", "kattintson"); the catalog addresses the user informally throughout. Two colour profile messages put an article before a placeholder ("A(z) „{name}”") and glued a suffix to one ("{mode}-profilja"). The correct form depends on the inserted value, so the placeholders now stand after a colon or in brackets. The Ask On Mismatch hint kept the English option name; it now names the Hungarian label of that option in Color Settings. * UI: centre text vertically in shared text fields (#5550) * UI: centre text vertically in shared text fields TextEdit draws its line at the top of its rect, and the theme's 24 pt interact height made the edit taller than the field's inside, so text in widgets::text_field sat a few pixels high (Preferences search, hex fields, name fields) while dropdowns and value fields were centred. Fill the box and centre the line in it. * Fixed failing test --------- Co-authored-by: Stevan Marjanović <[email protected]> * fix(ui): the Move tool keeps Photoshop's arrow pointer (#5814) The canvas cursor match mapped Tool::Move to CursorIcon::Move, the 4-way move cursor, while Photoshop shows its standard arrow pointer and marks the movable layer with the hover outline. Use CursorIcon::Default for the tool (#5646). * fix(pen): keep unfinished paths in their original document (#5460) * fix(pen): finish draft before creating a document * test(pen): keep open work path in its source document * Drag and drop: PhotoCraft comes to the front after a drop (#5687) (#5894) Files dropped from another app's window (a file manager) were imported, but the source window stayed in front of PhotoCraft. The frame that takes a drop now asks for focus, so PhotoCraft comes forward as Photoshop does. Co-authored-by: Claude Opus 5.5 <[email protected]> * Options bar: Show Transform Controls in every theme (#5740) (#5802) The Studio, Adwaita and Breeze themes' Move tool options bar had only Auto-Select and a hint, so Show Transform Controls could not be turned on there and a click on a layer never showed its box and handles. The toggle is now in every theme, as Auto-Select is (#1275). Co-authored-by: Claude Opus 5.5 <[email protected]> * Preserve Layers scroll per document (#5522) (#5540) * chore: reserve draft implementation for #5522 * fix(ui): retain each document's Layers scroll position (#5522) * Rulers: Alt-drag makes a guide of the other orientation (#5698) (#5885) As in Photoshop, dragging a guide out of the top ruler with Alt/Option held makes a vertical guide, and out of the left ruler a horizontal one; without Alt each ruler makes its own kind, as before. Co-authored-by: Claude Opus 5.5 <[email protected]> * Adjustment layers: a live preview is never coarser than the screen (#5764) (#5778) Dragging a Curves point (or any control) in the Properties panel of an adjustment layer previews through `canvas::ensure_proxy_preview`, which picked its downscale factor from the document size alone (`proxy::preview_factor`): any document over 5 MP was drawn from a 2-5x reduced copy at every zoom, so at 100 % the canvas turned blocky until the mouse was released. Cap the factor by the view's zoom with the rule the Image > Adjustments dialogs already use (`adjust_preview::proxy_factor`: the proxy stays at least at screen resolution) when the wgpu compositor can draw the full-size document. At 50 % and closer the drag now shows the full-size composite; zoomed out, the proxy still saves the work. Documents the GPU compositor doesn't cover keep the old proxy (the full size would be a CPU composite per change). Co-authored-by: Claude Opus 5.5 <[email protected]> * UI: unsaved-changes buttons show every key in one style (storytold/photocraft#5564) (#5603) German showed "Ja (Y)" next to "(N)ein". Keys now go inside the words only when every translated label starts with its key; otherwise all labels append it ("Ja (Y)", "Nein (N)", "Abbrechen (C)"). Co-authored-by: Cursor <[email protected]> * macOS: a bundled app keeps its own Dock icon (#5849) (#5879) The main window set a runtime PNG icon everywhere. On macOS that replaces the app bundle's PhotoCraft.icns in the Dock, so the system couldn't render it in its own style (Liquid Glass and its tinted and dark variants). The runtime icon is now skipped when running from an .app bundle; unbundled runs and the Windows and Linux builds still set it. Co-authored-by: Claude Opus 5.5 <[email protected]> * Title bar: dialogs no longer stop the window dragging on macOS (#5826) (#5860) The overlay that keeps the title strip's free gap draggable under a dialog's modal layer (#4913) only ran with the custom title bar. macOS keeps the OS traffic lights over the app's own title strip (custom_titlebar is false), so with the Embedded Profile Mismatch prompt or any dialog open the window could not be moved. The overlay now runs whenever the strip is drawn. Co-authored-by: Claude Opus 5.5 <[email protected]> * fix(path): Shift locks a Direct Selection anchor drag to 45° (#5475) (#5498) Dragging selected anchors with the Direct Selection tool ignored Shift, so lengthening a slanted bar also nudged it vertically. As in Photoshop, Shift now locks the anchor move to multiples of 45° from the press, in the live preview and in the committed path.moveAnchors. It works whether Shift is held from the press or added during the drag; Shift at the press still toggles the anchor's selection as before. Reuses stroke_constraint::snap45 (the Gradient tool's Shift lock). Fixes #5475 Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Brandon Thomas <[email protected]> * Type: keep text selection highlight visible while Command/Ctrl is held (#5542) * Type: keep text selection highlight visible while Command/Ctrl is held * Type: match Photoshop 1px dark frame and handle styling for type transform * Merge main; keep the transform box and underline colours from the theme tokens The selection-highlight fix stands on its own; the hard-coded box and underline colours and the removed reference point were unrelated to it. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: safvanedge <[email protected]> Co-authored-by: Brandon Thomas <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * Filter dialogs: a Random button for seeds (#5710) (#5886) Clouds, Difference Clouds, Add Noise, Fibers and the other seeded filters exposed a seed number, but a new pattern meant typing a different one. A Random button beside every seed field now picks a fresh seed, which the live preview renders at once. "Random" gains its row in the zh-Hans, zh-Hant, ru, fr and id catalogs, which claim complete coverage. Co-authored-by: Claude Opus 5.5 <[email protected]> * Brushes: dragging a preset to the list's edge scrolls the list (#5741) (#5862) A preset, group or folder dragged in the Brushes panel or the Brush Preset picker couldn't reach rows out of view: the list didn't scroll while dragging, so the drag stopped at the last visible row. Holding the drag at the list's top or bottom edge (or past it) now scrolls it, with the same ramp as the Layers panel's row drags. Co-authored-by: Claude Opus 5.5 <[email protected]> * fix(ui): smart filter adjustments open their own editor on double-click (#5812) An Image > Adjustments recorded on a smart object (Brightness/Contrast, Levels, Curves...) stores image.adjustments.<kind>. The Layers panel row called smart_ui::open_editor, which only knew filter_dialog and silently did nothing for those commands, so the filter could never be reopened. Route adjustments to adjust_dialog, seed it with the recorded params and let OK run layer.smartFilter.setParams (#5689). * Canvas: no scroll glide with Enable Animations off (#5721) (#5883) Interface > Enable Animations off already made scroll areas jump straight to their target, but the canvas still panned from egui's smoothed wheel delta, gliding for several frames after each notch. With the preference off a plain wheel scroll now moves the canvas by the whole notch in the frame it arrives and stops there. Co-authored-by: Claude Opus 5.5 <[email protected]> * Scaling around reference point no longer snaps center of image to reference point (#5510) Co-authored-by: Stevan Marjanović <[email protected]> * Type: a scaled type layer keeps its size when the Character fields show it (#5717) (#5718) egui's DragValue clamps an existing value to its range and reports a change, so showing a type layer scaled past 1296 pt (or below 0.1 pt) sent type.setStyle with the clamped size. Value fields now clamp only edits, never a value they merely show. Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * fix(ui): restore previous tool when committing or canceling text edit (#5527) (#5528) * fix(ui): restore previous tool when committing or canceling text edit initiated via double-click * fix(ui): restore return tool only while on type and stay on type for layer thumbs - commit_with/cancel: restore return tool only while app.ui.tool.is_type() - edit_active: keep tool on Type when editing from layer thumbnail (matches Photoshop) - clear text_edit_return_tool when text_edit is dropped on lost text or stale transform - test tool switch mid-edit and edit_active remaining on Type --------- Co-authored-by: safvanedge <[email protected]> * File › Scripts › Browse: reject Photoshop ExtendScript (#5406) (#5435) * File › Scripts › Browse rejects Photoshop ExtendScript. The picker listed .js/.jsx files that parse_script cannot run. Filter to JSON/text/droplet scripts and return a clear error for .js/.jsx paths. * File › Scripts › Browse keeps Photoshop extensions in the picker. Review feedback on #5435: filtering .js/.jsx out of the picker hid the rejection error from UI users. List Photoshop's script types (as #2452 asked) alongside PhotoCraft's so selecting one shows the ExtendScript error instead of hiding the file. * Channels: load the targeted layer mask as selection (#5562) * Load the targeted layer mask from Channels footer * Fix Channels test setup after mask reveal * Type: Swap and Default Colors recolour the selected text (#5690) (#5808) The toolbar's Switch Colors and Default Colors buttons ran their commands without type_tool::foreground_changed, so characters highlighted in the type layer being edited kept their colour. As in Photoshop, they now take the new foreground, like picking a colour in the Color or Swatches panel. Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * Image Size, Canvas Size: points and picas follow the Point/Pica Size preference (#5756) (#5757) The dialogs converted points and picas at a fixed 72 pt/in, while the rulers, Info, layer properties and the shape dialog use Preferences > Units & Rulers > Point/Pica Size. With Traditional (72.27) a document showed different point sizes in the rulers and in Image Size. The dialog now stores the preference's points per inch when it opens (__ptPerIn, 72 when missing) and uses it for points, picas (points / 12) and typed units in the Width/Height fields. Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * Pen and Path Selection: Delete deletes the finished work path (#5702) (#5732) A finished work path is drawn whenever the Pen, Freeform Pen or Path Selection tool is active, and it is saved with the document, as in Photoshop. But once the path was finished, Delete/Backspace fell through to Edit > Clear (the pixels under it), so the only ways to remove it were the right-click Delete Path and the Paths panel, and it looked impossible to delete. With those tools, no path being drawn and the work path the one they edit (no shape layer or targeted vector mask in front of it), an unmodified Delete/Backspace now runs path.delete on the work path: one undoable Delete Path step. Direct Selection and the Curvature Pen are left alone, since Photoshop deletes their selected anchors, not the path. Co-authored-by: Claude Opus 5.5 <[email protected]> * Layer Style: drag on the image to move a drop or inner shadow (#5701) (#5893) As in Photoshop, with the Layer Style dialog on a Drop Shadow or Inner Shadow page, dragging on the image moves the shadow: its offset follows the pointer and is stored as the effect's angle and distance (whole degrees and pixels), moving the shared global light angle when the effect uses it. Space and the middle button still pan; colour pickers still sample. Co-authored-by: Claude Opus 5.5 <[email protected]> * Free Transform: shapes and paths stay on whole pixels (#5751) (#5841) * Free Transform: shapes and paths stay on whole pixels (#5751) With Snap Vector Tools and Transforms to Pixel Grid on, only the pointer was rounded, and only while a shape tool was active. Under the Move tool, or with a grab offset or a proportional scale, the box landed between pixels (a rectangle dragged to 540 px came out 539.6). An upright box on a shape layer or path now keeps whole-pixel edges whatever the tool. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Format (cargo fmt) Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * Snapping: snap a drawn marquee, Object Selection box or shape by its edges while Space repositions it (#5748) * Move: Show Transform Controls frames every selected layer (#5917) As in Photoshop, with several layers selected (Shift-click with Auto-Select, or the Move marquee) Show Transform Controls draws one frame around all of them (the Background excluded) and outlines every selected shape layer. Before, the frame showed only the active layer, so the other selected layers had no feedback on the canvas. The frame joins the boxes Free Transform would open on each layer (transform_frame), and it hides while a corner radius widget is dragged. Free Transform works on one layer, so the shared frame has no handles and a press on it doesn't start Free Transform; a drag inside still moves every selected layer. Co-authored-by: Claude Opus 5.5 <[email protected]> * Warp: a thin layer stretched and bent keeps its curve on commit (#5793) (#5810) * Warp: a thin layer stretched and bent keeps its curve on commit (#5793) The mesh warp sized its triangle grid by the source rectangle only (one cell per 4 source px). A 3 px column scaled into a wide band and then warped got a single cell across, so the committed result was a straight, affine band while the preview showed the curve. The grid now also follows the destination length of the mapped rows and columns. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Warp: module doc describes the grid sized on both sides of the map (#5793) Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * Dialogs: a close box in the title bar cancels like Cancel (#5496) (#5505) Dialogs drawn by the shared renderer had no close box: the only ways out were Cancel/OK or Esc. As in Photoshop on Windows, the title band now ends in a × (the icon button the floating panels close with) on Windows, Linux and the web, none on macOS. A click on it joins Esc in the single cancel path of `dialogs::show` (outcome = Cancel -> `cancel()`), so the live preview goes and nothing reaches the document or history. The × is left out of the title band's drag area, so a drag starting on it neither moves nor closes the dialog; the rest of the band still drags. Check Spelling (an untitled window) gets the same close box; it is Done, as every change there is already made. Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * fix: commit type editing on Layers-panel selection (#5584) (#5612) * Info panel: show guide coordinates while dragging outside the canvas (#5728) (#5768) * Fix Info panel guide coordinates during ruler drags (storytold/photocraft#5728). Show the dragged guide position on one axis while the pointer is outside the canvas, matching Photoshop. Co-authored-by: Cursor <[email protected]> * Merge main; fill GuideDrag's new press field in the test; cargo fmt Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: Brandon Thomas <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * fix(ui): brush outline matches the stroke on Wayland at fractional scales (#5796) * fix(ui): brush outline matches the stroke on Wayland at fractional scales On Hyprland at 1.25 the brush outline was 1.25x too large and sat right of and below where the brush painted, by more the larger the brush. The engine places dabs exactly; the OS cursor bitmap was wrong. winit 0.30 sizes custom cursor bitmaps on Wayland with a wp_viewport destination whenever the scale isn't 1, and Hyprland (like Mutter before GNOME 48) ignores viewports on cursor surfaces: it shows the bitmap one pixel per logical pixel with the hotspot winit divided by the scale. A client can't tell which compositors do this, so on Wayland at any scale but 1 the brush outline and crosshairs are painted in-app, as on the web. Other platforms and Wayland at scale 1 keep the low-latency OS bitmap. Measured on Hyprland 0.56.2 at 1.25 (100 % zoom, 100 px brush): dab centre (288.5, 560.5), diameter 97 px; outline before (303, 574.5), ~130 px; after (288.5, 562), 107 px including its border. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Merge main; cargo fmt Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Brandon Thomas <[email protected]> * Raw: measure the Nikon D90 image area (4288x2848 at (10, 10)) (#4323) Aligning the decoded D90 sensor plane with the camera's own JPEG puts the image at (10, 10) in the 4352x2868 sensor plane, giving the camera's 4288x2848 frame (10-pixel margins; the right border reads the camera's flat 255 from column 4310). Add the measured ImageArea so a D90 NEF opens on the camera's frame instead of the uncropped plane, and make a measured profile leave a file that carries its own colour calibration (a DNG) untouched. Co-authored-by: Brandon Thomas <[email protected]> * Codecs: open Cineon (.cin) film frames read-only (#4691) * Raw: measure the Nikon D90 image area (4288x2848 at (10, 10)) Aligning the decoded D90 sensor plane with the camera's own JPEG puts the image at (10, 10) in the 4352x2868 sensor plane, giving the camera's 4288x2848 frame (10-pixel margins; the right border reads the camera's flat 255 from column 4310). Add the measured ImageArea so a D90 NEF opens on the camera's frame instead of the uncropped plane, and make a measured profile leave a file that carries its own colour calibration (a DNG) untouched. * Codecs: open Cineon (.cin) film frames read-only Cineon is the 10-bit logarithmic film-scan format DPX grew from. Read it from the same Kodak header family: the generic header (big-endian, orientation at 192, channel count at 193, the channel-1 bits/dimensions), one or three channels, three 10-bit samples packed into each 32-bit word on a word boundary. The 10-bit code values open as U16 (round(c x 65535 / 1023)); the file's log black/white points are a display choice and are not applied. A depth other than 10 bits or a channel count other than 1/3 is Unsupported; truncation errors rather than panicking. Read-only (no Cineon writer), so .cin joins the open filters and Cineon read closes part of #1049's G10 gap. * cargo fmt the extension lists Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Brandon Thomas <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Vikram Bhaskaran <[email protected]> Co-authored-by: Brandon Thomas <[email protected]> Co-authored-by: Valentin Klein <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Nigel Ihza Firdausy <[email protected]> Co-authored-by: buivanvu94 <[email protected]> Co-authored-by: mroxso <[email protected]> Co-authored-by: highperfocused <[email protected]> Co-authored-by: MarekSpodBiedry <[email protected]> Co-authored-by: Saad Abdullah <[email protected]> Co-authored-by: Saad Abdullah <[email protected]> Co-authored-by: Skyfuller <[email protected]> Co-authored-by: nrq6993-a11y <[email protected]> Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: nrq6993-a11y <[email protected]> Co-authored-by: David Mann <[email protected]> Co-authored-by: nrq6993-a11y <[email protected]> Co-authored-by: FinnNk <[email protected]> Co-authored-by: Michael Higgins <[email protected]> Co-authored-by: optimalbytee <[email protected]> Co-authored-by: optimalbytee <[email protected]> Co-authored-by: Zer0C00L01 <[email protected]> Co-authored-by: Sir Clangington III. <[email protected]> Co-authored-by: LabDennis <[email protected]> Co-authored-by: Sidney Markowitz <[email protected]> Co-authored-by: Marco Arnulfo <[email protected]> Co-authored-by: Daktyl <[email protected]> Co-authored-by: Juan Antonio Redondo <[email protected]> Co-authored-by: Sabbir Ahmed <[email protected]> Co-authored-by: Jason Xiang <[email protected]> Co-authored-by: agent-346022 <[email protected]> Co-authored-by: agent-346022 <[email protected]> Co-authored-by: Ahmed0_0Mamdouh <[email protected]> Co-authored-by: Ikki Nishihara <[email protected]> Co-authored-by: haranishi <[email protected]> Co-authored-by: wwew <[email protected]> Co-authored-by: FredApps <[email protected]> Co-authored-by: FredApps <[email protected]> Co-authored-by: Bihacsy László <[email protected]> Co-authored-by: Stevan Marjanović <[email protected]> Co-authored-by: Stevan Marjanović <[email protected]> Co-authored-by: midasmatterhorn <[email protected]> Co-authored-by: safvanedge <[email protected]> Co-authored-by: safvanedge <[email protected]> Co-authored-by: Stevan Marjanović <[email protected]> Co-authored-by: envy-ai <[email protected]> Co-authored-by: WendelVolm <[email protected]> Co-authored-by: baz <[email protected]> Co-authored-by: Khawar Zamman Wani <[email protected]> |
||
|
|
0a32b3593d |
Add Krita (.kra) import (#4388)
Open .kra and .krz with paint layers (8/16-bit RGBA and gray, any offset), nested and pass-through groups, names, visibility, opacity, locks, blend modes and transparency masks, plus the image's ICC profile and resolution. Vector, filter, fill, file and clone layers and the other mask kinds are left out with a warning; float, CMYK and Lab documents open as Krita's merged image (preview). Import only: Save suggests .ora. Checked against 35 Krita 5.2.9-authored files. Co-authored-by: Scott Campbell <[email protected]> Co-authored-by: Brandon Thomas <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> |
||
|
|
a301e31864 | Merge current main fixes and validate craft-print rollout | ||
|
|
dc35ce7630 | fix(linux): avoid duplicate AppImage desktop launcher (#3623) (#3641) | ||
|
|
da3da0942c |
Linux: StartupWMClass is the window's app id (#3481)
* Linux: StartupWMClass is the window's app id The desktop entry said StartupWMClass=photocraft, but the window carries the app id ai.storyteller.photocraft (APP_ID) on Wayland and under X11 alike, so nothing that matches a window to its launcher by that key ever matched it. VectorCraft, GridCraft and WordCraft already use the app id. A test reads the entry and compares it with APP_ID. * Contributors: add atoslins (Atos Lins) --------- Co-authored-by: Brandon Thomas <[email protected]> |
||
|
|
2bf49f10a7 |
Security: verify AppImage build inputs (#2270)
* security: pin and verify release build inputs * docs: explain verified offline AppImage inputs * security: validate executable AppImage tooling offline * security: preserve read-only verified AppImage caches * test: cover verified runtime downloads and cache diagnostics * test: assert verified runtime mode and cache diagnostics * Fix shellcheck ordering in verified download test * Use external chmod for cache test setup |
||
|
|
7926161595 |
Release prep 0.7.0: Linux riscv64 tarball + version bump (#2965)
* Release prep 0.7.0: add Linux riscv64 tar.gz to the release; bump to 0.7.0
- release.yml: new linux-riscv64 job, ported from GridCraft: cross-compiled on ubuntu-24.04
against ports.ubuntu.com riscv64 libs, tar.gz only, photocraft-cli --version smoke-tested
under QEMU. The draft-release job now needs it, so SHA256SUMS.txt covers it.
- packaging/linux/package.sh: CROSS_ARCH / CROSS_TARGET / CROSS_COMPILE / EMULATOR support.
- linux_libs: search /usr/lib/riscv64-linux-gnu on riscv64 (was the x86_64 triplet).
- README and docs/releasing.md list the riscv64 tarball.
- Version 0.6.0 -> 0.7.0 (cargo xtask version set), Cargo.lock refreshed; contributors refreshed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* canvas: crisp elliptical marquee ants again in an unrotated view
#2732 (
|
||
|
|
7722172585 |
Add OpenRaster (.ora) import and export (#2257)
Open and save .ora with pixel layers (any offset), nested groups, pass-through groups, names, visibility, opacity, edit/alpha locks and blend modes (svg:* plus Krita's krita:* names), at 8 and 16 bit. Save applies pixel masks, renders text/shape/fill/smart layers to pixels and reports what OpenRaster can't hold. Wired into File > Open/Save, the CLI, automation/MCP, the web picker and the desktop file associations. Checked against 34 Krita 5.2.9-authored files (opt-in krita_corpus test) and Krita re-opening our exports. Co-authored-by: Scott Campbell <[email protected]> Co-authored-by: Brandon Thomas <[email protected]> |
||
|
|
db0fb07862 |
Add native layered Paint.NET (.pdn) import (#1998)
Squashed onto main, with the maintainer's asks applied: - Photoshop's blend menus (layers, brush, pencil, gradient, layer style) stay as they are; the Layers panel and Blending Options list a Paint.NET mode only for a layer that uses one. - The six Paint.NET mode labels are translated in every catalog, and the blend-mode i18n test iterates layer_modes(). - pdn::pixels rejects truncated uncompressed (version 1) data before allocating its buffer. Co-authored-by: Claude Opus 5.5 <[email protected]> |
||
|
|
9200786605 |
fix(linux): disable unsupported startup notification (#2089) (#2097)
Co-authored-by: zenjabba <[email protected]> |
||
|
|
424a5d492f |
fix: remove Photoshop from user-facing strings (#1985) (#2008)
The app still showed the Adobe Photoshop name in several user-visible strings. Per the product rule (user-facing text says PhotoCraft only), none of these mention Photoshop now. UI labels, tooltips and status messages: - New Document preset "Default Photoshop Size" -> "Default PhotoCraft Size" - "All shortcuts reset to Photoshop defaults." -> "All shortcuts reset to PhotoCraft defaults." - "Import Photoshop brushes (.abr)" -> "Import brushes (.abr)" - smart-filter fallback name "Photoshop filter" -> "Smart filter" - File > Save As .psd/.psb filter "Photoshop" -> "PSD Document" Errors and warnings: - "this Photoshop filter isn't implemented in PhotoCraft" -> "this smart filter isn't implemented in PhotoCraft" - smart_map: "has no PSD equivalent", "not a recognized filter", "its filter data is missing/unreadable", "this filter has no PSD equivalent" - tiff_layers: "the PSD layer data...", "the PSD image resources..." - multichannel: "32-bit Multichannel isn't supported" - abr: "not a readable brush file (.abr)" - gradient import: "not a readable gradient file (.grd)" Translations: updated the changed tl! sources in all 16 catalogs and dropped the stale "Load Photoshop brushes (.abr)" entries. Installer / OS metadata: de-branded the nfpm description, the PSB MIME comment, the AppStream summary/description, the macOS UTType descriptions, the Windows ProgId Description and the desktop launcher's Keywords. The Photocraft.PhotoshopDocument ProgId and the image/vnd.adobe.photoshop MIME/UTType stay: machine identifiers, changing them hurts file fidelity and Open-with registration. Command params docs (agent-facing): dropped Photoshop from the type_cmds kernPair text, the layer_menu_cmds Advanced Blending defaults and the mask_view_cmds backslash-key text. The "photoshopManages" wire value stays. Comments, format identifiers and the "photoshop" theme alias are out of scope and unchanged. The macOS native-menu shortcut resolution messages no longer say "as in Photoshop" (Hide/Minimize). |
||
|
|
782ea69f35 |
fix(linux): AppImage registers its desktop entry and icon on launch (#617)
* fix(linux): AppImage registers its desktop entry and icon on launch On Wayland the compositor resolves the dock icon from the window's app_id (ai.storyteller.photocraft, already set) against a host-installed .desktop file. An AppImage installs nothing, so every run showed the generic Wayland logo (#593). The app cannot set the icon itself: winit 0.30.13 (egui 0.36.2's pin) has an empty set_window_icon on Wayland; xdg-toplevel-icon-v1 landed on winit's 0.31 line only. - packaging/linux/AppRun is a script instead of a symlink: best-effort integration into $XDG_DATA_HOME before launch (desktop entry with Exec rewritten to the AppImage's path and TryExec dropped, hicolor icons copied), content-compared so an unchanged install costs a few cmp calls, refreshed when the AppImage moves, PHOTOCRAFT_NO_DESKTOP_INTEGRATION=1 opts out, and no failure can block the launch (best-effort steps silent). - packaging/linux/apprun-test.sh: 8-case smoke (passthrough, Exec rewrite with spaces, metadata preserved, idempotence, move refresh, opt-out, unwritable data dir, extracted AppDir). packaging-lint runs it and now shellchecks AppRun. - Docs: releasing.md Linux section; README install paragraph. Fixes #593 * AppRun: skip desktop integration when the AppImage path needs Exec escaping A quote, backquote, dollar, backslash, percent or line break in the path would need desktop-entry escaping (a line break could even add keys), so integration is skipped and the app still launches. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Brandon Thomas <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> |
||
|
|
47f9306fd0 |
Open HEIC/HEIF photos (#355) (#372)
* Open HEIC/HEIF photos (#355) iPhones save HEIC by default and Photoshop opens it; PhotoCraft had no HEIF code, so .heic was missing from File > Open and failed to decode. Add Format::Heif to photocraft-codecs, decoded by heic-rs (pure Rust, forbid(unsafe), MIT OR Apache-2.0, wasm-ready): single pictures and grid-tiled photos, 8-bit to U8 and 10/12-bit to U16, auxiliary alpha, ICC, EXIF and XMP. The container's irot/imir/clap are applied and EXIF Orientation is rewritten to 1, so photos are never turned twice. Limits are checked against the declared size before decoding. Read-only (no pure-Rust HEVC encoder), listed in ASYMMETRIC_EXCEPTIONS. File > Open (desktop, web) and the batch list accept heic/heif/hif. Tests compare against Apple's own decode and a 16-bit source, cover orientation, metadata, limits and every truncation; fixtures from heic-rs and pillow-heif are attributed in ATTRIBUTION.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> * HEIF: pin heic-rs exactly and add a decode_heif fuzz target Review follow-up: heic-rs is young and parses untrusted files, so pin it (=0.1.1) and fuzz the HEIF path. The target covers both orientation paths and is meant to run with -timeout so a hang is reported, not only a panic. It is added to the CI fuzz matrix. Co-Authored-By: Claude Opus 5.5 <[email protected]> * HEIF: a heic-rs panic is a malformed-file error, not a crash Fuzzing decode_heif found two out-of-range slices in heic-rs 0.1.1 on malformed files: - in its box parser (boxes.rs:130), reachable from a 72-byte file, even through the metadata-only probe; - during HEVC reconstruction (hevc/decode/recon.rs:70). The background job path catches panics, but the synchronous ones (jobs off, the CLI) did not. The HEIF codec now runs the decoder under catch_unwind and reports a panic as CodecError::Malformed, as gpu/health.rs already does around wgpu. The fuzz target also calls heic-rs directly, so its panics still reach the fuzzer. The 72-byte input is a regression test, which fails without the guard. Co-Authored-By: Claude Opus 5.5 <[email protected]> * HEIF: move the decoder into an optional photocraft-heif crate The heic-rs decoding from #372 now lives in `crates/heif` (photocraft-heif, standalone, depends only on heic-rs =0.1.1): probe, decode with a pixel limit, container transforms, alpha, 8/10-bit, ICC/EXIF/XMP and the catch_unwind guard, behind a small API of its own (Info, Options, Decoded, Error). photocraft-codecs uses it behind a new non-default `heif` feature; the apps and photocraft-io forward it. HEIF detection, extensions and mime stay compiled in, so without the feature a HEIC file is still recognised and opening it is a clear "HEIC/HEIF support isn't included in this build of PhotoCraft" error. `cargo xtask layers` allows exactly codecs -> heif between standalone crates. The fixtures are no longer committed: `cargo xtask corpus --heif` fetches them from heic-rs (tests/fixtures, v0.1.1) and pillow-heif (tests/images) at pinned commits, verified against xtask/heif-corpus.sha256 (same bytes as the PR's copies). The fixture tests run with `--features corpus,heif` (`cargo xtask test-corpus` enables both). Co-Authored-By: Claude Opus 5.5 <[email protected]> * Build CI and official binaries with HEIC support (--features heif) CI test and clippy, the FreeBSD job, and the macOS, Linux (and Flatpak), FreeBSD, Windows and web packaging all build with the `heif` feature; CI also tests codecs/io without it on Linux so the "not in this build" path stays covered. `cargo xtask wasm` also checks photocraft-codecs with `--features heif`. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Docs: HEIC open is an optional build feature, on in official builds Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Brandon Thomas <[email protected]> |
||
|
|
51d85c1170 |
Linux: AppImage update information and a .zsync beside it (#349) (#399)
* Linux: AppImage update information and a .zsync beside it (#349) appimagetool now embeds gh-releases-zsync|<owner>|<repo>|latest|photocraft-*-linux-<arch>.AppImage.zsync (owner/repo from GITHUB_REPOSITORY, default storytold/photocraft), so AppImageUpdate, AppImageLauncher and the like can find the next release and fetch only the blocks that changed. With zsyncmake on the host it also writes the .zsync, into its working directory, so the script runs it in $DIST and warns when the file is missing. The release job installs zsync and checks the embedded string and the .zsync before uploading; docs/releasing.md lists the new asset. Verified locally with packaging/linux/package.sh --skip-build --formats appimage and zsyncmake from Ubuntu 22.04: --appimage-updateinformation prints the string, and the .zsync's URL is the AppImage's basename. * package.sh: absolute AppDir and appimagetool paths before running in $DIST appimagetool now runs inside $DIST so zsyncmake writes the .zsync there, which broke relative CARGO_TARGET_DIR / APPIMAGETOOL paths (AGENTS.md suggests target/agent-<name>). Resolve both first, remove a stale .zsync so a missing zsyncmake is reported, and list the .zsync and zsyncmake in the header. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: bflatastic <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> |
||
|
|
7f3d9ea68a | Packaging: Linux runtime deps + start-up library check (#201); wasm 26.3 -> 18.8 MiB (#198) (#237) (#237) | ||
|
|
231bf5fe81 |
Flatpak single-file bundles as release artifacts (#163)
* Flatpak single-file bundle as a release artifact (#140) packaging/linux/flatpak/ai.storyteller.photocraft.bundle.yml repackages the release's Linux tarball (no Rust build, no network) on the freedesktop 26.08 runtime; packaging/linux/flatpak-bundle.sh builds it with flatpak-builder and flatpak build-bundle and smoke-tests it. release.yml gains a Flatpak job per arch that feeds the draft release and SHA256SUMS. The Flathub manifest moves to 26.08 with the same documented finish-args (portals + Pictures/Documents), and packaging-lint checks the two manifests agree. Font scanning also looks in /run/host/fonts and /run/host/user-fonts so host fonts show up in the sandbox. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Docs: installing the Flatpak bundle (#140) Co-Authored-By: Claude Opus 5.5 <[email protected]> * Flatpak job: install the SVG pixbuf loader for appstream compose Without librsvg2-common (absent on the x86_64 runner image) the host's appstreamcli compose fails with file-read-error on the scalable icon. Co-Authored-By: Claude Opus 5.5 <[email protected]> * release.yml: the Flatpak job runs without the release environment It only repackages the Linux job's tarball and signs nothing, so it doesn't need (and shouldn't hold) the signing secrets while running third-party tooling. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> |
||
|
|
4eb75d6370 |
Linux packaging: substitute the stage path into nfpm.yaml
nfpm expands env vars in version/arch but not in contents[].src, so
${STAGE}/usr/bin/photocraft never matched and both deb/rpm builds failed.
Verified locally with nfpm v2.47.0 (deb + rpm).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
08c6c08e2e |
Discord, website and GitHub links; fix AppStream validation on 22.04
- Help menu: Join the ArtCraft Discord, PhotoCraft Website
(getartcraft.com/apps/photocraft), ArtCraft Website, PhotoCraft on
GitHub, Report an Issue; separator before About. All also in the ⌘K
palette and drivable via the control channel (returns {"url"}).
- "Join us on Discord" button + website/GitHub/ArtCraft links on the
start screen and in About; a Discord button in the title bar.
- Linux metainfo: drop url type vcs-browser (unknown to appstream 0.15 on
ubuntu-22.04, which failed both Linux release jobs); homepage is the app
page, contact is Discord. nfpm homepage and Windows ARP links updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
1f1ddb2a47 |
Release pipeline id renames and PhotoCraft branding
- Lowercase reverse-DNS id ai.storyteller.photocraft across icons, Linux desktop/metainfo/mime/flatpak, Windows WiX, macOS Info.plist and workflows. - PhotoCraft display name in the title bar, start screen, web loader, Windows exe metadata, README and docs. - .gitignore target/, roadmap refresh. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
d98bee4c94 | progress, release workflows |