Copy & Paste Image from Writer copies only empty frame

Hello,
I have an issue with quite specific pictures in LO Writer 7.6.5.2 on Windows. The issue did not appear in 7.1.6.
The issue is, when the picture is copied from LO Writer to be pasted in another application, like MS Paint, only an empty Picture will appear. The right size is kept though, the picture size in Paint gets adapted.
A workaround is to do a screenshot of the picture and paste it then from the clipboard, that will work just fine. The issue seems to appear specifically for pictures which are pasted into LO from a software called Phoenix from Certara. Sadly this is not a free software, so I can not get a copy to check the clipboard when the image is copied from there, nor can I provide an example file at this moment. Maybe the issue is known and I just did not find it with the search function. If so, sorry for my bad searching. I also tried pasting different picture formats to see if one has a similar behavior but could not find anything with the formats I tried.
If I check the pictures folder in the documents .odt file, I can see two files:
A .png file, which is an empty picture, and a .svm file. I can open the png in paint, its containing the empty picture which seems to be put on the clipboard by LO (this is just my impression).
The actual bitmap seems to be within the .svm file. I can not open it with normal image viewers but if I drag it on a new Writer document the image is added correctly.
When dragging the .svm into a new document, Writer will do the same as before when the file is saved: it creates a empty .png with the right frame size and store the bitmap in a .svm in the pictures folder.
Has anyone maybe seen something similar? Thank you!

No.
Try a newer LibreOffice Version.

Thanks for your reply. I just tried LO 24.8.0.3 and its the same.

Have you inserted a new image in LibreOffice bevor?

Please name the operating system you are using and upload a sample file with the problem here. Thank you.

I am on Windows 11. I copied the image causing issues from an existing document to a new one with the new LO version. I saved the new document and tried to copy the image further into paint. It copies fine between LO, but not to another application. That means my first assumption it only puts an empty png on the clipboard is wrong, the image data must be there but somewhat not readable for paint. LO somehow handles it differently. Maybe svm is put on the clipboard and the png as well and paint will just grab the png part. As said, the image seems to be within the svm, as when I drag only the png in LO, it also appears as an empty image, while the svm works. I should be able to debug the Clipboard content from LO, so I will try that.

The problem with uploading an example file is that I need to ask for permission. Those images do not belong to me so I can not just publish them. I will try to get an example which I am allowed to post but that may take a while. Since the issue is not known, when I create a reproducible example, I could directly create a bug report?!

Is there any information when LO would create a svm file? I don’t know that format and when I normally copy images into LO, this kind of file seems not to appear, not sure if that would be some helpful information.

Yes.


Is there any information when LO would create a svm file?

I don’t think it’s because of LO, since you are pasting from the cache.

According to SVM File - What is an .svm file and how do I open it? an svm file is similar to wmf, so it can contain vector, bitmap or other types. You might be best to select the picture and export as png (or wmf?) if you wanted to open it in Paint. It would be better to go back to the original graphics application to modify the picture however.

Can you Insert - Image instead of pasting into LibreOffice? Or was that how it was inserted originally?

I installed 24.8 on a notebook where I did not test this before, I did not want to change my current main installation. The image was only copied from the existing file to a new one within LO, for the first time on this machine. Then into paint. So every cache should only come from LO. I’ll try to get an example, thanks for your help!

Thanks for that link about SVM, that is very interesting. I may be able to create an example with Draw, lets see. I tried export as WMF, is it is described as similar, so far but it behaves as expected, I can paste it outside of LO. I’ll try further.
If I insert - Image, that asks for a file, so it should be the same as when I drag and drop an image into writer, no? That behaves as described above: I can extract the png and svm from the original file and drag it into a new document. The png will be an empty frame, the svm will appear like the original picture, but can not be used further via c&p. Maybe export would work, not sure where to find that option, but then just using a screenshot tool seems faster.
The original was inserted via copy and paste from Phoenix.
Probably the issue at this point already, in 7.1 the inserted pictures did not have the issue and I just tried with older files, created by LO 7.1, the picture there can still be pasted out of LO, also in 7.6 and 24.8. So something probably goes wrong on the first paste from Phoenix to LO.
As I don’t have Phoenix, I can not test this in 24.8 myself, I will ask the person who gave me the file with the picture to update and see if the issue is gone then and 24.8 will save the file correctly.
Also there is a difference between 7.6.5.2 and 24.8 when I use the “edit with external tool” option, if you mean that with export. In 24.8 the windows preview tool actually gets the picture, in 7.6, it opens an empty picture as well. That’s already something and looks promising. Thanks everyone!

The second entry in this question gives three methods of exporting images from Phoenix, it might be worth a look. I suppose export as Word would export images as wmf, see Outputting JPEG/PNG plots at once - Phoenix WNL basics - Certara Forums

1 Like