Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr2430 :: Scanning books

Ken explains how and why he is scanning school books

<< First, < Previous, , Latest >>

Thumbnail of Ken Fallon
Hosted by Ken Fallon on Friday, 2017-11-24 is flagged as Explicit and is released under a CC-BY-SA license.
book scanning. (Be the first).
The show is available on the Internet Archive at: https://archive.org/details/hpr2430

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:12:20

general.

I want to scan my Son's school books so that he doesn't get back problems lugging books to and from school. Something that for now at least remains legal in the Netherlands.

Steps involved

  1. Scan all the images using the entire length of your scanner. I use scantoimage.bash
  2. Confirm that there are no missing pages, and that every other page is upright and then upside down etc. If they are scan them and rename them so the name fits in between the pages
  3. Back up all the scanned images
  4. Manually crop the areas of the scans outside the area of the page. Usually this is on the side and bottom of the flat bed. Save is as something like ~/x.jpg
  5. Use GraphicsMagick Image Processing System to identify the dimensions of the cropped image.
    gm identify ~/x.jpg
    /home/me/x.jpg JPEG 2477x2609+0+0 DirectClass 8-bit 3.2Mi 0.000u 0m:0.000002s
  6. Crop all the images to that dimension
    gm mogrify -crop 2477x2609+0+0 *.jpg
  7. Rotate every second image by 180 degrees. rotate-every-second-image.bash
  8. Create a directory for the book and in there create a subdirectory for each section of the book. Manually copy all the images to the sub directory for that section.
  9. Then go to the root where there are no files only subdirs and run the command
    for i in *;do echo $i;gm convert "${i}/*.jpg" "${i}.pdf"; done

At the end you will have a pdf file for each section of the book.


Comments

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
Who is the host of this show?
What does HPR mean to you?