Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Merge branch 'main' into next-windows

Ilya41196c7bdcc4
diff --cc apps/desktop/src-tauri/src/lib.rs
index 198f3ef9c,4bc38c6c2..cefd3b18f
--- a/apps/desktop/src-tauri/src/lib.rs
+++ b/apps/desktop/src-tauri/src/lib.rs
@@@ -570,13 -568,9 +569,9 @@@ async fn copy_file_to_path(app: AppHand
#[tauri::command]
#[specta::specta]
async fn copy_screenshot_to_clipboard(app: AppHandle, path: PathBuf) -> Result<(), String> {
- sentry::configure_scope(|scope| {
- scope.set_tag("cmd", "copy_screenshot_to_clipboard");
- });
-
println!("Copying screenshot to clipboard: {:?}", path);
- let image_data = match tokio::fs::read(&path).await {
+ let image = match image::open(&path) {
Ok(data) => data,
Err(e) => {
println!("Failed to read screenshot file: {}", e);