Visuwesh <visuwe...@gmail.com> writes: > BTW, we might have similar problems in Windows too. See this thread in > emacs-devel when yank-media was initially added: > https://yhetil.org/emacs-devel/837ddk9tc8....@gnu.org
Looking at that thread, I see https://yhetil.org/emacs-devel/yz18w18vybg7cb%...@idiocy.org/ + /* Dictionary for looking up NS types from MIME types, and vice versa. */ + typeLookup + = [NSDictionary + dictionaryWithObjectsAndKeys: + @"text/plain", NSPasteboardTypeURL, +#if NS_USE_NSPasteboardTypeFileURL + @"text/plain", NSPasteboardTypeFileURL, +#else + @"text/plain", NSFilenamesPboardType, +#endif + @"text/html", NSPasteboardTypeHTML, + @"text/plain", NSPasteboardTypeMultipleTextSelection, + @"application/pdf", NSPasteboardTypePDF, + @"image/png", NSPasteboardTypePNG, + @"application/rtf", NSPasteboardTypeRTF, + @"application/rtfd", NSPasteboardTypeRTFD, + @"STRING", NSPasteboardTypeString, + @"text/plain", NSPasteboardTypeTabularText, + @"image/tiff", NSPasteboardTypeTIFF, + nil]; For images, only image/png and image/tiff are listed for some reason. No jpeg. (and no jpeg in the spec at https://developer.apple.com/documentation/appkit/nspasteboardtype) I suspect that image/tiff entry in the clipboard is garbled by Emacs. We may want to report this as a bug. We may also need to request a feature to support clipboard on MacOS better. Using the same example image. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>