Page 2 of 2

Re: BNF higher resolution downloads ?

Posted: Wed Apr 30, 2014 6:22 am
by Makhtoot
Hello dear friend
I tried this script but i couldn't get any positive result from it, i think i did everything right but it gives me a strange error that i'll type in the following:

File "C:\Coran\getbnf_1.py", line 109
print ('ERROR: THERE\'S NO OUTPUT FILE!')
^
TabError: inconsistent use of tabs and spaces in indentation


I'll be much appreciated if you could help me out here.
best regards
MBM

Re: BNF higher resolution downloads ?

Posted: Mon Feb 02, 2015 7:13 pm
by Chrysogonus
This script also works on OS X Yosemite, using the included Python installation and ImageMagick installed via Homebrew. Many, many thanks for this! (I'm transcribing a manuscript from the BnF that can only be read if one turns up the brightness, and of course that isn't possible unless one can download the images.)

Re: BNF higher resolution downloads ?

Posted: Sat Nov 25, 2017 12:30 pm
by GeeJee
Sorry to reply to this old thread... :mrgreen:

I can't get this to work correctly. The script works and I do get a set of JPEG files, however, the bottom part of the page is missing.

It concerns this piece in Gallica:
http://gallica.bnf.fr/ark:/12148/bpt6k859488b

This is the command I used in python:
python getbnf.py -a "http://gallica.bnf.fr/proxy?method=R&ark=bpt6k859488b.f1&l=6&r=4352,5632,230,187" -p 4 -o gigout

The resulting JPEG is attached to this post.

Any help would be very much appreciated!

Re: BNF higher resolution downloads ?

Posted: Sat Nov 25, 2017 7:53 pm
by coulonnus

Re: BNF higher resolution downloads ?

Posted: Sat Nov 25, 2017 8:45 pm
by GeeJee
Excellent! Thank you so much! :D