Title: | 'BnF Image API' Client |
---|---|
Description: | Provides an R client for the image API of 'Bibliothèque Nationale de France' (BnF, National Library of France) <https://api.bnf.fr/api-iiif-de-recuperation-des-images-de-gallica#/>. |
Authors: | Matthias Grenié [aut, cre] |
Maintainer: | Matthias Grenié <[email protected]> |
License: | GPL-3 |
Version: | 0.1.0 |
Built: | 2024-10-25 02:44:35 UTC |
Source: | https://github.com/Rekyt/bnfimage |
This function queries both data and associated metadata from a BNF image using specified parameters and return the information in a tidy data.frame
bi_all_data( identifier = NULL, region = c(0L, 0L, 500L, 500L), size = "full", rotation = 0, quality = c("native", "color", "gray", "bitonal"), format = c("jpg", "tif", "png", "gif", "jp2", "pdf") )
bi_all_data( identifier = NULL, region = c(0L, 0L, 500L, 500L), size = "full", rotation = 0, quality = c("native", "color", "gray", "bitonal"), format = c("jpg", "tif", "png", "gif", "jp2", "pdf") )
identifier |
[ |
region |
[ |
size |
[ |
rotation |
[ |
quality |
[
|
format |
[
|
a tibble with both the image and the metadata, with one row per identifier
Retrieve image from BNF
bi_image( identifier = NULL, region = c(0L, 0L, 500L, 500L), size = "full", rotation = 0, quality = c("native", "color", "gray", "bitonal"), format = c("jpg", "tif", "png", "gif", "jp2", "pdf") )
bi_image( identifier = NULL, region = c(0L, 0L, 500L, 500L), size = "full", rotation = 0, quality = c("native", "color", "gray", "bitonal"), format = c("jpg", "tif", "png", "gif", "jp2", "pdf") )
identifier |
[ |
region |
[ |
size |
[ |
rotation |
[ |
quality |
[
|
format |
[
|
By default bnfimage
implements rate limitation through the
ratelimitr
package.
The query are limited to a maximum of 1 every 3 seconds to avoid being
blocked by the BnF server. This is the limit at which the BnF server
considers the queries to be malicious. For the moment this limitation
cannot be lifted.
a matrix of the image
Retrieve BnF image metadata
bi_metadata(identifier = NULL)
bi_metadata(identifier = NULL)
identifier |
[ |
By default bnfimage
implements rate limitation through the
ratelimitr
package.
The query are limited to a maximum of 1 every 3 seconds to avoid being
blocked by the BnF server. This is the limit at which the BnF server
considers the queries to be malicious. For the moment this limitation
cannot be lifted.
A nested list which contains the metadata of a single element. The list is for now not formatted and provide the full metadata returned by the API.