IMCLIPBOARD doesn't recognise function - import failed.

2 visualizzazioni (ultimi 30 giorni)
Hello, I got a problem with the IMCLIPBOARD-Add-On on Mac. When I try to import an Image (png) from clipboard it crashes when getData is called. My 'investigations' led to the result that the imBuffer is now receiving an object of the class "MultiResolutionCachedImage" instead of a proper ImagerBuffer-datatype. Does anybody know how to solve this problem? Thanks.

Risposte (1)

Simar
Simar il 6 Mag 2024
Modificato: Simar il 13 Mag 2024
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

Categorie

Scopri di più su Environment and Settings in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by