Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
scanning makes page huge
Hello. When I try to scan a regular 8 by 11 inch page (US letter) the resultant file is usually around 35 by 48 inches. Anyone know why this is? And how I can fix it? Why is the scanned image so much larger than the actual page?
It doesn't matter if I use xsane, gscan2pdf, or Simple Scan. My scanner is an HP Scanjet 6200C.
The concern is when I fax a pdf created from a scanned page (via efax-gtk), the recipient usually complains that the size is not recognized.
It depends on the dpi that you use to scan it. DPI is dots (pixels) per inch. What resolution does the image have in pixels ? You can scale it down or change the scan settings to a lower DPI. 300 DPI is plenty for text.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
Yes, I start it at 300 dpi (gscan2pdf). It starts, scans, the image momentarily looks fine (IE, resembles the page scanned), then there's a blink, and the image has a larger border. Sometimes it reads 72 dpi under the properties tab (why, I don't know). I zoom it to 100%, and notice that the image is huge.
I used to use gscan2pdf within Vector Linux, and did not have this problem.
With xsane or simple scanner, I get the same (a huge image) even though the resolution is set at 300 dpi.
Last edited by mark_alfred; 04-07-2014 at 02:08 PM.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
I've tried with gimp. When using gimp, I noticed some interesting things. Even though the image had been set to 300 dpi for the initial scan via one of the frontends (gscan2pdf, xsane, or simple scanner) gimp would still report it as being set to 72. When the image would be changed back to 300 dpi, then the image retained its normal 8 by 11 dimensions. See uploaded screenshots.
300 / 72 = 4.166666667
35.417 / 8.5 = 4.166705882
48.708 / 11.690 = 4.166638152
I've taken the difference between the resolutions and divided them. And, I've taken the difference between the image measurements (both width and length, IE, 8.5 by 11.69 compared to 35.417 by 48.708) and divided the difference, and noted that the numbers are very similar (and likely would be almost identical if millimetres rather than inches had been used.)
There seems to be some glitch somewhere, because it doesn't matter if I set the scanning software to 300 to start.
Anyway, even after having rescaled things with gimp, it still concerns me to fax these images. The still appear huge on my screen. So I worry that there would be dozens of pages printed from some recipient fax machine trying to make sense of the oddity that it's receiving.
Last edited by mark_alfred; 04-07-2014 at 03:02 PM.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
pdf. I use efax-gtk 3.2.8. I've normally been successful sending faxes, but I discovered today that one did not go through that I tried to send last night. efax-gtk gave a bunch of odd errors. I just recently reinstalled my system onto a new computer. So, I'm a bit worried.
See the log below. I sent two pdf files, one with two pages, and the other with one page (so three altogether). It seemed to sort of get through, but then it spewed a bunch of errors that I've not seen before. The recipient did receive some faxes from me, but I was told it was indecipherable and wrongly sized.
Code:
** 2224 EDT 06 Apr 2014 **
efax-0.9a: 22:36:53 opened /dev/ttyS5
efax-0.9a: 22:36:54 using U.S. Robotics 56K FAX INT V5.22.45 in class 1
efax-0.9a: 22:36:54 dialing T416*******
efax-0.9a: 22:37:12 connected
efax-0.9a: 22:37:13 received CSI - answering ID
efax-0.9a: 22:37:13 The remote ID is 416*******
efax-0.9a: 22:37:14 received DIS - answering capabilities
efax-0.9a: 22:37:14 remote has one or more documents to send and can receive
efax-0.9a: 22:37:14 local 196lpi 14.4kbps 8.5"/215mm any 1D - - 0ms
efax-0.9a: 22:37:14 remote 196lpi 14.4kbps 12"/303mm any 2D ECM-64 BFT 0ms
efax-0.9a: 22:37:14 session 196lpi 14.4kbps 8.5"/215mm any 1D - - 0ms
efax-0.9a: 22:37:14 sent TSI - caller ID
efax-0.9a: 22:37:14 sent DCS - session format
efax-0.9a: 22:37:19 sent TCF - channel check of 2700 bytes
efax-0.9a: 22:37:21 received CFR - channel OK
efax-0.9a: 22:37:22 header:[2014-04-06 22:36 Mark (416 *** ****) --> 416******* 1/3]
efax-0.9a: 22:37:34 Warning: EOF before RTC
efax-0.9a: 22:37:36 sent 20+2155 lines and 25110+0 bytes, in 14 secs at 14348 bps
efax-0.9a: 22:37:36 sent MPS - not done
efax-0.9a: 22:37:39 received MCF - page OK
efax-0.9a: 22:37:39 sent page /home/mark/document1.pdf.001
efax-0.9a: 22:37:40 header:[2014-04-06 22:36 Mark (416 *** ****) --> 416******* 2/3]
efax-0.9a: 22:37:58 Warning: EOF before RTC
efax-0.9a: 22:38:00 sent 20+2155 lines and 35949+0 bytes, in 20 secs at 14379 bps
efax-0.9a: 22:38:01 sent MPS - not done
efax-0.9a: 22:38:04 received MCF - page OK
efax-0.9a: 22:38:04 sent page /home/mark/document1.pdf.002
efax-0.9a: 22:38:05 header:[2014-04-06 22:36 Mark (416 *** ****) --> 416******* 3/3]
efax-0.9a: 22:38:37 Warning: EOF before RTC
efax-0.9a: 22:38:40 sent 20+8971 lines and 63837+0 bytes, in 35 secs at 14591 bps
efax-0.9a: 22:38:41 sent EOP - done
efax-0.9a: 22:38:44 received MCF - page OK
efax-0.9a: 22:38:44 sent page /home/mark/document2.pdf.001
** 2239 EDT 06 Apr 2014 **
efax-0.9a: 22:39:07 Error: no command or response from remote
efax-0.9a: 22:38:44 sent CSI - answering ID
efax-0.9a: 22:38:44 sent DIS - answering capabilities
efax-0.9a: 22:38:47 received DIS - answering capabilities
efax-0.9a: 22:38:47 sent CSI - answering ID
efax-0.9a: 22:38:47 sent DIS - answering capabilities
efax-0.9a: 22:38:52 received DIS - answering capabilities
efax-0.9a: 22:38:52 sent CSI - answering ID
efax-0.9a: 22:38:52 sent DIS - answering capabilities
efax-0.9a: 22:38:57 received DIS - answering capabilities
efax-0.9a: 22:38:57 sent CSI - answering ID
efax-0.9a: 22:38:57 sent DIS - answering capabilities
efax-0.9a: 22:39:02 received DIS - answering capabilities
efax-0.9a: 22:39:02 sent CSI - answering ID
efax-0.9a: 22:39:02 sent DIS - answering capabilities
efax-0.9a: 22:39:07 received DIS - answering capabilities
efax-0.9a: 22:39:07 sent DCN - disconnect
efax-0.9a: 22:39:09 finished - invalid modem response
efax-0.9a: 22:39:09 opened /dev/ttyS5
efax-0.9a: 22:39:10 using U.S. Robotics 56K FAX INT V5.22.45 in class 1
efax-0.9a: 22:39:10 waiting for activity
Last edited by mark_alfred; 04-07-2014 at 04:15 PM.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
I don't think efax-gtk is the problem. I've compared documents that I scanned a month ago (using the same scanner), and when viewed at 100% they render fine. All were done with 300 dpi. The recent documents are rendered huge. Something is different with the rendering of scanned documents.
So do they render huge from the start, right after scanning ? Can you run 'identify --verbose' on the images like it says here: http://www.imagemagick.org/script/identify.php
You should be able to see more info on them. It says you can get the print size like:
Code:
identify -format "%[fx:w/72] by %[fx:h/72] inches" document.png
Again check the settings of all the programs you use as maybe one of the DPI settings is off.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
Okay, I guess it's just gscan2pdf and xsane that aren't working. simple-scan did work, which is good. Since I can scan stuff, presumably I'll be able to fax stuff as well. So, that saves me a reinstall. Still, too bad because I like the program gscan2pdf. It's handier than simple-scan.
With a file created by simple-scan:
Code:
mark@mark-OptiPlex-755:~/testscanners$ identify -format "%[fx:w/72] by %[fx:h/72] inches" ScannedDocument.pdf
8.5 by 11.6944 inches
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
I submitted a bug. I also tried a newer version of the program (1.2.4) via entering a repository from the gscan2pdf website, but this made no difference.
I'm not sure why simple-scan initially gave me odd results. Perhaps because I had it set on photo setting for a text-based page. It was fine after I changed this. So, with simple-scan, I can still make reasonably sized scans, which is good.
Last edited by mark_alfred; 04-08-2014 at 04:31 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.