GNU bug report logs -
#71909
30.0.60; Can not use yank-media for pasting image from clipboad in org-mode on Windows platform
Previous Next
Reported by: Eason Huang <aqua0210 <at> foxmail.com>
Date: Wed, 3 Jul 2024 04:47:01 UTC
Severity: wishlist
Found in version 30.0.60
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #97 received at submit <at> debbugs.gnu.org (full text, mbox):
On 24/10/2024 9:18, Eli Zaretskii wrote:
>> - If no PNG is offered, but DIBV5 is, like Firefox, convert the pixel
>> data to a PNG file, and offer it as image/png. We don't loose anything
>> converting the BMP to PNG, and the programs that use yank-media for
>> images (message-mode, org-mode) need a file, not an in-memory image
>> object. And PNG is a much better format.
>
> I'm not sure I follow: isn't yank-media about yanking the image into
> the current buffer? If so, why is having a file important, let alone
> necessary?
I mean they need data in the format that would go into a file, PNG, BMP,
etc. Not the kind of data that is a DIB. We could easily convert in to a
BMP file, but, once we need to manipulate it, better to give a PNG.
org-mode stores the yanked images as attachments, saving files.
message-mode stores the images in the message like this:
<#part type="image/png" disposition=inline data-encoding=base64 raw=t>
iVBORw0KGgoAA...
That is, not a file in disk, but the data that would go into a PNG file.
>> - GDIMetafile would be ideally converted to SVG. Offering the metafile
>> as it is makes little sense in my opinion. It is not a very used format.
>
> Will we support yanking from a spreadsheet? If so, with what format?
Yes, LibreOffice offers them as RTF, with a table. Also in HTML. I'm
hoping to convert RTF tables to org-mode tables.
> Where we have both RTF and HTML, should we perhaps use HTML and pass
> it through shr, to produce text with faces, rather than raw HTML?
> Once RTF handler exists, we could use that instead, but having it
> rendered via HTML might be a useful option anyway.
What mode could benefit from yanking propertized test?
This bug report was last modified 260 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.