Providing print files
To provide a print file to the API, specify a path on a webserver in the JSON node "file" within the "items" dictionary. We recommend to use an obfuscated path which also contains an authentication token or session ID to make sure the files cannot be accessed freely on the internet. Also, make sure to set the path where the files are stored on the server to "noindex, nofollow" in your "robots.txt", to make sure search engines do not try to index it.
The print file is downloaded as soon as the order is read into our system, but since processing is done asynchronously, we recommend to either calculate print files on demand by a server-side controller or, when you prepare them in advance, keep them on the server for a certain time to allow our systems to download and process them before you delete them from your server.
Print files can be provided in JPEG or PNG format. JPEG files are preferred for better compression, except when transparency is required (e.g. for the T-Shirt product). We recommend to provide RGB files, preferably with an sRGB or AdobeRGB color profile attached. Other color profiles and color spaces can be handled, but loss of print quality might result when the files are converted for the print process.
Resolution and aspect ratio
Files need to be provided in sufficient resolution and correct aspect ratio. Some sanity checks are done by our systems to protect against the most common usage errors, but generally, the customer is responsible to provide correct print files for the orders.
Please note that the resolution/dpi value saved in the files is ignored by the system since the files are automatically scaled to fit the product. Instead the size, i.e. the width and height in pixels, needs to be sufficient to fulfill the minimum resolution for the product. Please use the "products" API to retrieve the information about the minimum resolution for each product, as well as the aspect ratio your files should have.
Example: The Puzzle product has a minimum resolution of 72 dpi (dots per inch) and the variant "20x27 cm - 88 Pieces" has a print file size of 270x200 millimeters. The minimum size of the image in pixels is therefore 765x567 (270 / 25.4 * 72, 200 / 25.4 * 72), but you can improve print quality by providing a larger file, but must make sure that the aspect ratio (ratio between width and height) always matches a ratio of 27:20.
A notable exception to this rule is the "Canvas" product when used in conjunction with the FOLDED border effect. The FOLDED border effect allows the customer to specify the portion of the image which is wrapped around the stretcher frame of the Canvas. This means that in this case the print file must include an image border to wrap around the stretcher frame. The border must be 25mm for the 2cm stretcher frame and 45mm for the 4cm stretcher frame. So for example, for a 40x30cm canvas, when using a FOLDED border effect with a 2cm stretcher frame, the effective size of the print file must be 45x35cm, which changes the required aspect ratio from 4:3 to 9:7 (45:35) and also increases the minimum pixel size. But this is only required when using the FOLDED border effect, not when using one of the other border effects like STRETCHED or MIRRORED, since, when using the latter, the border is created by the system automatically.
The print file provided for the "Rug" product must include an image border of 30mm, which will later be trimmed in the production process. For example, for a 70x50 cm rug, the effective size of the print file must be 76x56 cm, which changes the required aspect ratio from 7:5 to 19:14 (76:56) and increases the minimum pixel size to 18 dpi (dots per inch).
Depending on the product, files above a certain resolution only increase the storage space and load on the systems, but do not improve print quality. For practically all products, files with a resolution larger than 300dpi do not make sense in practice.