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

Page imagederivatives #39

Merged
merged 33 commits into from
Jul 25, 2018
Merged

Page imagederivatives #39

merged 33 commits into from
Jul 25, 2018

Conversation

seanupton
Copy link
Collaborator

Here is PR for derivatives. The testing should be relatively comprehensive for all the plugins (JP2, TIFF, PDF).

I may need to add some additional notes to README, so that would be something to discuss before merge.

Also: quick note, Hyrax does not easily support JP2 master/source files OOTB on Ubuntu, since it uses ImageMagick exclusively for hydra-derivatives, and ImageMagick on Ubuntu does not support JP2 decoding. JP2 file upload breaks thumbnail creation OOTB on Ubuntu. This may be a reason to (eventually, sooner or later) make our own thumbnail maker to replace what Hyrax does OOTB (one that falls back to graphicsmagick, so we can support JP2 masters without telling consumers of newspaper_works to build their own ImageMagick from source). I may add a ticket for this later this week, as a backlog item.

Hyrax::DerivativeService only runs the first derivative service class
whose instance is valid for the given file set.  We would rather have
the ability to run multiple derivative pipelines.  Keeping to the same
method interface contract as Hyrax::DerivativeService, we could have
one "plugin" be a composed runner of other derivative service plugins,
running each in order, not just the first valid plugin.
sha1 validation now.

Run `bundle update` to upgrade your solr_wrapper.
Includes moving command constants from module to class, and making some
some statements more compact in method defintions.
Do not use static counts in matcher for registered plugin count, and do
not presume exact set of registered plugins.
Premise: no unnecessary upsampling, smaller file sizes.
ImageMagick `identify` on Ubuntu 14.04 does not indicated presense of
any color space such as "sRGB" or "CMYK", so we have to detect color as
absense of Gray or bilevel/one-bit to make
`NewspaperPageDerviativeService.use_color?` method work and pass on
Travis CI.
@ebenenglish ebenenglish merged commit 7bb790a into master Jul 25, 2018
@ebenenglish ebenenglish deleted the page-imagederivatives branch October 9, 2019 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants