Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markpbaggett/pyfedorathumbnails
Saves thumbnail datastreams for Fedora objects locally
https://github.com/markpbaggett/pyfedorathumbnails
Last synced: 13 days ago
JSON representation
Saves thumbnail datastreams for Fedora objects locally
- Host: GitHub
- URL: https://github.com/markpbaggett/pyfedorathumbnails
- Owner: markpbaggett
- Created: 2015-06-19T20:26:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-23T13:18:17.000Z (over 9 years ago)
- Last Synced: 2024-10-12T08:07:19.999Z (27 days ago)
- Language: Python
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
---
A simple application that pulls thumbnails based on the Fedora API. This assumes that the content model includes a thumbnail datastream called 'TN'. It also works with pulling images from a 'JPG' datastream.
The images are saved to directory called **temp**.
Depending on the instance, authentication may vary.
#### Options
**Required**:
* one of these two options:
* collection
* itemName**About**:
* **location**: the URL for the fedora server (defaults to UTK Libraries production server if not specified)
* **itemName**: the PID of an object
* **output**: the name of your output file (only works with itemName. defaults to output.jpeg)
* **collection**: the namespace of a collection
* **attempts**: the number of attempts to run against a collection (only works with collection--not itemName)
* **datastream**: defaults to thumbnail. specifying m will get a medium-size jpg instead#### Examples
**Single File**
* python thumbnails.py -i adams%3A95 -o mynewthumb.jpeg
**Collection**
* python thumbnails.py -c adams -a 200