LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-07-2014, 12:47 PM   #1
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
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.
 
Old 04-07-2014, 01:00 PM   #2
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 04-07-2014, 01:44 PM   #3
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
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.
 
Old 04-07-2014, 02:11 PM   #4
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Set the DPI lower or scale the image using GIMP or equivalent.
 
Old 04-07-2014, 03:00 PM   #5
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot - 14-04-07 - 03:25:18 PM.png
Views:	13
Size:	36.9 KB
ID:	15181   Click image for larger version

Name:	Screenshot - 14-04-07 - 02:40:27 PM.png
Views:	9
Size:	28.4 KB
ID:	15182   Click image for larger version

Name:	Screenshot - 14-04-07 - 03:36:33 PM.png
Views:	15
Size:	36.3 KB
ID:	15183  

Last edited by mark_alfred; 04-07-2014 at 03:02 PM.
 
Old 04-07-2014, 03:16 PM   #6
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
I tried gscan2pdf starting with a resolution of 72 (using line art setting) and the image size was reasonable. But the image itself looks like crap.
 
Old 04-07-2014, 03:47 PM   #7
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
In what format do you fax these images ? A most specific error would help. Maybe the fax program has issues.
 
Old 04-07-2014, 04:13 PM   #8
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
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.
 
Old 04-07-2014, 04:25 PM   #9
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,195

Rep: Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284
That scanner does not score very well on TWAIN standards compatibility. Only 33 out of 100.

http://inspectortwain.com/report.asp...1-b2729c4a7827
 
Old 04-07-2014, 04:30 PM   #10
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Some things to try:
Use the latest version of efax-gtk and double-check the settings. Try exporting to PDF or PS using xsane directly.

efax is kinda old, so you may want to try something that is constantly updated like:
http://hylafax.sourceforge.net/

Last edited by metaschima; 04-07-2014 at 04:40 PM.
 
Old 04-07-2014, 05:44 PM   #11
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
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.
 
Old 04-07-2014, 07:18 PM   #12
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
The problem is described here with gscan2pdf. No solution here, however.
 
Old 04-07-2014, 07:24 PM   #13
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.

EDIT: if the problem is gscan2pdf try other programs:
http://scantailor.sourceforge.net/

Last edited by metaschima; 04-07-2014 at 07:27 PM.
 
1 members found this post helpful.
Old 04-07-2014, 08:50 PM   #14
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
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
 
Old 04-08-2014, 10:22 AM   #15
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
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.
 
  


Reply

Tags
gscan2pdf, sane, scanner, size


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why my scanning 10 pages is always creating huge >45Mb to 110Mb PDF files ? Xeratul Linux - General 11 01-14-2011 05:47 PM
Memory Page Scanning and Reclaim/Memory Management ilfantomas Linux - Kernel 1 03-02-2010 08:31 PM
LXer: Ubuntu Lucid Makes Scanning Simple LXer Syndicated Linux News 2 02-28-2010 12:43 PM
mmap of a file partially present in page cache into huge pages panandsapphire Linux - Kernel 0 10-30-2006 04:31 AM
HCL makes my signature huge scuzzman LQ Suggestions & Feedback 4 06-20-2005 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration