Created attachment 128834 [details]
In writer Insert -> media -> scan imports a scrambled image. I attach the image generated by Simple Scan, and the same image generated in LibreOffice 184.108.40.206 exported to .pdf. Both scans use the same source document to be scanned.file:///home/joe/Desktop/LO_Scan.pdf
Created attachment 128835 [details]
I am running Ubuntu 16.10 64-bit.
Created attachment 128952 [details]
LibreOffice 220.127.116.11 Scan
I upgraded to LibreOffice 18.104.22.168 and the problem still persists.
Just to make sure, could you test with a fresh master build?
I attempted to install a fresh master build (5.4.0) but I was unsuccessful. Probably because I totally do not understand how to do it. I will replace my LO 22.214.171.124 with 5.3.0 Release Candidate and see if the phenomena persists.
Created attachment 129272 [details]
LO 5.3.0 Beta1 scan
I tried with an Epson Perfection 1670 in 126.96.36.199beta1 / Ubuntu 16.04, and could scan normally.
Actually, Insert -> Media -> Scan -> Request... didn't work (didn't do anything... that could be a bug), so I used Select Source..., didn't change anything there, scanned and the image appeared correctly. Are there any particular settings you were using?
I reverted to LO 188.8.131.52 because I was having too many issues with 5.3.0. My experience parallels Aron's in that Insert -> Media -> Scan -> Request... didn't work (didn't do anything... ). Once I had used select source it scanned, but the image was still scrambled. I see no point in uploading another scrambled image, similar to the ones already submitted. Since I use Ubuntu 16.10 64bit maybe there is some issue connecting LO with 16.10, but the fact that Simple Scan has no trouble scanning makes me think it is a LibreOffice issue.
I varied the DPI settings in the select source and then rescanned. The scrambled image varied with each different DPI but none were good.
Joseph, what's the manufacturer and model of your scanner?
Could you upload a Writer document that has a scrambled scanned image? Not sure if it'll help much, but it's easier to check the image file itself there than in a processed PDF.
Created attachment 129306 [details]
Different DPI settings produce different scrambled images.
The computer is fairly genetic PC with a gigabyte motherboard and 16gig ram.
The scanner is a HP Officejet 6700 Premium. It is a combination flatbed, printer, copier, and FAX. It connects to the computer via a usb cable.
I solved the problem. The scan settings under select source were defaulting to lineart. This setting does not show up in the initial select source window. By opening up scan mode sub choices of mode and source appear. Source defaults to flatbed, which is fine, but mode defaults to lineart which causes the problem. Switching the mode to grey or color allows the scan to not be scrambled.
I suggest making these settings visible from the start select source window.
Better yet, have some obvious way to set the defaults.
Unable to confirm. All of my environments (bibisect, compiled LO, OS-installed LO) all default to the gray mode of scanning.
Likely it was a user-preference setting saved in your user profile. Deleting the profile and starting from a fresh one likely would have solved the issue.
(In reply to Justin L from comment #15)
> Unable to confirm. All of my environments (bibisect, compiled LO,
> OS-installed LO) all default to the gray mode of scanning.
> Likely it was a user-preference setting saved in your user profile. Deleting
> the profile and starting from a fresh one likely would have solved the issue.
I have totally removed the libreoffice, including profile. Then I downloaded and installed LO 184.108.40.206 and updated the operating system to Ubuntu 17.04. There is no change in the behaviour. The scanner software still defaults to lineart. There seems to be no way to make it default to anything else. Each use of the scan this setting must be reset.
(In reply to Joseph Conner from comment #16)
> I have totally removed the libreoffice, including profile. Then I downloaded
> and installed LO 220.127.116.11 and updated the operating system to Ubuntu 17.04.
> There is no change in the behaviour. The scanner software still defaults to
> lineart. There seems to be no way to make it default to anything else. Each
> use of the scan this setting must be reset.
If you scan without LibreOffice are you able to change the default config and reuse this default when you scan from LibreOffice?
Set status to NEEDINFO, please set it back to UNCONFIRMED once requested
informations are provided.
Best regards. JBF
I have XSane and Simple scan installed. Neither of these provide me with the option to set lineart or grey as default. Also, neither of these present the problem.
(In reply to Joseph Conner from comment #18)
> I have XSane and Simple scan installed. Neither of these provide me with the
> option to set lineart or grey as default. Also, neither of these present the
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
I am now using Ubuntu 18.10, and LibreOffice Version: 18.104.22.168. Also I have changed to the scanner in HP Photosmart 5200 series. I no longer am able to reproduce the problem. The scanner settings now persist upon relaunch. I have tried both simple scan and xSane, both are working as expected.
Thanks for retesting with the latest version.
Setting to RESOLVED WORKSFORME as the commit fixing this issue hasn't been identified.