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
Screenshots taken with Feishu/Lark can neither be detected nor read by clipboard-rs, while regular screenshots and screenshots taken by other apps like WeChat could be detected.
By running the sample code we can see that ctx.get_image() doesn't return Err, but the resulting image has a size of (0, 0)
Release version | 版本
0.1.5
Operating system | 操作系统
MacOS
Logs | 日志
No response
The text was updated successfully, but these errors were encountered:
let ns_data = self.clipboard.dataForType(NSPasteboardTypePNG);
Solution
clipboard.dataForType(NSPasteboardTypeTIFF) will return screenshots from Feishu.
TIFF is supported by both regular screenshot and Feishu screenshot (verified), so you could simply replace NSPasteboardTypePNG with NSPasteboardTypeTIFF
However, it might be prudent to handle both TIFF and PNG formats for has() and get_image(), ensuring compatibility across different scenarios. Supporting both formats is a safer approach.
The problem | 问题描述
Issue first mentioned in CrossCopy/tauri-plugin-clipboard#21 by @Tester-957
Screenshots taken with Feishu/Lark can neither be detected nor read by clipboard-rs, while regular screenshots and screenshots taken by other apps like WeChat could be detected.
By running the sample code we can see that
ctx.get_image()
doesn't return Err, but the resulting image has a size of (0, 0)Release version | 版本
0.1.5
Operating system | 操作系统
MacOS
Logs | 日志
No response
The text was updated successfully, but these errors were encountered: