summaryrefslogtreecommitdiff
path: root/templates/fluid/fluid.xml
blob: ff4baee02785e4a4508847140468ef621560184b (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<design_setup version="2.0">

  <image_sizes>
    <size name="original">
      <landscape w="1423" h="800" />
      <portrait w="1000" h="1000" />
      <quality value="95" />
      <fallback size="preview" />
      <threshold no_resize="25" availability="155" quality="5" />
    </size>

    <size name="preview" tagname="preview">
      <landscape w="1067" h="600" />
      <portrait w="800" h="800" />
      <quality value="95" />
      <threshold no_resize="10" availability="10" quality="5" />
    </size>

    <size name="thumbnail" type="thumbnail" style="fixed">
      <crop w="495" h="330" />
      <quality value="70" />
    </size>

    <size name="hires">
      <landscape w="1897" h="1067" />
      <portrait w="1200" h="1200" />
      <quality value="95" />
      <fallback size="original" />
      <threshold no_resize="20" availability="20" quality="5" />
    </size>
  </image_sizes>

  <!--  Global HiDPI settings  -->
  <!--  For each defined image size new HiDPI image sizes will be generated
        automatically. Means the resulting HiDPI image files will have their own
        subdirectory and all existing template macros are available as well.
        The resulting image size name will be of format "SIZE_NAME_HIDPI_1.5X"
        where SIZE_NAME is name of the reference image size and "1.5X" is the
        particular size factor.  -->
  <hidpi enabled="yes">
    <!--  Specify requested size factors, separated by comma (typically '2x'
          or '1.5x, 2x').  -->
    <sizes>2x</sizes>
    <!--  Optionally allow upscaling. Represents a percentage how much smaller
          image can still be used for upscaling. Set to 0 to disable upscaling
          completely.  -->
    <threshold upscale="33" />
    <!--  Compression artifacts may be less noticeable since the actual pixel
          pitch is smaller. Lower the compression quality to save bandwidth.  -->
    <quality value="90" thumbnail="60" />
  </hidpi>

  <resize>
    <!--  Use this section to tweak resizing methods. For the moment ImageMagick
          is the only supported method, being used from the beginning of the project,
          however it offers nearly endless possibilities of image manipulation.  -->
    <ImageMagick>
      <!--  For ImageMagick method, the option string is automatically prepended
            with convert method name and input filename and appended with output
            filename. The option string should however contain ${WIDTH} and ${HEIGHT}
            arguments defining target dimensions. For the rest of arguments
            standard convert(1) command syntax is used.  -->
      <!--  In case an option string is empty, internal defaults are used.  -->
      <!--  Please see http://www.imagemagick.org/Usage/resize/#resize for resize
            modifiers (e.g. we use the '!' flag to correct off-by-one errors).  -->
      <resize_options>-set option:filter:blur 0.6 -filter Gaussian -resize ${WIDTH}x${HEIGHT}!</resize_options>
      <thumbnail_options>-set option:filter:blur 0.6 -filter Gaussian -thumbnail ${WIDTH}x${HEIGHT}!</thumbnail_options>
    </ImageMagick>
  </resize>

  <supplemental_files><![CDATA[
    styles.css
    fonts.css
    scripts.js
    emblems-readonly_120.png
  ]]></supplemental_files>


  <theme enabled="yes">
    <index>
      <template>template_index.html</template>
      <target_filename>index.html</target_filename>
      <thumbnail_size>thumbnail</thumbnail_size>
      <protected_thumbnail>emblems-readonly_120.png</protected_thumbnail>
    </index>

    <album>
      <template>template_album.html</template>
      <target_filename>index.html</target_filename>
      <picture_size>preview</picture_size>
    </album>

    <define name="BORDER_STYLE" value="border_single" />
  </theme>

</design_setup>