Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Derviatives #22

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions config/install/context.context.tiff_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
uuid: 8172ac2f-9106-4f3a-a1ce-542c8a16fd4d
langcode: en
status: true
dependencies:
module:
- islandora
enforced:
module:
- islandora_image
name: tiff_image
label: 'Tiff Image'
group: Islandora
description: 'Reactions for Tiff Images'
requireAllConditions: false
disabled: false
conditions:
is_referenced_media:
id: is_referenced_media
field: islandora_image|field_tiff
negate: 0
uuid: f1eafb7d-4f08-4908-99c6-d0bf9499bd25
context_mapping:
media: '@islandora.media_route_context_provider:media'
reactions:
derivative:
id: derivative
actions:
generate_a_web_image_from_a_tiff: generate_a_web_image_from_a_tiff
saved: false
weight: 0
30 changes: 30 additions & 0 deletions config/install/context.context.web_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
uuid: d7befc63-71cd-4974-a9a8-661c84a6b962
langcode: en
status: true
dependencies:
module:
- islandora
enforced:
module:
- islandora_image
name: web_image
label: 'Web Image'
group: Islandora
description: 'Reactions for Web Images'
requireAllConditions: false
disabled: false
conditions:
is_referenced_media:
id: is_referenced_media
field: islandora_image|field_web_content
negate: 0
uuid: 2efc9e63-1650-487d-af71-4bab234aa971
context_mapping:
media: '@islandora.media_route_context_provider:media'
reactions:
derivative:
id: derivative
actions:
generate_a_thumbnail_from_a_web_image: generate_a_thumbnail_from_a_web_image
saved: false
weight: 2
4 changes: 2 additions & 2 deletions config/install/media_entity.bundle.image_tiff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ dependencies:
module:
- media_entity_image
_core:
default_config_hash: fi5draAS7BCkytyHpaeYa-daLPsuKPstOA0qVohDVcI
default_config_hash: xYLwsfDi0VZuixIK_k-w8y7hoRSS3S3gkZplXHHcWYY
id: image_tiff
label: 'Tiff image'
description: 'Preservation master file for an Islandora Image'
type: image
queue_thumbnail_downloads: false
new_revision: false
type_configuration:
source_field: field_image
source_field: field_file
gather_exif: false
field_map: { }
10 changes: 7 additions & 3 deletions config/install/media_entity.bundle.jp2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ dependencies:
enforced:
module:
- islandora_image
module:
- media_entity_image
_core:
default_config_hash: EGGUWkUHg58NLhG5q1lIo8TsZhrU4PMYW9KoGAqPAzY
default_config_hash: iypCon-6qIVQAQncmw_EpG9FpBUL5WJVuwrQ5Nq0z2U
id: jp2
label: JP2
description: 'JPEG2000 service file'
type: generic
type: image
queue_thumbnail_downloads: false
new_revision: false
type_configuration: { }
type_configuration:
source_field: field_file
gather_exif: false
field_map: { }
5 changes: 0 additions & 5 deletions config/install/node.type.islandora_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ dependencies:
enforced:
module:
- islandora_image
third_party_settings:
menu_ui:
available_menus:
- main
parent: 'main:'
name: 'Islandora Image'
type: islandora_image
description: 'Models images in Islandora'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 6b734e72-3de9-4c55-86a2-4ec161b06df4
langcode: en
status: true
dependencies:
module:
- islandora_image
enforced:
module:
- islandora_image
id: generate_a_thumbnail_from_a_web_image
label: 'Generate a Thumbnail from a Web Image'
type: node
plugin: generate_image_derivative
configuration:
queue: islandora-connector-houdini
event: 'Generate Derivative'
source: field_web_content
destination: field_tn
bundle: tn
mimetype: image/png
args: '-thumbnail 100x100'
21 changes: 21 additions & 0 deletions config/install/system.action.generate_a_web_image_from_a_tiff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 211bc552-7592-4633-bbef-d682e190f6fa
langcode: en
status: true
dependencies:
module:
- islandora_image
enforced:
module:
- islandora_image
id: generate_a_web_image_from_a_tiff
label: 'Generate a Web Image from a Tiff'
type: node
plugin: generate_image_derivative
configuration:
queue: islandora-connector-houdini
event: 'Generate Derivative'
source: field_tiff
destination: field_web_content
bundle: web_content
mimetype: image/jpeg
args: ''
25 changes: 25 additions & 0 deletions config/schema/islandora_image.schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
action.configuration.generate_image_derivative:
type: mapping
label: 'Generate an image derivative...'
mapping:
queue:
type: text
label: 'Queue'
event:
type: text
label: 'Event Type'
source:
type: text
label: 'Source field'
destination:
type: text
label: 'Destination field'
bundle:
type: text
label: 'Media Bundle'
mimetype:
type: text
label: 'Image Mimetype'
args:
type: text
label: 'Convert Arguments'
Loading