Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poster image #264

Merged
merged 2 commits into from
Dec 11, 2018
Merged

Poster image #264

merged 2 commits into from
Dec 11, 2018

Conversation

cjcolvar
Copy link
Member

@cjcolvar cjcolvar commented Dec 11, 2018

Fixes #255 and fixes #256.

This PR generates "poster" and "thumbnail" jpgs using the same method that hyrax generates a thumbnail for video files.

This is the quick first pass at doing this work that I think we will want to move over to ActiveEncode eventually. The code for this first pass is less than ideal from a cleanliness standpoint but it works. Other shortcomings is that hydra-derivatives doesn't currently give a way to specify the offset or the size to generate the still images so both the poster and thumbnail files are identical apart from their file names. The thumbnail is automatically indexed and appears in search results but the poster is not used at all yet. Both the thumbnail and poster will need to be added into the IIIF manifest (#262) which will require work in hyrax-iiif_av and iiif_manifest.

@samvera-labs/avalon

@cjcolvar cjcolvar merged commit 9693266 into master Dec 11, 2018
@cjcolvar cjcolvar deleted the poster_image branch December 11, 2018 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Poster Image Create Thumbnail Image
3 participants