Skip to main content

Simple API to replace URNs pointing to low reslotion images with URNs pointing to hi-res images.

Project description

FAL Small Images

This project attempts to find and fix low resolution images from the Fine Arts Library that found their way into JSTOR Forum.

Given a CSV file exported from JSTOR Forum, ImageFinder searches the Solr database at libsearch8elb-prod.lib.harvard.edu for higher resolution copies of the same images. If it finds them, it replaces the low resolution image URNs in the Filename column of the output CSV file. The input and output CSV files will have identical structures, and no data outside the Filename column will be changed in the output.

Status

You'll find a sample input file in the test/files directory which you can run with this command:

python main.py ./tests/files/images.csv output.csv

Requirements

  • Python 3+ (built with Python 3.13)
  • Access to the fal-small-images-gateway API server (which proxies requests to Solr)

Now run uv sync and you should be ready to go.

See .env.example for info about required env vars.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fal_small_images-0.2.0.tar.gz (32.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fal_small_images-0.2.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file fal_small_images-0.2.0.tar.gz.

File metadata

  • Download URL: fal_small_images-0.2.0.tar.gz
  • Upload date:
  • Size: 32.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.5

File hashes

Hashes for fal_small_images-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b75c6baeab792fa64474fff9a2a37b77e868e19f5a1c631496c0ce17ee040794
MD5 85db144e843e567cfb68166d279d0d79
BLAKE2b-256 81f90e3c8791c01f8b341a31af2a35fe66f672151ad13bfae5b555ef398edc9c

See more details on using hashes here.

File details

Details for the file fal_small_images-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fal_small_images-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 744de738a9e240f6c570566ac945251052c660df99c0a6122c03d0aa8a8b7b10
MD5 57fb22f6a89e1651aa564b5a4dc9a1fb
BLAKE2b-256 60c27910c3c64e5d880863c3aebee4117616fd322c9be59b735121fc4ba4addd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page