You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Request: Add additional images to screenshot #1584
Implementing drag-and-drop file handling on the preview canvas
Existing Patterns
There's already image import logic in BackgroundSettingsPopover.tsx (lines 389-413) that handles file selection and storage to the app data directory. This pattern could be adapted for image annotations.
The annotation system in context.tsx already tracks position, dimensions, rotation, and opacity for each layer, which would apply naturally to imported images.
Activity
linear commentedon Feb 6, 2026
CAP-631
CAP-993
tembo commentedon Feb 6, 2026
Thanks for the feature request. Here's some relevant context from the codebase that could help with implementation:
Current Architecture
The screenshot editor's layer system lives in
apps/desktop/src/routes/screenshot-editor/. The layers panel (LayersPanel.tsx) already supports drag-and-drop reordering of annotations and was added in PR #1432.Current annotation types defined in the Rust backend are:
arrow,circle,rectangle,text, andmask. Adding image layers would require:imagevariant to theAnnotationTypeenum (Rust side, which generates the TypeScript bindings)Annotationstruct with an optionalimage_pathfieldAnnotationLayer.tsxExisting Patterns
There's already image import logic in
BackgroundSettingsPopover.tsx(lines 389-413) that handles file selection and storage to the app data directory. This pattern could be adapted for image annotations.The annotation system in
context.tsxalready tracks position, dimensions, rotation, and opacity for each layer, which would apply naturally to imported images.richiemcilroy commentedon Nov 4, 2026
Thanks! Adding extra images as layers isn't in the screenshot editor yet, but it's a good idea.