Pass a barcode to the script and convert all TIFFs in the barcode-named directory into JPEG-compressed, IIIF-compatible Pyramid TIFFs for use with the Caltech Library DIBS.
The main script. Includes status file manipulation for DIBS, image conversion, IIIF manifest generation, and file upload to S3.
When staff start processing an item, DIBS writes a JSON object to the
{barcode}-initiated status file with the item's barcode, title,
author, edition, and year. The script uses these for the manifest, so
the viewer shows the same details as DIBS. If the file is missing, empty, or
not valid JSON, or lacks a title, the script writes a {barcode}-problem
file that says so.
AWS credentials and the S3 bucket's region (AWS_REGION) are required and
may be added in the settings.ini file.
A simple Bash script to check for initialized status files and begin processing any TIFFs in folders named with the barcode embedded in the status file name.
A logging handler to send messages to a Slack channel. Logging configuration is
saved in the settings.ini file. See example-settings.ini for details.
TODO: develop a general caltechlibrarylogger package to be used instead.
- A Slack API OAuth Token.
- A Slack channel where messages will be sent.