Print files

Providing print files

To provide a print file to the API, provide a file path on a web server in the JSON node "file" within the "items" dictionary. We recommend using 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.

Example: https://www.example.com/download_print_data/12345/6789?token=XJRHAZQU76AU41KJNIHV1MQJ

The print file is downloaded as soon as the order is read into our system, but since processing/downloading can take some time, we recommend to either calculate print files on demand by a server-side controller or, when you prepare them in advance, store them on the server for a certain period to allow our systems to download and process them before you delete them from your server.

File format

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

Print files must be provided with sufficient resolution and the 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.

Exemple: 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. Still, you must make sure that the aspect ratio (the 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 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. 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. This changes the required aspect ratio from 4:3 to 9:7 (45:35) and also increases the minimum pixel size. However, this is only required when using the FOLDED border effect, not when using one of the other border effects like STRETCHED or MIRRORED since the latter creates the border 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. This 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 storage space and system load but do not improve print quality. For almost all products, files with a resolution larger than 300dpi do not make sense in practice.

Last updated