High-res images from Gallica

Gallica is the digital branch of the French National Library. It hosts the scans of a lot of rare old books, as well as of unique manuscripts. Many precious direct HEMA sources can be found there, for example:

It also gives access to a wealth of secondary sources.

Gallica has a specificity which can be a bit of a bother. If you use the zoom tool, you can see a lot of details, but when you try to save a particular page, your choice is between a (relatively) low-resolution export, or a high-resolution portion of the page. There just isn’t an apparent way to save the full high-resolution scan of a page. Obviously neither option really cut it if what you need is the actual full-resolution scan, for example to do a nice print or for further off-line study.

However, there is a way to get around that issue and access the full scan. Gallica implements the IIIF (International Image Interoperability Framework) interface. With a bit of URL trickery, this can solve the problem.

Let’s say you want to get that nice Lovino plate. If you look in the address bar of your browser, you will see this URL:

https://gallica.bnf.fr/ark:/12148/btv1b525110413/f31.item

Now let us modify this URL like so. First remove the .item part to keep only the folio (on some documents or viewing modes, you might have to remove more, or different words; what you really need is to trim it down to the page ‘name’):

https://gallica.bnf.fr/ark:/12148/btv1b525110413/f31.item

And then add a few parts:

https://gallica.bnf.fr/iiif/ark:/12148/btv1b525110413/f31/full/full/0/native.jpg

The iiif means we want to access Gallica’s IIIF service, the first full means to get the full page, the second full means to get the full resolution, the 0 means no rotation, and finally native.jpg asks for the original quality in JPEG format.

This should give you access to the full-resolution color scan in all its glory! As you can see below, it is significantly better than the default Gallica export, which more or less corresponds to that IIIF request instead (even worse because they seem to do some color processing on top of it).

A detail of folio 31 in Lovino. On the left, the page saved via Gallica’s standard interface, on the right, the full resolution.

It might seem like a bit of a hack to use such a trick, but rest assured that it is perfectly within the bounds of the normal use of the service. It is even officially documented. However, be sure to comply still with the terms of use of the document, and perhaps limit such accesses to the minimum needed to avoid overloading the servers with data.

Gallica is not the only digital library with IIIF access, here are some more examples. Presumably you could apply the same sort of trick to get full-resolution scans there too, if their public interface has the same limitations as Gallica.

2 thoughts on “High-res images from Gallica

  1. This works like magic and is effective for other sites as well! But I also need to download from bibliotheques-specialisees.paris.fr and I can’t speak French and there’s no such addresses. What should I do with URLs?
    They have URLs like them:
    bibliotheques-specialisees.paris.fr/in/dz/cbe/8aa/e4f/BHVP_LI_Calligraphie_026_0011_files/7/0_0.jpg
    bibliotheques-specialisees.paris.fr/in/dz/thumb/256/895/6e5/195/BHVP_LI_Calligraphie_026_0003.jpg
    Thanks in advance!

    • Hello David,
      I’m afraid I’m not familiar with this website, and so I don’t know what manipulation might give you the same results there… Hopefully there is some way!

Leave a Reply

Your email address will not be published.