Puppet Class: role::vipsscaler

Defined in:
puppet/modules/role/manifests/vipsscaler.pp

Overview



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
# File 'puppet/modules/role/manifests/vipsscaler.pp', line 5

class role::vipsscaler {
    require_package('libvips-tools')

    mediawiki::extension { 'VipsScaler':
        settings => {
            wgVipsOptions    => [
                {
                    conditions => {
                        mimeType => 'image/png',
                        minArea  => 20000000,
                    },
                },
                {
                    conditions => {
                        mimeType        => 'image/tiff',
                        minShrinkFactor => 1.2,
                        minArea         => 50000000,
                    },
                    sharpen    => {
                        sigma => 0.8,
                    },
                },
            ],
            wgMaxShellMemory => 1048576,
            wgMaxShellTime   => 50,
        },
    }
}