hydra-derivatives 3.6.0 → 3.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 124f992a28f2883d1c8d762ae0232957645923e145c48ec75bfe33280f0683ab
4
- data.tar.gz: 02336f270677e9e55e768c8c03bf71afc62fb759c5f48ee7eaddc1033345e07f
3
+ metadata.gz: 506f0f1154a7b2ec1e3af2d55ad7b1a20687c9061303339928e87b42c71d7dd8
4
+ data.tar.gz: 5af2d8d9e93cc8d8f12d5e5726775721332e0bcb568017b0c486f94c8160bee7
5
5
  SHA512:
6
- metadata.gz: 675ccaa54a34cdf812c295d9e937a29041053526f69a8eb7d68c6b162939cbc0a1e973c4b8176274af9fbbc1e45fd804121d7fffa860a0958ede78d47d454057
7
- data.tar.gz: 49815c8d5efe8fb0d5eb8aa83fbec991e4bc86454087b773c2a4556a7028680a4d6a0bafd568a4af1a81bb9dded89bc703d99161eafe97940706e94321c3ca47
6
+ metadata.gz: 5614a1fb4662d0bac907f0302f811d1850f98a98ade8e70b3bc3377fd2adce97112f6e24bf35d0a017689742b9eccca5276b82300529ddc4d1023fd787ab7fb9
7
+ data.tar.gz: 43d0a1555fe82600b663cc8b07b3dbc8d8d6e7743b964d31e3a50b1858006870e4076e57d9399855f1eaf95ca729bf41007eac74ca1fe3487809eae841220f33
data/.circleci/config.yml CHANGED
@@ -1,46 +1,43 @@
1
1
  version: 2.1
2
2
  orbs:
3
- samvera: samvera/circleci-orb@0
3
+ samvera: samvera/circleci-orb@1.0
4
4
  jobs:
5
5
  bundle_lint_test:
6
6
  parameters:
7
7
  ruby_version:
8
8
  type: string
9
- project:
10
- type: string
11
9
  bundler_version:
12
10
  type: string
13
11
  default: 2.1.4
14
12
  executor:
15
13
  name: 'samvera/ruby_fcrepo_solr'
16
14
  ruby_version: << parameters.ruby_version >>
15
+ solr_version: 7-slim
17
16
  steps:
18
17
  - samvera/cached_checkout
19
18
  - run:
20
19
  name: Install dependencies
21
20
  command: |
22
21
  sudo apt-get update
23
- sudo apt-get install ghostscript ufraw-batch libpng-dev imagemagick ffmpeg libreoffice
22
+ sudo apt-get install ghostscript libpng-dev imagemagick ffmpeg libreoffice dcraw
23
+ - setup_remote_docker
24
24
  - run:
25
25
  name: Install Kakadu
26
26
  command: |
