Images silently disappears from write document

classic Classic list List threaded Threaded
3 messages Options
Bo Siltberg Bo Siltberg
Reply | Threaded
Open this post in threaded view
|

Images silently disappears from write document

Hi,

I have a large document with lots of images.
All image files are stored on disk externally from the document, in a
directory just beside the odt file. I use relative links to them from the
odt file (inserting them as link).

Now and then, *a large amount of images suddenly disappears from the odt*
as if they never were inserted into the document. I see this fault first
after having closed and reopened the document. I have lost about 100 images
each time...

The image file itself is intact, nothing wrong with it. I can insert it
again.
I have never *seen* that an image gets missing when I just do save, but
since close and open does not update the file(?), the bug seem to occur "in
the background" during save. After save, the images are still there in the
opened document and I can continue adding more.

The image count in *Files->Properties->Statistics* still show the correct
old number as it should be when I open a faulty odt, but I am uncertain how
this count is kept, whether it actually counts the image tags. It's
behaviour is strange. What does the reset button do? When fiddling around
with reset, OK and other stuff I suddenly see a lower image count here
which probably reflects the true amount. I have monitored this count in
order to detect when images disappear, but obviously that count was a false
indication. I suspect the fault occur at save, but I don't *see* the fault
until I close and reopen the document?

The missing images are not part of the *Edit->Links to external files*...
And they are not part of the *Images* list in the *Navigator*.
If I open the xml file inside the odt, there is no trace of the image at
the place where it should be located.
So, the image is truly gone from the xml code.

One interesting observation is that images of type *.svg* seem to create a
png copy inside LO, which is stored in the Pictures directory of the odt. I
have noticed that LO sometimes fails to write all of them. Some may be
missing, but after opening the document and saving it again, they reappear
(not 100.0% sure about this).

I'm using the latest stable version 6.4.x of libreoffice.
I first saw this problem in September. Not sure for how long it has been
there.
The document has about 1400 pages with about 1800 images. I *am* aware of
its size...
It has an old history, starting in the old version of Google Docs, to
openoffice and then to libreoffice writer. I wonder if there is a way to
"clean" the xml file?

To my question, is this a known problem? Is redmine the place to report it?

A more pressing question is *how I can monitor this bug. How do a get a
true count of images* in the document that I can use regularly to monitor
this? I cannot get a grip on the behaviour of the statistics page. Do I
need to write a macro, or a python script that reads the odt?

I can try 1000 things to isolate this bug, but I stop here in case someone
can point me in a good direction.

Thanks
Bo

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Ian Bertram Ian Bertram
Reply | Threaded
Open this post in threaded view
|

RE: Images silently disappears from write document

<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
-->
I have a feeling that I have seen similar behaviour, but where many of the images are inserted as hyperlinks. It is a document of my wife’s not mine so I only see it indirectly. She suspects it occurs if the document is closed down too quickly, ie before all the images have time to load. They usually reappear next time, but not always.


;


Sent fromMailfor Windows 10




From:Bo SiltbergSent:11 January 2021 15:03=To:[hidden email]:[libreoffice-users] Images silently disappears from write document






Hi,




<p class=MsoNormal>I have a large document with lots of images.


All image files are stored on disk externally from the document, in a


directory just beside the odt file. I use relative links to them from the


odt file (inserting them as link).




Now and then, *a large amount of images suddenly disappears from the odt*


as if they never were inserted into the document. I see this fault first


after having closed and reopened the document. I have lost about 100 images


each time...




The image file itself is intact, nothing wrong with it. I can insert it


again.


I have never *seen* that an image gets missing when I just do save, but


since close and open does not update the file(?), the bug seem to occur=in


the backgroundduring save. After save, the images are still there in the


opened document and I can continue adding more.




The image count in *Files-Properties-Statistics* still show the correct


old number as it should be when I open a faulty odt, but I am uncertain how


this count is kept, whether it actually counts the image tags. It's
behaviour is strange. What does the reset button do? When fiddling around


with reset, OK and other stuff I suddenly see a lower image count here


which probably reflects the true amount. I have monitored this count in


order to detect when images disappear, but obviously that count was a false


indication. I suspect the fault occur at save, but I don't *see* the fault


until I close and reopen the document?




The missing images are not part of the *Edit-Links to external files*...


And they are not part of the *Images* list in the *Navigator*.


If I open the xml file inside the odt, there is no trace of the image at


