> For the complete documentation index, see [llms.txt](https://help.pixfizz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pixfizz.com/products-and-design/designs/how-to/build-a-photo-album-layouts.md).

# Build a Photo Album - Layouts

{% embed url="<https://www.loom.com/share/6baab4890c754b168b026873e8562b21?sid=65494b02-dabe-4276-93c2-33593d112f57>" %}

As referenced in the video above, here is the XML definition of the 30x30cm Photo Album

```xml
<definition pages="30" min="30" max="90" add="2" dpi="300" output="vector" minimum-dpi="100" trimbox="true">
    
    <layers>
        <layer name="trim-lines" visibility="fulfillment"/>
    </layers>

    <weight base="120" page="2" />
  
    <map name="binding">
        <val key="30..44">11</val>
        <val key="46..58">16</val>
        <val key="60..88">20</val>
        <val key="90">28</val>
    </map>
  
    <set count="false">
        <captions>
            <left>Back Cover</left> <right>Front Cover</right>
        </captions>
        <page type="cover" position="left-right" width="620" height="310" hinge="14" bleed="5" margin="5" snap="0,3,7">
            <filter type="binding" map="binding" />          
        </page>
    </set>

    <set>
        <captions>
            <left>Page {{n}}</left>
        </captions>  
        <page type="page1" bleed="5" width="310" height="310" />
    </set>
  
    <set grow="true">
        <captions>
            <left>Page {{n}}</left> <right>Page {{n}}</right>
        </captions>
        <page type="page2,page4,page6" bleed="5" width="310" height="310"/>
        <page type="page3,page5" bleed="5" width="310" height="310" />
    </set>

</definition>
```
