https://issues.apache.org/ooo/show_bug.cgi?id=124085

--- Comment #30 from Armin Le Grand <armin.le.gr...@me.com> ---
Hi John, thanks for bringing this up. Just installed irfanview and did the
following:
- opened jpeg with inrfanview
- copied to clipboard
- pasted to new draw, saved draw, extracted pic from ODF
-> indeed a PNG

The problem is not that "OOo accepts it as a PNG, and stores it as a PNG". AOO
accepts it as RGBA bitmap data (in this case PNG as clipboard format). AOO does
not get the original jpeg file via the clipboard (and I thin this is not
offered - if someone knows better, please describe here) and thus *cannot*
remember it for saving it.
AOO gets a selection of clipboard format and uses the one with the highest
quality (this is the best it can do - no reason to change that). Same at save
time: AOO chooses the most lossless format (also the best AOO can do - also no
reason to change that), in this case of data adding - as said - it has no
access to the original data.

When doing the following:
- new Draw
- insert jpeg of your choice
- saved draw, extracted pic from ODF
-> stays original data

In this case AOO *has* access to the original jpeg data and does all correctly.
In this case it 'knows' that it cannot increase/save quality when using PNG, so
the original jpeg is used (as expected).

So the problem is the method of insertion which in turn defines what
information AOO *can* have about the data it gets. Unfortunately the user has
to know here what he is doing. Copy/paste from pic viewers or editors (which
may already have altered the data) does not contain the original data, so I do
not think there can be done something here.

Of course when someone knows how to make e.g. irfanview to deliver the URL to
the original file in the clipboard or maybe knows that it's included there,
please speak out.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

Reply via email to