SULDR Forums Supported Printers Printing Questions Scanning Questions General Questions Samsung Installer

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - bngm

Pages: [1]
1
Scanning / Invalid scanned images
« on: November 05, 2012, 16:54:11 »
Hello,

I'm on Linuxmint 13 (MATE)
I have a Samsung SCX-3405FW. It is connect to LAN (for printing/scanning from other PCs) and USB to my PC.
I configured my system to the repository, so I guess I have the latest version.
But anyway, scanning is working fine, for example with the "simple scan" program installed.

But I wanted to use command-line.
scanimage -L gives me this:
device `smfp:SAMSUNG SCX-3400 Series on USB:0' is a SAMSUNG SCX-3400 Series on USB:0 Scanner
device `smfp:SAMSUNG SCX-3400 Series on 192.168.1.28' is a SAMSUNG SCX-3400 Series on 192.168.1.28 Scanner
So, first question: is there a way to make these names shorter (like without spaces, for instance)?

Then, options are also very long:
scanimage -A -d 'smfp:SAMSUNG SCX-3400 Series on USB:0'
mfp_claim
mfp_release

All options specific to device `smfp:SAMSUNG SCX-3400 Series on USB:0':
    --preview[=(yes|no)] [no]
        Requests a preview-quality scan
  Image Quality:
    --mode Black and White - Line Art|Black and White - Halftone|Grayscale - 256 Levels|Color - 16 Million Colors [Color - 16 Million Colors]
        Sets the color composition mode of the scanned image
    --resolution 75|100|150|200|300|600|1200|2400|4800dpi [300]
        Sets the resolution of the scanned image
  Scan Area:
    --page-format Statement - 5.5"x8.5"|Statement (Rotated) - 8.5"x5.5"|A5 - 148x210 mm|A5 (Rotated) - 210x148 mm|B5 (JIS) - 182x257 mm|Executive - 7.25"x10.5"|A4 - 210x297 mm|Letter - 8.5"x11"|Legal - 8.5"x14"|Folio - 8.5"x13"|Custom [A4 - 210x297 mm]
        Sets the paper format of the scanned page
    -l 0..216mm [3]
        Sets left position of the scan area
    -t 0..355mm
        Sets top position of the scan area
    -x 0..213mm [210]
        Width of scan-area.
    -y 0..355mm [297]
        Height of scan-area.
    --doc-source Auto|Flatbed|ADF Simplex [Auto]
        Selects source of the document to be scanned

Here again, would there be any possibility to make them shorter?

But anyway

So, to scan I have to give the whole 'smfp:SAMSUNG SCX-3400 Series on USB:0' as device (with simple quotes).
For example:
scanimage --format=tiff -p -v -d 'smfp:SAMSUNG SCX-3400 Series on USB:0' --mode='Color - 16 Million Colors' --resolution=100 --page-format 'A4 - 210x297 mm' > test.tiff

This gives me a (2.9MB) big file. But it seems that it is invalid.
If I try to convert it I get:
convert test.tiff test.pdf
convert: Not a TIFF or MDI file, bad magic number 26221 (0x666d). `test.tiff' @ error/tiff.c/TIFFErrors/496.
convert: missing an image filename `test.pdf' @ error/convert.c/ConvertImageCommand/3011.

And if I try to open (double-click) this test.tiff, I also receive this "Not a TIFF or MDI file, bad magic number 26221 (0x666d)" message.

And if I try with pnm format:
scanimage --format=pnm -p -v -d 'smfp:SAMSUNG SCX-3400 Series on USB:0' --mode='Color - 16 Million Colors' --resolution=100 --page-format 'A4 - 210x297 mm' >test2.pnm
And then:
convert test2.pnm test.pdf
convert: improper image header `test2.pnm' @ error/pnm.c/ReadPNMImage/289.
convert: missing an image filename `test.pdf' @ error/convert.c/ConvertImageCommand/3011.

And opening it gives also an error.

So, I am not really sure if this forum is the right place to ask this question.
But I guess that some people here may have ideas, at least where to search for more information.

Many thanks in advance.


Pages: [1]
Repository Information Legal Contact Alternative Drivers