https://bugs.documentfoundation.org/show_bug.cgi?id=158293
--- Comment #6 from Patrick Luby <plub...@libreoffice.org> --- I can reproduce this bug in my local build as well as in LibreOffice 7.5.8.2. Not sure if it helps, but I have located where in the code the embedded image is loaded into a SalBitmap. The image is a grayscale JPEG image 386x553 pixels in size that is copied directly into a SalBitmap with a 256 entry color palette. Frame #9 in the following stack snippet is where GraphicFilter::readJPEG() copies the loaded pixels to a SalBitmap. I am not familiar with parsing JPEG image files but my first guess is that LibreOffice's JPEG parsing code is setting the wrong grayscale palette: frame #9: 0x000000011590c15c libvcllo.dylib`GraphicFilter::readJPEG(rStream=0x0000600012206080, rGraphic=0x000000016fdf7710, rLinkType=0x000000016fdf7438, nImportFlags=SetLogsizeForJpeg) at graphicfilter.cxx:976:33 frame #10: 0x0000000115907ecc libvcllo.dylib`GraphicFilter::ImportGraphic(this=0x0000000116329338, rGraphic=0x000000016fdf7710, rPath="", rIStream=0x0000600012206080, nFormat=6, pDeterminedFormat=0x000000016fdf75d6, nImportFlags=NONE) at graphicfilter.cxx:1336:23 frame #11: 0x000000010f30c144 libsvxcorelo.dylib`(anonymous namespace)::SvXMLGraphicOutputStream::GetGraphic(this=0x000060001b40c180) at xmlgrhlp.cxx:295:43 frame #12: 0x000000010f30bf00 libsvxcorelo.dylib`SvXMLGraphicHelper::loadGraphicFromOutputStream(this=0x00000003710d2290, rxOutputStream=0x0000000129f68c98) at xmlgrhlp.cxx:612:46 frame #13: 0x000000011c3b7368 libxolo.dylib`SvXMLImport::loadGraphicFromBase64(this=0x0000000387238e50, rxOutputStream=0x0000000129f68c98) at xmlimp.cxx:1333:45 frame #14: 0x000000011c571a64 libxolo.dylib`SdXMLGraphicObjectShapeContext::endFastElement(this=0x0000000129f68ac0, nElement=328674) at ximpshap.cxx:2407:64 -- You are receiving this mail because: You are the assignee for the bug.