Hello,
i have made a scan of a book and in the scan the background is all black. I want to print this file now and avoid that my ink is going to waste, so i thought turning it white is the solution. How can i do that with manjaro applications? Its 40 pages so it would be good if it does that for the pages alltogether.
Thank you to all of you in advance. I would really appreciate your help.
There is also text recognition software that could extract the text from the scanned pdf file(s).
Probably overkill in terms of time needed to get out of it what you want.
You guessed what my problem is from the little confusing description. Thank you very much. I find it a bit hard to understand how to use this tool and i couldnāt find the two tools in the listed examples yet?
right click anywhere in the picture shows a menu, click again and it is gone
left click shows another, floating menu which only exists as long as you hold the button
(as it used to be back in the day ā¦)
There should be many graphic programs which can crop a picture - I ended up using this one.
convert
is a command line tool - mogrify is another
but the function they provide can be accessed via display
in a graphical manner
all part of imagemagick
gimp can certainly do it - but it is no less awkward to use if you have never worked with it.
Yes - now that I have been told and have read about it, I know.
Itās probably still not easy peasy to automate this process without investing some time to try and test the results and try again ā¦
It looks like the .pdf needs to be cropped - the black border needs to be cut off.
Since itās a scan one could assume that the position of the to be cropped area doesnāt change too much or even stays the same for each scanned page.
Still, for 40 pages it takes less than 10 minutes to do every page by hand - once you got the hang of it via the rather unfamiliar GUI.
I also found out that there is a fork of imagemagick with pretty much the same functionality and look and feel:
It might be available via a PPA (unless youāre on LMDE).
ā
What Iād suggest is selecting the scan area, to avoid having to trim the images (too much). Some scanner software can (sometimes) do this automatically; I think XSane* is one; Iāll have to have another play with my scanner to check this.
* Iāll have to check this actually works in Wayland. I think it does but havenāt used the scanner for a while.
Thanks for caring!
But I donāt want it, donāt need it.
Version 6 works just fine
That would be a way when he still has got the book.
I bet he doesnāt.
And it takes even longer to do it all over again than just to crop each picture which is already there.
Iād have to go, with the book, to a copy shop, because I donāt own a scanner.
That is why I just use my phones camera and then use the tool to crop the pictures to only contain the subject matter and perhaps resize them and turn them to black and white before printing or e-mailing ā¦
I tend to print from GIMPā¦
So if we screenshot a post (with Manjaro dark formatting) here, I can first desaturate, then invert to get dark text on light.
If thereās anything needs cropping, do that - then adjust the levels to clean up (whiten) the paper, and curve it so that the contrast looks good - but not too extreme.
Finally, a pencil tool can white over any blemishes remaining (maybe the W logo and the cursor).
Using ImageMagik, you can adjust a command to crop like this:
I donāt know if this is of any help or interest but as an experiment I uploaded a scan of a book page to https://lmarena.ai/ (or https://chatbot-arena.web.app/ is the experimental interface) and gave the prompt "Please extract the text from this image", in my opinion the result was an impressive and accurate reproduction of the text.
There are several AI Chatbots to choose from to find the one that best suits you needs or preferences. You may have to adjust the prompt to your needs.
OP has got the scans in the form of .pdf files.
He just wants / needs to remove a black border
which is a residue from the scanned area being bigger than the scanned book,
so as not to having to print all that useless black, wasting ink in the process.
Itās a fairly simple crop job.
No need for AI - which could also be leading into copyright terrain, since you are dealing with the content of the text now -
content of a whole book even ā¦ and submitting it to āsomeoneā online for processing
Hello again, iām sorry i was offline for long. Thank you all for your messages. Iām really grateful for them. I will try to follow your advices Nachlese and hopefully report back in a few minutes.
Iām not sure, if i want to crop the pictures. Can you explain to me what the above command does exactly? Iām sorry, but iām not sure how to use the link you sent me, to find examples that match my wanted operation. Iām not to familiar with the terminal either. I manage to copy certain commands to it, but thatās basically it. I would really appreciate if you can help me out further.