Bug 124325 - Writer: Converting DOCX to HTML reduces grouped image quality.
Summary: Writer: Converting DOCX to HTML reduces grouped image quality.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: Other Mac OS X (All)
: medium enhancement
Assignee: Not Assigned
Keywords: filter:html
: 122077 (view as bug list)
Depends on:
Blocks: HTML-Export
  Show dependency treegraph
Reported: 2019-03-25 16:13 UTC by Young S.
Modified: 2019-10-16 14:45 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Young S. 2019-03-25 16:13:04 UTC
Was directed here by Mike Kaganski from this original post -> https://ask.libreoffice.org/en/question/187915/converting-to-html-reduces-image-size/

Basically, when we run...

soffice --convert-to html test.docx

The image quality of Grouped images (that are combined into a single image by the conversion) is lower than when viewed in the LO Writer.

Again, thank you so much for creating LibreOffice and sharing it with the world. Our company does work in Medical Publishing, and we transform/organize raw data from publishers to provide to practitioners and students in the form of apps/web-apps. We're currently in the process of creating support for word document uploads for publishers, and LibreOffice is crucial to us since it provides extremely accurate representations/conversions of the original Word documents. There are a lot of grouped images in the medical journals (for example, comparing different examples of a specific injury/disease), and this enhancement would be crucial for us since it would prevent text (in grouped images) from becoming too blurry and unreadable. Any help would be greatly appreciated. Thank you again for creating LibreOffice, and we wish you all the best in the future. =)

Steps to Reproduce:
1. Running "soffice --convert-to html test.docx" on command line

Actual Results:
Grouped image (which is combined into one single image) quality is reduced

Expected Results:
Similar image quality to when viewed in LO Writer.

Reproducible: Always

User Profile Reset: No

Additional Info:
Comment 1 Dieter 2019-03-25 16:27:42 UTC
cc: Mike Kaganski
Comment 2 Young S. 2019-03-27 14:59:55 UTC
Also, I've started tinkering with the source code. Most of the relevant code seems to be in sw/source/filter/html/htmlflywriter.cxx, where OutHTML_FrameFormatGrfNode() (line 1777) or OutHTML_FrameFormatAsImage() (line 1739) both call the below WriteGraphic() method in svx/source/xoutdev/_xoutbmp.cxx (line 113)

    ErrCode XOutBitmap::WriteGraphic( const Graphic& rGraphic, OUString& rFileName,
                                 co nst OUString& rFilterName, const XOutFlags nFlags,
                                 const Size* pMtfSize_100TH_MM,
                                 const css::uno::Sequence< css::beans::PropertyValue >* pFilterData )

Would anyone happen to know if modifying the pMtfSize_100TH_MM parameter would alter the output image size/quality? I've been doing custom builds with this parameter modified but have had problems so far.

Any help would be greatly appreciated. Thank you and wish you all the best~~
Comment 3 Young S. 2019-03-27 15:01:32 UTC
note: typo above "co nst" (not in the custom code though)
Comment 4 Alex Thurgood 2019-03-28 14:17:57 UTC
Is this really only a macOS issue ?
From the discussion on Ask, it would appear to be applicable to all OSes.

Is there a test document available, where we can attempt to reproduce this issue ?

It also seems from the Ask discussion that the feature-lack was already recognized and that this report should therefore be in the NEW state, rather than UNCONFIRMED.

Comment 5 Alex Thurgood 2019-03-28 14:22:29 UTC
Could it be that this is a similar report to :

Comment 6 QA Administrators 2019-10-07 03:04:34 UTC Comment hidden (obsolete)
Comment 7 Young S. 2019-10-07 14:17:47 UTC
Yes, this is the same report as https://bugs.documentfoundation.org/show_bug.cgi?id=122077

And you're correct, it's an acknowledged missing feature. Switching the status to NEW. Can switch remove or close this if you prefer, as it's basically a duplicate of the linked bug report. Thanks and wish you all the best.
Comment 8 Xisco Faulí 2019-10-16 14:45:40 UTC
*** Bug 122077 has been marked as a duplicate of this bug. ***