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

            Bug ID: 171577
           Summary: LibreOffice converts grayscale images to RGB during
                    PDF export
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Printing and PDF export
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 206484
  --> https://bugs.documentfoundation.org/attachment.cgi?id=206484&action=edit
grayscale png image, text with image as odt and exported pdf, pdf test

When exporting a document containing grayscale images to PDF, LibreOffice
converts the images to RGB, even if the original image is grayscale and has no
color information.

This causes issues with print shops that expect true grayscale images (e.g.,
for PDF/X-1a compliance). The exported PDF contains RGB images instead of
grayscale, which leads to unnecessary color conversion and potential quality
loss during print preparation.

Steps to reproduce:
1. Insert a grayscale image (e.g., PNG or TIFF with grayscale profile) into a
LibreOffice Writer document.
2. Export as PDF (File → Export as PDF…).
3. Check the exported PDF with: pdfimages -list yourfile.pdf
   → The image appears as "rgb" instead of "gray".

Expected result: Grayscale images should remain grayscale in the PDF.
Actual result: Images are converted to RGB.

Additional notes:
- This behavior was not present in OpenOffice.
- No option found in LibreOffice settings to prevent this conversion.
- Confirmed on Linux Mint 22.1 Cinnamon, LibreOffice 24.2.7.2.

LibreOffice version: 24.2.7.2
OS: Linux Mint 22.1 Cinnamon
Architecture: x86_64 (or arm64 if applicable)

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

Reply via email to