Giter Club home page Giter Club logo

paperify's Introduction

Paperify

Main CI

Use QR codes to backup your data on papers. Simply backup your files, print them and store them in a safe place.

Printable version of paperify

Paperify

You can print the image above and include them in your backups so you would have a copy of paperify with them. :)

Requirements

Make sure you have these binaries installed on your system.

  • qrencode (qrencode)
  • convert (imagemagick)
  • zbarimg (zbar >= 0.23.1) only for decoding with digitallify.sh

Zbar: Binary support is just added in zbar 0.23.1 and not supported in earlier versions. Please verify that your zbar version is higher or equal to 0.23.1. You can do that by running

zbarimg --version
0.23.1

You can download and build zbar from github.com/mchehab/zbar/. Note that zbar is not required for paperify.sh It is only required for digitallify.sh decoding.

Mac OS X

To install the requirements you can use Homebrew.

brew install coreutils qrencode zbar

Installation

These are just bash scripts. There is no need to install them.

You can either use git to clone this repo or download it in zip.

git clone https://github.com/alisinabh/paperify.git && cd paperify
# --- OR ---
wget https://github.com/alisinabh/paperify/archive/master.zip -O paperify.zip && \
     unzip paperify.zip && cd paperify-master

Or you can use paperify's Docker image at alisinabh/paperify. More details below.

Usage

# Creates FILE-qr directory with generated qr codes inside.
# Then you can print those files and store them.
./paperify.sh FILE


# Reads all files inside the DIRECTORY which you have all your
# scanned pages inside. Make sure the file namings are correct 
./digitalify.sh OUTPUT_FILE DIRECTORY

Use with Docker

You can mount your files at /target in paperify's docker container. Then run paperify.

For simplicity, You can just copy the bellow commands which will mount your current directory automatically.

# To Paperify
# FIRST: cd into the folder that your file is in
docker run -v$(pwd):/target alisinabh/paperify FILE

# To Digitallify
# First cd into the folder that your scanned images are in
docker run -v$(pwd):/target --entrypoint=/paperify/digitallify.sh alisinabh/paperify OUTPUT_FILE .

Recommendations

Multiple files

Use tarballs and gzip to store and compress your data.

tar cvfz files.tgz file1.txt file2.txt

Encryption

To protect your data you can encrypt them using gpg (GnuPG).

gpg --symmetric file.txt

Then use file.txt.gpg in paperify.

License

Paperify is licensed in GPL-3.0

Read more in LICENSE

paperify's People

Contributors

alisinabh avatar hexahigh avatar jess-sys avatar lwd-temp avatar mavnt avatar turbor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

paperify's Issues

./digitallify.sh: line 33: $outputfile: ambiguous redirect

Hi,

When I use the following command I get the error below:

Using the latest download from master branch.
zbar version 0.23.90

./digitallify.sh out.txt CODE_OF_CONDUCT
reconstructing CODE_OF_CONDUCT.md-000.png
WARNING: decoder/databar.c:1248: _zbar_decode_databar: Assertion "seg->finder >= 0" failed.
	i=2 f=-1(000) part=1
WARNING: decoder/databar.c:1248: _zbar_decode_databar: Assertion "seg->finder >= 0" failed.
	i=3 f=-1(000) part=1
reconstructing CODE_OF_CONDUCT.md-001.png
WARNING: decoder/databar.c:1248: _zbar_decode_databar: Assertion "seg->finder >= 0" failed.
	i=2 f=-1(000) part=1
WARNING: decoder/databar.c:1248: _zbar_decode_databar: Assertion "seg->finder >= 0" failed.
	i=3 f=-1(000) part=1
000-CODE_OF_CONDUCT.md-000.chunk 001-CODE_OF_CONDUCT.md-001.chunk
./digitallify.sh: line 33: $outputfile: ambiguous redirect

CODE_OF_CONDUCT md-000
CODE_OF_CONDUCT md-001

Warning with `digitallify.sh` and Docker

Hello,

I think we should suppress stderr of zbarimg. I get the following:

...
reconstructing LICENSE-001.png
Connection Error (Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory)
Connection Null
...

Thoughts?

Script for installation of dependencies

It would be awesome if there would be a script helping installation of the following dependencies:

  • qrencode
  • imagemagick
  • zbar
  • Maybe a default font

This script should be able to determine OS type and install the packages preferably using a package manager (like apt, pacman or homebrew).

For the installation of zbar, this script should check for minimum required version because many package sources still use old versions of zbar (especially in Ubuntu and Debian sources)

Syntax Error

Upon trying to encode a file I got this error:

image

Font too big while using Docker

Hello,

pretty much the title:
immagine

Maybe set pointsize as an environment variable? It may have something to do with the font as well.

๐Ÿ‘‹ ๐Ÿ‘‹ ๐Ÿ‘‹

What about adding gzip?

First of all, really nice idea ๐Ÿ˜„ .

So, since we're printing binary data, what about piping into gzip before splitting the file and after joining it?
I gave it a try and I don't see any issues with it.

๐Ÿ‘‹ ๐Ÿ‘‹ ๐Ÿ‘‹

Check zbar version in digitallify.sh

If zbar version is lower than 0.23.1 (Minimum required for binary QRCodes) the digitallify.sh should show an error and exit with a non-zero exit-code.

Possibly even showing a help message on where to download zbar.

Error in digitalify, invalid configuration setting: binary

when running digitialify i encouter this error:

heres a full log of what i did

root@DESKTOP-0FHKGRJ:/mnt/c/Users/jackr/Downloads/paperify-master (1)/paperify-master# ./digitallify.sh NewConsoleApp2.exe ConsoleApp2.exe-qr
reconstructing 000-ConsoleApp2.exe-000.chunk
ERROR: invalid configuration setting: binary

usage: zbarimg [options] <image>...

scan and decode bar codes from one or more image files

options:
    -h, --help      display this help text
    --version       display version information and exit
    -q, --quiet     minimal output, only print decoded symbol data
    -v, --verbose   increase debug output level
    --verbose=N     set specific debug output level
    --nodbus        disable dbus message
    -d, --display   enable display of following images to the screen
    -D, --nodisplay disable display of following images (default)
    --xml, --noxml  enable/disable XML output format
    --raw           output decoded symbol data without symbology prefix
    -S<CONFIG>[=<VALUE>], --set <CONFIG>[=<VALUE>]
                    set decoder/scanner <CONFIG> to <VALUE> (or 1)

reconstructing 001-ConsoleApp2.exe-001.chunk
ERROR: invalid configuration setting: binary

usage: zbarimg [options] <image>...

scan and decode bar codes from one or more image files

options:
    -h, --help      display this help text
    --version       display version information and exit
    -q, --quiet     minimal output, only print decoded symbol data
    -v, --verbose   increase debug output level
    --verbose=N     set specific debug output level
    --nodbus        disable dbus message
    -d, --display   enable display of following images to the screen
    -D, --nodisplay disable display of following images (default)
    --xml, --noxml  enable/disable XML output format
    --raw           output decoded symbol data without symbology prefix
    -S<CONFIG>[=<VALUE>], --set <CONFIG>[=<VALUE>]
                    set decoder/scanner <CONFIG> to <VALUE> (or 1)

reconstructing ConsoleApp2.exe-000.png
ERROR: invalid configuration setting: binary

usage: zbarimg [options] <image>...

scan and decode bar codes from one or more image files

options:
    -h, --help      display this help text
    --version       display version information and exit
    -q, --quiet     minimal output, only print decoded symbol data
    -v, --verbose   increase debug output level
    --verbose=N     set specific debug output level
    --nodbus        disable dbus message
    -d, --display   enable display of following images to the screen
    -D, --nodisplay disable display of following images (default)
    --xml, --noxml  enable/disable XML output format
    --raw           output decoded symbol data without symbology prefix
    -S<CONFIG>[=<VALUE>], --set <CONFIG>[=<VALUE>]
                    set decoder/scanner <CONFIG> to <VALUE> (or 1)

reconstructing ConsoleApp2.exe-001.png
ERROR: invalid configuration setting: binary

usage: zbarimg [options] <image>...

scan and decode bar codes from one or more image files

options:
    -h, --help      display this help text
    --version       display version information and exit
    -q, --quiet     minimal output, only print decoded symbol data
    -v, --verbose   increase debug output level
    --verbose=N     set specific debug output level
    --nodbus        disable dbus message
    -d, --display   enable display of following images to the screen
    -D, --nodisplay disable display of following images (default)
    --xml, --noxml  enable/disable XML output format
    --raw           output decoded symbol data without symbology prefix
    -S<CONFIG>[=<VALUE>], --set <CONFIG>[=<VALUE>]
                    set decoder/scanner <CONFIG> to <VALUE> (or 1)

./digitallify.sh: line 32: cd: too many arguments

Can't paperify/digitallify file with space

Files with spaces count as if they are another file.

user@debian/d/shm> paperify a\ a
/home/user/.local/bin/paperify: line 6: [: too many arguments
/home/user/.local/bin/paperify: line 9: [: too many arguments
Paperifying a a
rm: cannot remove 'a': Is a directory

Too many files

There is like 100 image files now. How can I make it one?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.