Artwork

Content provided by HPR Volunteer and Hacker Public Radio. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by HPR Volunteer and Hacker Public Radio or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!

HPR2430: Scanning books

 
Share
 

Manage episode 192225751 series 108988
Content provided by HPR Volunteer and Hacker Public Radio. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by HPR Volunteer and Hacker Public Radio or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.

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.

  continue reading

4105 episodes

Artwork

HPR2430: Scanning books

Hacker Public Radio

23 subscribers

published

iconShare
 
Manage episode 192225751 series 108988
Content provided by HPR Volunteer and Hacker Public Radio. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by HPR Volunteer and Hacker Public Radio or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.

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.

  continue reading

4105 episodes

All episodes

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Quick Reference Guide