You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Castro0o 3624b0fdd1 edited README 6 months ago
numbered-imgs numbered imgs for imposition dummy 2 years ago
.gitignore Added ignore for default wiki download folder 2 years ago
README.md edited README 6 months ago
imgs2pdf.sh imposition and wiki-download in da house 2 years ago
imposition.py Added default imgs folder for wiki download 2 years ago
pdf_cover.sh README updated 2 years ago
rotate.sh rotate script 2 years ago
wiki-download.py Fixed help message 2 years ago

README.md

Utility Scripts for scanning documents

See usage example in: http://pzwiki.wdka.nl/mediadesign/Autonomous_Archive/algorithm

Software dependencies:

Packages: pdftk, imagemagick Install in Debian/Ubuntu: apt-get install pdftk imagemagick

Install in Mac with brew (http://brew.sh/): brew install pdftk imagemagick

Python libraries: mwclient (version 0.8.6)

Install in Debian/Ubuntu w/ pip: sudo pip install ‘mwclient==0.8.6’

Scripts

wiki-download.py

Downloads media files from a wiki, according to a semantic ask query.

Usage: python wiki-download.py --help

python wiki-download.py -d imgs -a Modification_date::+

imposition.py

Converts 8 images (jpg or png) from a given directory, into a single sheet 4x2 imposition.

Usage: python wiki-download.py --help

python imposition.py --dir imgs/ --size a3 --pages 2 --order random

pdf_cover.sh

Converts first page of PDFs to a jpeg with the ending _cover.jpeg

Usage: ./pdf_cover.sh imgs-dir-name

Software dependencies: gs (ghostscript)

imgs2pdf.sh

Converts a directory of images onto a single PDF

Usage: ./imgs2pdf.sh imgs-dir-name pdf-filename

If no pdf-filename is provided, output.pdf will the default file name

rotate.sh

Rotates all images in one a directory a given number of degrees

Usage: ./rotate.sh imgs-dir-name rotation-in-degrees