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

--- Comment #7 from Hossein <hoss...@libreoffice.org> ---
(In reply to Timur from comment #4)
> I bisected this to bug 125281.
> Xisco,you are fresh with images and lazy-loading, please see.
This is correct.
My bibisect also lead to the fix for bug 125281:

https://git.libreoffice.org/core/+/69b62cfcbd364d7f62142149c2f690104b217ca1%5E%21/

commit     69b62cfcbd364d7f62142149c2f690104b217ca1
author     Miklos Vajna <vmik...@collabora.com> Mon May 27 21:24:42 2019 +0200
tdf#125281 DOC import: fix size of lazy-loaded metafiles
Metafiles may have an external header, so once graphic data is read, we
need to set the size explicitly. Otherwise the width of the EMF image in
the bugdoc will be too small.

The script used for the automated bibisect (https://lwn.net/Articles/317154/)
was:
(tdf141049.doc is one of the figures that is not shown in the example
(attachment 43525 from bug 34454). The blank output is <20k, but the correct
output is > 40k. Checking the size to be > 40k is used to determine if the
commit is good or bad. 

./instdir/program/soffice --headless --convert-to pdf tdf141049.doc
file=tdf141049.pdf
minsize=40000
size=$(wc -c <"$file")
if [ $size -ge $minsize ]; then
    exit 0
else
    exit 1
fi

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

Reply via email to