Description: After updating from LibreOffice 5.1.5.2 to 5.4.5.1 docx-files containing a picture with high DPI do not result in smaller pdfs when converting with MaxImageResolution=75 compared to converting with MaxImageResolution=300. Steps to Reproduce: 1. Install unoconv from https://github.com/dagwieers/unoconv/blob/master/unoconv Just this file is needed: https://github.com/dagwieers/unoconv/blob/master/unoconv 2. Install LibreOffice 5.4.5.1 unoconv -e MaxImageResolution=300 -f pdf docx.docx stat -c %s docx.pdf unoconv -e MaxImageResolution=75 -f pdf docx.docx stat -c %s docx.pdf 3. Install LibreOffice 5.1.5.2 unoconv -e MaxImageResolution=300 -f pdf docx.docx stat -c %s docx.pdf unoconv -e MaxImageResolution=75 -f pdf docx.docx stat -c %s docx.pdf Actual Results: Point 2: equal file sizes of the pdf after first and second conversion. Point 3: PDF converted with MaxImageResolution=75 is smaller than the pdf converted with MaxImageResolution=300. Expected Results: Second pdf should be smaller due to picture with less DPI in pdf after the second conversion. Reproducible: Always User Profile Reset: No Additional Info: User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
(In reply to julian.steinkellner from comment #0) > Description: > After updating from LibreOffice 5.1.5.2 to 5.4.5.1 docx-files containing a > picture with high DPI do not result in smaller pdfs when converting with > MaxImageResolution=75 compared to converting with MaxImageResolution=300. Could you try with 6.0.x and master as well? https://dev-builds.libreoffice.org/daily/master/Win-x86_64@42/current/ I guess you have to edit the line extrapaths += glob.glob(os.environ['PROGRAMFILES']+'\\LibreOffice*') + \ to be extrapaths += glob.glob(os.environ['PROGRAMFILES']+'\\LibreOfficeDev') + \ in order to force it to use the master build. If it still happens, please attach an example docx file so we can quickly test. Set to NEEDINFO. Change back to UNCONFIRMED, if the problem persists. Change to RESOLVED WORKSFORME, if the problem went away.
Created attachment 141561 [details] problematic document The picture in this document is copyrighted by Universität Innsbruck.
I tried converting the DOCX with LibreOffice 6.0.3.2 and with the master. It was not working with both versions on CentOS. But I noticed that other images do not lead to this problem. I attached the problematic DOCX file.
(In reply to julian.steinkellner from comment #0) > 2. > Install LibreOffice 5.4.5.1 > unoconv -e MaxImageResolution=300 -f pdf docx.docx > stat -c %s docx.pdf > unoconv -e MaxImageResolution=75 -f pdf docx.docx > stat -c %s docx.pdf Reproduced. Arch Linux 64-bit Version: 6.0.3.2 Build ID: 6.0.3-1 CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; Locale: fi-FI (fi_FI.UTF-8); Calc: group
I should have tested this before bibisecting, but at least now we know what this was about and what fixed it. Closing thus as duplicate of bug 105954. Julian: please test with 6.1 beta version or 6.0.5 to see the fix. *** This bug has been marked as a duplicate of bug 105954 ***
I tested it with version 6.1 beta and 6.0.5. It seems to be fixed in both versions. Thank you.