https://bugs.documentfoundation.org/show_bug.cgi?id=138981

--- Comment #13 from Mike Kaganski <[email protected]> ---
(In reply to Telesto from comment #10)
> *** Bug 146530 has been marked as a duplicate of this bug. ***

(In reply to Telesto from comment #11)
> *** Bug 144070 has been marked as a duplicate of this bug. ***

Please  don't add duplicates that aren't duplicates.

This specific bug 138981 is about the *hypothetical* possibility to "detect"
the original file format from the data put to clipboard on a specific OS
(Windows) by an *unspecified* browser, when you copy an *unspecified* image
using *unspecified* method (do you right-click the image and use an item like
"copy the image to clipboard"? select the web page content starting before the
image, ending after, and Ctrl+C?). This *might* be possible to improve, by
analyzing HTML format that the browser puts into the clipboard; possibly
browser-specific and/or OS-specific. E.g., opening
https://i.imgur.com/BCftIFD.jpeg in Chrome, right-clicking it in the browser,
and copying, gives these formats in my Win11's clipboard: PNG; CF_DIB5;
CF_BITMAP; CF_DIB; and HTML Format, the latter only containing a fragment with
the image URL. Only the latter allows to discover the source of the file, and
thus, to keep the original bytes.

Bug 146530 is about the content of the clipboard after closing LibreOffice
itself. This is a different thing; there is no "HTML source" of the image in
the clipboard; and here, the clipboard does not contain JPEG at all - just
because Windows clipboard has no pre-defined standard format for JPEG images.
There could be a workaround. It could be completely different on other OSes
(but that would depend on the raster format preferrence; I can imagine that
PNGs would always be preferred over lossy formats, when there's no way to
discover what was the original format; so that would also need to provide some
custom clipboard format, unusable by anything except LibreOffice, just in
anticipation of users who close the program, then open it again ... even if
this is implemented, it's completely different).

And finally, Bug 144070 is absolutely unrelated to clipboard. It is just about
some internal problem, related to a specific JPEG file in the document. E.g.,
if you try with a document created for bug 146530, and save it as DOCX, the
resulting file will still contain a JPEG, so this is something specific.

Marking all these as duplicates effectively made them hidden, and prevents
people from working on these.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to