Apache OpenOffice (AOO) Bugzilla – Issue 79116
PCT images pasted into OOo appear as black picture
Last modified: 2013-08-19 23:21:44 UTC
Images copied to the clipboard from standard Mac OS X applications like iPhoto for instance appear completely black within OOo (though the dimension of the picture looks correct). Attached are same screenshots, the original picture as well as the content of the PCT data stream received via clipboard.
Need to be fixed before #i79113
Created attachment 46451 [details] PCT data stream on the clipboard
Created attachment 46452 [details] Original picture
Created attachment 46453 [details] Screenshot OOo
The attachment is a pict graphic containing an embedded tiff, this can't be rendered by our current pict filter. A solution is to convert the pict into a bitmap before inserting, this can be done by using QuickTime. So it has to be determined whether a pict is containing an embedded graphic, but because of missing file format specification it is not trivial. After some investigation I found out that at least every pict that has a embedded graphic is containing the word "QuickTime" then. So my suggestion is to check whether a pict is containing the word "QuickTime", then of course we should convert the graphic into a bitmap otherwise we should further use the pict format.
Issue still exist at the OOo Aquatic version. only the Result is not the same. At the 3.x Version OOo makes a short time out, and paste nothing. rbircher -> of, copy, paste is more a framework issue as a grafic issue, please have a look on it
Easier tests: Open any graphics in Preview, Select all, Copy. Try to paste in OOo. Or do Command-Control-Shift-4 to do a screenshot to clipboard (select rectangle or press space to select window). Then try to paste in OOo (doesn't work) versus TextEdit (there it works in Formatted Text format only of course).
@ wg: Please have a try.
sj already had thoughts about to solve the problem. Reassigned.
@sj: I suggest to do avoid parsing the raw data manually. If you need it as bitmap do an [NSImage initWithPasteboard] or [NSImage initWithData] and draw it onto a bitmap context.
Seems a duplicate of #25794 http://qa.openoffice.org/issues/show_bug.cgi?id=25794
This confirmed bug has caused me to switch back to AOO 3.4.1, and I do not see a date for the fix in the AOO 4.0.1 work list. This item should be an absolute priority as it only fixes functionality available in the prior release (3.4.1).