<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://build2be.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>build2be/com/e - scanimage</title>
 <link>https://build2be.com/category/scanimage</link>
 <description></description>
 <language>en</language>
<item>
 <title>scanimage to the rescue</title>
 <link>https://build2be.com/content/scanimage-rescue</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;As I have an old CanoScan LiDE 30 and troubles under Ubuntu with SANE I have to use scanimage. It is know as as&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;scanimage --help
-- last line --
plustek:libusb:002:002&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;To scan a A4 which is the standard paper size over here is need to use&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;scanimage -l 0 -t 0 -x 215 -y 297 --resolution 150 &amp;gt; myimage.ppm&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
gives file size of 6 MB&lt;/p&gt;
&lt;p&gt;Problem&#039;s I have so far is in the output size of the above line. The mode defaults to color so the scans are huge.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;scanimage -l 0 -t 0 -x 215 -y 297 --resolution 150 --mode Lineart &amp;gt; myimage.ppm&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
gives file size of 300 KB but this looks ugly for a scanned document.&lt;/p&gt;
&lt;p&gt;So use your gray matter&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;scanimage -l 0 -t 0 -x 215 -y 297 --resolution 150 --mode Gray &amp;gt; myimage.ppm&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
gives file size of 2 MB. &lt;/p&gt;
&lt;p&gt;Color equals 3 times Grey equals 20 (?) times Black and White. Hmm.&lt;/p&gt;
&lt;p&gt;Color Depth defaults to 8 bits. So I cannot explain the 20 times difference in size between Gray and Lineart.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-4 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;free form:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/category/ppm&quot;&gt;ppm&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/category/scanimage&quot;&gt;scanimage&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Wed, 19 Mar 2008 09:20:56 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">40 at https://build2be.com</guid>
 <comments>https://build2be.com/content/scanimage-rescue#comments</comments>
</item>
</channel>
</rss>
