Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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