27
- if [ ! -d "kakadu" ]; then
28
- mkdir ~/downloads
29
- wget http://kakadusoftware.com/wp-content/uploads/2014/06/KDU77_Demo_Apps_for_Linux-x86-64_150710.zip -O ~/downloads/kakadu.zip
30
- unzip ~/downloads/kakadu.zip
31
- mv KDU77_Demo_Apps_for_Linux-x86-64_150710 kakadu
32
- fi
27
+ docker create --name kakadu josejuansanchez/kakadu:1.0
28
+ docker cp kakadu:/kakadu kakadu
33
29
  sudo cp kakadu/*.so /usr/lib
34
30
  sudo cp kakadu/* /usr/bin
35
31
  - run:
36
32
  name: Modify ImageMagick security policy
37
33
  command: sudo sed -i 's/policy domain="coder" rights="none" pattern="PDF"/policy domain="coder" rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml
34
+ - run:
35
+ name: Modify ImageMagick delegate for raw files
36
+ command: sudo sed -i 's/decode="dng:decode" command=".*"\/>$/decode="dng:decode" command="\&quot\;dcraw\&quot\; -c -q 3 -H 5 -w \&quot\;\%i\&quot\; \| \&quot\;convert\&quot\; - \&quot\;\%u\.png\&quot\;"\/>/' /etc/ImageMagick-6/delegates.xml
38
37
 
39
- - samvera/bundle_for_gem:
38
+ - samvera/bundle:
40
39
  ruby_version: << parameters.ruby_version >>
41
40
  bundler_version: << parameters.bundler_version >>
42
- project: << parameters.project >>
43
- cache_version: '2'
44
41
 
45
42
  - samvera/install_solr_core
46
43
 
@@ -51,19 +48,12 @@ jobs:
51
48
  workflows:
52
49
  ci:
53
50
  jobs:
54
- - bundle_lint_test:
55
- name: ruby2-4
56
- ruby_version: 2.4.10
57
- project: hydra-derivatives
58
51
  - bundle_lint_test:
59
52
  name: ruby2-5
60
- ruby_version: 2.5.8
61
- project: hydra-derivatives
53
+ ruby_version: 2.5.9
62
54
  - bundle_lint_test:
63
55
  name: ruby2-6
64
- ruby_version: 2.6.6
65
- project: hydra-derivatives
56
+ ruby_version: 2.6.9
66
57
  - bundle_lint_test:
67
58
  name: ruby2-7
68
- ruby_version: 2.7.1
69
- project: hydra-derivatives
59
+ ruby_version: 2.7.5
data/README.md CHANGED
@@ -165,7 +165,7 @@ Just add `gem 'hydra-derivatives'` to your Gemfile.
165
165
  * [GhostScript](https://www.ghostscript.com/)
166
166
  * [ImageMagick](http://www.imagemagick.org/)
167
167
  * Kakadu's [kdu_compress](http://www.kakadusoftware.com/) (optional)
168
- * [ufraw](http://ufraw.sourceforge.net/)
168
+ * [ufraw](http://ufraw.sourceforge.net/) or [dcraw](https://dechifro.org/dcraw/)
169
169
 
170
170
  To enable LibreOffice, FFMpeg, ImageMagick, FITS support, and kdu_compress support, make sure they are on your path. Most people will put that in their .bash_profile or somewhere similar.
171
171
 
@@ -232,6 +232,12 @@ Instead, each directive may contain these arguments:
232
232
  * On a mac, `brew install ghostscript`
233
233
  * ufraw
234
234
  * On a mac, `brew install ufraw`
235
+ * dcraw (ufraw alternative)
236
+ * On a mac, `brew install dcraw`
237
+ * You will need to modify ImageMagick's delegate for dng files in order to use dcraw.
238
+ * First find where the deletegates.xml file is located: `identify -list delegate | grep Path`
239
+ * Edit the delegates.xml file by replacing the dng:decode delegate line with the following:
240
+ ```<delegate decode="dng:decode" command="&quot;dcraw&quot; -c -q 3 -H 5 -w &quot;%i&quot; | &quot;convert&quot; - &quot;%u.png&quot;"/>```
235
241
  * libvpx
236
242
  * On a mac, `brew install libvpx`
237
243
  * ffmpeg
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.6.0
1
+ 3.6.1
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
26
26
  '!= 12.0.0', '!= 12.0.1', '!= 12.0.2', '!= 12.0.3', '!= 12.1.0', '!= 12.1.1', '!= 12.2.0', '!= 12.2.1',
27
27
  '!= 13.0.0', '!= 13.1.0', '!= 13.1.1', '!= 13.1.2', '!= 13.1.3', '!= 13.2.0', '!= 13.2.1'
28
28
  spec.add_dependency 'active_encode', '~>0.1'
29
+ spec.add_dependency 'activemodel', '< 6.1'
29
30
  spec.add_dependency 'activesupport', '>= 4.0', '< 7'
30
31
  spec.add_dependency 'addressable', '~> 2.5'
31
32
  spec.add_dependency 'deprecation'
@@ -21,8 +21,10 @@ module Hydra::Derivatives::Processors
21
21
  def create_resized_image
22
22
  create_image do |xfrm|
23
23
  if size
24
- xfrm.flatten
25
- xfrm.resize(size)
24
+ xfrm.combine_options do |i|
25
+ i.flatten
26
+ i.resize(size)
27
+ end
26
28
  end
27
29
  end
28
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-derivatives
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-18 00:00:00.000000000 Z
11
+ date: 2022-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -232,6 +232,20 @@ dependencies:
232
232
  - - "~>"
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0.1'
235
+ - !ruby/object:Gem::Dependency
236
+ name: activemodel
237
+ requirement: !ruby/object:Gem::Requirement
238
+ requirements:
239
+ - - "<"
240
+ - !ruby/object:Gem::Version
241
+ version: '6.1'
242
+ type: :runtime
243
+ prerelease: false
244
+ version_requirements: !ruby/object:Gem::Requirement
245
+ requirements:
246
+ - - "<"
247
+ - !ruby/object:Gem::Version
248
+ version: '6.1'
235
249
  - !ruby/object:Gem::Dependency
236
250
  name: activesupport
237
251
  requirement: !ruby/object:Gem::Requirement
@@ -422,7 +436,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
422
436
  - !ruby/object:Gem::Version
423
437
  version: '0'
424
438
  requirements: []
425
- rubygems_version: 3.1.2
439
+ rubygems_version: 3.1.6
426
440
  signing_key:
427
441
  specification_version: 4
428
442
  summary: Derivative generation plugin for hydra