- NEW - Zen Cart Integration
- What can I change? See Customization
- Adobe Illustrator Back-end Tool
Appendix A - File Formats
A.1 Saved Design Format
When a user saves a design it is saved into an XML file of the name designID.xml. Where designID is the saved design ID. This file is located within a direectory by the same name.
EXAMPLE: Design ID is ABC1234567890 will be saved as - saveddesignes/ABC1234567890/ABC1234567890.xml . Recall that this designID folder also contains any images and symbols used in the design.
A.1.1 XML Design File
The tables below show describe the parameters that are saved into the XML file. The design XML file contains all the information that is needed to reproduce a design. An example design is used to illustrate the parameters.
EXAMPLE:
Saved Thumbnail
The top of XML file contains the base information for the designs:
DESIGN INFO
<design>
<designid>GWT123912551557126</designid>
<designname>design example</designname>
<email>mbailly@orzelenterprises.com</email>
<producttype>Adult-SS</producttype>
<productcolor>Cactus Green</productcolor>
<productRGB>#939871</productRGB> This is the HEX code used for the design.
<productsize>XL</productsize>
<numlinesfront>3</numlinesfront>
<numlinesback>0</numlinesback>
Line Order and Layering:
The lines are listed in the order in which they were added to the design. The stack is -first on is furthest back on the stack (layers). So line ind="0" is behind line ind="1" if the have the same zIndex. A lower zIndex is further back in the stack.
| TAG | Object is Text | Object is Symbol | Object is Image |
| location | F = front, B=back | F = front, B=back | F = front, B=back |
| format | text | symbol | image |
| font | fontname | N/A | Cimage |
| fontColor | color of font | color of font | N/A |
| fontSize | size of font | size of symbol, relative to initial value of 100px | image file type |
| top | number of pixels from top edge of canvas | number of pixels from top | number of pixels from top |
| left | number of pixels from left edge of canvas | number of pixels from left edge of canvas | number of pixels from left edge of canvas |
| wimg | N/A | N/A | N/A |
| himg | N/A | N/A | N/A |
| zIndex | layer order (stack) | layer order (stack) | layer order (stack) |
| strokeWidth | width of the outline | N/A | N/A |
| strokeColor | color of the outline | N/A | N/A |
<lines>
<line ind="0">
<location>F</location>
<format>text</format>
<text>RANDOM TEXT</text>
<font>BadaBoom</font>
<fontColor>black</fontColor>
<fontSize>44</fontSize>
<top>95</top>
<left>75</left>
<wimg>200</wimg>
<himg>38</himg>
<zIndex>13</zIndex>
<strokeWidth>2</strokeWidth>
<strokeColor>yellow</strokeColor>
</line>
<line ind="1">
<location>F</location>
<format>symbol</format>
<text>no-smile-face1</text>
<font>NA</font>
<fontColor>yellow</fontColor>
<fontSize>175</fontSize>
<top>78</top>
<left>87</left>
<wimg>175</wimg>
<himg>178</himg>
<zIndex>12</zIndex>
</line>
<line ind="2">
<location>F</location>
<format>image</format>
<text>1</text>
<font>Cimage</font>
<fontColor>NA</fontColor>
<fontSize>.png</fontSize>
<top>205</top>
<left>129</left>
<wimg>91</wimg>
<himg>104</himg>
<zIndex>13</zIndex>
</line>
</lines>
</design>
