One image in docx file slightly cropped to the right when opened in writer but not ms-word

Hi all, first post here after searching through the forum to hopefully see anyone else encountering this issue but unable to find any.

Some details about the software version and my OS.
OS: MacOS Sequoia 15.3
LibreOffice version: Tried both latest and stable ARM version (24.8.4.2 & 24.2.7.2)

To elaborate more on the issue, the image is not exactly cropped and more of having a blurred right edge as shown in the picture below pointed by the orange arrow. This caused the image to appeared cropped in the PDF export of the docx.

When opening the same docx file in Microsoft Word, the image borders looks perfectly solid.
Attached both the docx and the exported PDF in case they are helpful.
example.docx (141.8 KB)
example.pdf (261.3 KB)

Have a look at:

How to open files from MS-Office 2007 or 2010 (.DOCX, .XLSX,…)?

Your document is absolutely not a text document. It could have been much better created with a drawing progam like Draw.

The image involved in the issue is originally a 6×3 cm in 96 ppi (screen resolution). It is scaled down by Writer at 42%. I don’t know if Writer keeps the ppi during scaling. If it does this contributes to blurring. I see that the image in kept inside the file as a JPEG.

42% ratio is not a “simple” factor like 50%, 25% or 1/3 which can be handled smartly. It introduces blur by itself. Add to that that JPEG creates strong artefacts on high-contrast edges.

If you want to avoid such mishaps, manipulate your image outside Writer so that it is used at its original size and density. I’d recommend 300 dpi if the document is ever to be printed.

There is another point: Writer is not Word. You import a foreign format file which must be converted. There are no big problems with common simple textual documents. But yours is a collection of graphical shapes and you’re entering an hazardous zone because this is a domain where both formats diverge most.


My best advice is: dump your current document. Start from scratch either in Draw or perhaps better in Impress and save it native format.

Process all graphical material before inserting it so that LO has nothing to do (no interpolation, scaling or cropping).

Thanks @Hrbrgr for the link and especially to @ajlittoz for your explanation.
I am aware of the compability issue and after reading the link I have a better understanding now.


Will certainly consider using @ajlittoz suggestion of saving in native format, or even better use Draw / Impress. Think that make perfect sense as we are using this certificate file as a template to programmatically insert person name & certificate title. Finally it is exported as PDF.


A different team creates this template file and we just have to propose them to exclusively use Libre Office to avoid issues.


EDIT: How do I write the post with bigger line spacing between paragraphs as you guys did? Tried double newline as that works with some markdown renderer but not here. This looks difficult to read :sweat_smile:

EDIT2: figured it out when looked at raw view of the post.

If the “inserts” come from some sort of database (spreadsheet or real database), an even better tool is Base which can access the DB directly with a query. Base has an integrated report generator which can replace your template. The report generator can output .odt or .pdf. In the latter case, there is no need for an intermediate form as the PDF generation is immediate.

1 Like

Interesting, will evaluate at a later time if Base fits our implementation better / easily.
This is implemented as part of a system with quite a lot of moving parts and company best practise to follow.


For now will focus on solving the immediate issue first. Thanks for the additional suggestion.

The site engine generates HTML with a simplified input format called MarkDown. Since this is HTML, the “whitespace collapse rule” applies: any sequence of whitespace is reduced to a single character occurrence, i.e. a single space or line break.

The trick is to use “standard” HTML tags. I use <br> at start of a new paragraphs. Others (who are lazier) prefer to type a paragraph containing a single dot. This is mess good-looking IMHO.

And since the site is HTML, you can improve look by using almost all HTML decorations like strike through subscripts and superscripts LATEX.

1 Like