Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanning / adding not working at all #202

Open
vonAlenberg opened this issue Jan 16, 2020 · 3 comments
Open

Scanning / adding not working at all #202

vonAlenberg opened this issue Jan 16, 2020 · 3 comments

Comments

@vonAlenberg
Copy link

vonAlenberg commented Jan 16, 2020

I try to create usable TIFFs using the instructions from the webpage, but everything fails.

Here is the file I use:
analog1.PDF

sdaps:

sdaps convert PROJECT analog1.PDF -o output.tif
------------------------------------------------------------------------------
- SDAPS -- convert
------------------------------------------------------------------------------
analog1.PDF: Not a TIFF or MDI file, bad magic number 20517 (0x5025).

imagemagick

convert -density 300 analog1.PDF -threshold 30% -compress none analog1.tif

creates a horrible tif-file. So I adjust the threshold to 70%

convert -density 300 analog1.PDF -threshold 70% -compress none analog1.tif

which results in a nice tif-file. However, sdaps cannot add it:

sdaps add 5b/analog analog1.tif                                          
------------------------------------------------------------------------------
- SDAPS -- add
------------------------------------------------------------------------------
Invalid input file analog1.tif. You need to specify a (multipage) monochrome TIFF as input.

I tried preprocessing with GIMP, not helping.

What do I have to do to get this stuff working? About 60 sheets waiting for me...

System

Arch Linux 5.3.18-1-surface #1 SMP PREEMPT Sat Dec 28 00:09:48 CET 2019 x86_64 GNU/Linux
sdaps 1.9.7
opencv 4.2.0-1
opencv-python (4.1.2.30)
@benzea
Copy link
Member

benzea commented Jan 16, 2020

Did you try to follow the instructions? Because they explicitly state to add -monochrome to the convert command line after the -threshold X% argument.

The easier thing is to just use add --convert and throw in the PDF directly.

@vonAlenberg
Copy link
Author

Did you try to follow the instructions? Because they explicitly state to add -monochrome to the convert command line after the -threshold X% argument.

Yes, just forgot to paste it into here.

The easier thing is to just use add --convert and throw in the PDF directly.

Same error as before, however it works. 1.tif is added to the folder. Why?

@benzea
Copy link
Member

benzea commented Jan 17, 2020

Because there is an automated fallback and the file is converted to the correct format for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants