za3k / qr-backup

Paper backup of files using QR codes
Other
132 stars 12 forks source link

qr-backup --restore works but zbarimg method does not #53

Closed jrvarma closed 9 months ago

jrvarma commented 9 months ago

I created a backup with qr-backup and took photos of the two pages (1.jpg and 2.jpg).

qr-backup --restore *.jpg

works perfectly.

But the zbarimg method with the same two image files gives the error:

gzip: stdin: unexpected end of file

I am typing in the commands from the printed backup. Even the pdf file contains these commands as image and not as text, and so I am not able to do a cut-paste. Is there some documentation so that I can test the commands step by step.

I could verify that after the grep command, some lines like N05 are missing, but these are possibly the redundant QRs. I am not able to debug this further.

za3k commented 9 months ago

Thanks for the bug report.

Lines like N05 should not be missing after the grep command.

Could you provide (1) What you're typing to do the restore, (2) The full output of your backup command, with the qr-backup -v flag added, (3) an image of a scan or pdf including the instructions (cropped instructions is fine too)?

jrvarma commented 9 months ago

After you pointed out that lines like N05 should not be missing, I investigated the issue further by running zbarimg -vv on the image files. zbarimg reported data irrecoverable on a few of the QR codes and this must be what caused the missing lines. Missing lines will obviously cause gunizip to fail.

Since the problem seems to be with zbarimg and there is no problem with qr-backup --restore, I am closing the issue here.