-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yaml
121 lines (117 loc) · 3.45 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# This file contains the application defaults. Removing keys will cause errors.
# Place overrides in /etc/loris/config.yaml and/or ~/.loris/config.yaml
application:
max_area: 16000000
max_height: null
max_width: null
server_uri: http://localhost:5004
access-control-allow-origin: "*" # can be set to False, a URI, or "*"
access-control-max-age: 7200
cors_keep_alive_max: 100
cors_keep_alive_timeout: 2
sizes_and_tiles:
# These settings are regardless of configured compliance, i.e., features
# can be disabled and requests that match these criteria will work.
jp2:
encoded_only: False # Only report encoded tiles and scale factors
other_formats:
# For other formats, these settings determine the tiles, scale factors,
# and sizes that still be reported in info.json
enabled: True # Set to false to report nothing. Otherwise:
min_dimension: 80 # images scaled to, e.g., 2✕1 aren't useful
all_scale_factors: True # Include scaled sizes larger than the tile size?
tile_width: 1024 # At scale. At a scale factor of 1, tiles will be
tile_height: 1024 # 1024; scale factor of 2, 512; 4, 256; etc.
resolvers:
- class: loris.resolvers.file_system_resolver.FileSystemResolver
prefix: whatever
config:
root: /fill/me/in # REQUIRED
format_suffix: jp2 # Optional, default: null
cache: True # Optional, default: False
cache_root: /tmp/loris_tmp # Optional, only applies if cache: True
cache_size: 200 # Optional, only applies if cache: True
transcoders:
- class: loris.transcoders.openjpeg_jp2_transcoder.OpenJpegJp2Transcoder
bin: null # If lib or bin are null, Loris will try to use a local copy of
lib: null # OpenJpeg. Not all operating systems/processors may be supported.
src_format: jp2
- class: loris.transcoders.pillow_transcoder.PillowTranscoder
src_format: jpg
- class: loris.transcoders.pillow_transcoder.PillowTranscoder
src_format: tif
- class: loris.transcoders.pillow_transcoder.PillowTranscoder
src_format: png
logging:
disable_existing_loggers: False
formatters:
standard:
format: '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
handlers:
default:
class: logging.StreamHandler
formatter: standard
level: DEBUG
loggers:
loris:
handlers: [default]
level: DEBUG
propagate: False
version: 1
iiif_features:
# Loris will always be at least level 0 compliant. Manage additional
# features here.
formats:
png:
enabled: True
webp:
enabled: True
http:
baseUriRedirect:
enabled: True
canonicalLinkHeader:
enabled: True
cors:
enabled: True
jsonldMediaType:
enabled: True
profileLinkHeader:
enabled: True
quality:
bitonal:
enabled: True
color:
enabled: True
gray:
enabled: True
region:
regionByPct:
enabled: True
regionByPx:
enabled: True
regionSquare:
enabled: True
rotation:
color:
enabled: True
mirroring:
enabled: True
rotationArbitrary:
enabled: True
rotationBy90s:
enabled: True
size:
sizeUpscaling:
enabled: True
sizeByConfinedWh:
enabled: True
sizeByDistortedWh:
enabled: True
sizeByH:
enabled: True
sizeByPct:
enabled: True
sizeByW:
enabled: True
sizeByWh:
enabled: True