the place where it should be located.


So, the image is truly gone from the xml code.




One interesting observation is that images of type *.svg* seem to create a


png copy inside LO, which is stored in the Pictures directory of the odt. I


have noticed that LO sometimes fails to write all of them. Some may be
missing, but after opening the document and saving it again, they reappear


(not 100.0% sure about this).</p>




I'm using the latest stable version 6.4.x of libreoffice.


I first saw this problem in September. Not sure for how long it has been
<p class=MsoNormal>there.


The document has about 1400 pages with about 1800 images. I *am* aware of


its size...


It has an old history, starting in the old version of Google Docs, to


openoffice and then to libreoffice writer. I wonder if there is a way to


cleanthe xml file?


</p>
To my question, is this a known problem? Is redmine the place to report it?




A more pressing question is *how I can monitor this bug. How do a get a


true count of images* in the document that I can use regularly to monitor


this? I cannot get a grip on the behaviour of the statistics page. Do I


need to write a macro, or a python script that reads the odt?




I can try 1000 things to isolate this bug, but I stop here in case someone


can point me in a good direction.


p;


Thanks


Bo




--


To unsubscribe e-mail to: [hidden email]


Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/


Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette


List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy





--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
steveedmonds steveedmonds
Reply | Threaded
Open this post in threaded view
|

Re: Images silently disappears from write document

In reply to this post by Bo Siltberg
Hi Bo.
I had this issue quite some time ago in LO4 or 5, although in my case
the images were all stored in the file and I would lose them from the
Pictures directory in the file. The images stopped disappearing when I
turned "Save Autorecovery" off in the Load/Save options, and I became
diligent with manual saving. Somewhere along the way with a few version
changes and new user profiles the issue stopped and I have not
experienced it for quite some time. I never really determined the cause,
but like you my documents had a long history.

Steve

On 12/01/2021 03:38, Bo Siltberg wrote:

> Hi,
>
> I have a large document with lots of images.
> All image files are stored on disk externally from the document, in a
> directory just beside the odt file. I use relative links to them from the
> odt file (inserting them as link).
>
> Now and then, *a large amount of images suddenly disappears from the odt*
> as if they never were inserted into the document. I see this fault first
> after having closed and reopened the document. I have lost about 100 images
> each time...
>
> The image file itself is intact, nothing wrong with it. I can insert it
> again.
> I have never *seen* that an image gets missing when I just do save, but
> since close and open does not update the file(?), the bug seem to occur "in
> the background" during save. After save, the images are still there in the
> opened document and I can continue adding more.
>
> The image count in *Files->Properties->Statistics* still show the correct
> old number as it should be when I open a faulty odt, but I am uncertain how
> this count is kept, whether it actually counts the image tags. It's
> behaviour is strange. What does the reset button do? When fiddling around
> with reset, OK and other stuff I suddenly see a lower image count here
> which probably reflects the true amount. I have monitored this count in
> order to detect when images disappear, but obviously that count was a false
> indication. I suspect the fault occur at save, but I don't *see* the fault
> until I close and reopen the document?
>
> The missing images are not part of the *Edit->Links to external files*...
> And they are not part of the *Images* list in the *Navigator*.
> If I open the xml file inside the odt, there is no trace of the image at
> the place where it should be located.
> So, the image is truly gone from the xml code.
>
> One interesting observation is that images of type *.svg* seem to create a
> png copy inside LO, which is stored in the Pictures directory of the odt. I
> have noticed that LO sometimes fails to write all of them. Some may be
> missing, but after opening the document and saving it again, they reappear
> (not 100.0% sure about this).
>
> I'm using the latest stable version 6.4.x of libreoffice.
> I first saw this problem in September. Not sure for how long it has been
> there.
> The document has about 1400 pages with about 1800 images. I *am* aware of
> its size...
> It has an old history, starting in the old version of Google Docs, to
> openoffice and then to libreoffice writer. I wonder if there is a way to
> "clean" the xml file?
>
> To my question, is this a known problem? Is redmine the place to report it?
>
> A more pressing question is *how I can monitor this bug. How do a get a
> true count of images* in the document that I can use regularly to monitor
> this? I cannot get a grip on the behaviour of the statistics page. Do I
> need to write a macro, or a python script that reads the odt?
>
> I can try 1000 things to isolate this bug, but I stop here in case someone
> can point me in a good direction.
>
> Thanks
> Bo
>


--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy