Am 02.06.24 um 20:05 Uhr schrieb Ihor Radchenko:

>> Debugger entered--entering a function:
>> * dnd-open-local-file("file:/Users/juergenfenn/Desktop/test-file.jpeg"
>> private)
>
> Looks like Mac does not follow XDND.
> I think I know how to fix this.

Thanks, this would be fine.

>>> Yes, you need to use M-x yank-media, not C-y.
>>
>> Thank you, this indeed did the trick. Now, Org created an attachment,
>> but not the original jpeg was added. Instead org added a tiff file in a
>> subfolder of the org file working directory. However, I cannot open it
>> in Preview as a tiff file.
>
> Org normally asks you what format to insert, if multiple formats are
> available from clipboard.
>
>> [[attachment:clipboard-20240602T170643.tiff]]
>> ----
>>
>> An export to Markdown and preview from Markdown-Mode in Firefox does not
>> display the image:
>
> That's questions to firefox/preview. But I think that you should simply
> select a different format when pasting. tiff is not the most widely
> supported format.

Well, the image I used is this one. It was available because I had
downloaded it the other day:

https://www.europeana.eu/fr/item/2021012/_42FFE0B5C39B7F9819D6D3692B2F4154

The format is jpg. I have no idea why I get a tiff attachment when I try
to include a local jpg file. Maybe the macOS clipboard offers several
formats and Emacs/Org choses one option because it is offered first or
for some other reason? Or some kind of conversion plays into this on the
system level when copying to Emacs? Or there is something wrong or
unsusual with the jpg file, perhaps it was a tiff file in the first
place, later converted to jpg. I do not know.

There is one more thing: My Emacs init time has got slightly longer
since updating to Org 9.7.1 from ~1.9 to 2.273441 seconds. I
re-installed Org and the depending packages, as you recommended
(org-contrib, org-static-blog). No more changes, same setup as before.

@Christopher, thanks for your suggestion, I'll have a look if it fits
into my init file when I rework it mid summer.

Regards,
Jürgen.

Reply via email to