Hi Cornelius Dinklage,
As per my understanding the problem you are facing with the IMCLIPBOARD add-on on your Mac seems to be a compatibility or implementation issue. Specifically, when calling getData, the program crashes because it receives a MultiResolutionCachedImage object, not the expected image buffer type. This suggests there might be a mismatch in how the add-on handles image data from the macOS clipboard.
Here are few steps and considerations that might help in resolving the issue:
- Software Update: Ensure MATLAB version and IMCLIPBOARD add-on are up to date.
- Check for Patches or Updates from Add-On Author: IMCLIPBOARD add-on is not officially maintained by MathWorks, check the source (MATLAB File Exchange) for any updates or patches that address the issue. Here is the link- https://www.mathworks.com/matlabcentral/fileexchange/28708-imclipboard?s_tid=srchtitle_support_results_1_IMCLIPBOARD%20
- Manual Workaround: As a temporary workaround, consider saving the image to a file and then reading it into MATLAB using “imread” instead of directly pasting from the clipboard.
- Custom Code to Handle MultiResolutionCachedImage: If comfortable with Java, write a custom MATLAB function that checks the type of the object received from the clipboard. If it is a MultiResolutionCachedImage, one would be able to manually extract image data at desired resolution and convert it into a format MATLAB can work with. This approach would require using Java commands within MATLAB to interact with the clipboard and process the image data.
If problem persists, consider contacting MathWorks support. Without specific details on the MATLAB version and macOS version you are using; these suggestions are general. However, they might help to troubleshoot and potentially resolve the issue being faced.
Please refer to the following documentation links:
- Imread- https://www.mathworks.com/help/matlab/ref/imread.html?searchHighlight=imread&s_tid=srchtitle_support_results_1_imread
- Support-https://www.mathworks.com/support/contact_us.html?s_tid=hp_ff_s_support
Hope this helps!
Best Regards,
Simar