merkalt:label_image_render
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| merkalt:label_image_render [2012/11/07 19:41] – dmitriy | merkalt:label_image_render [2013/05/21 17:53] (current) – [Background actions for rendering] ramil | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | Render label requests are coming from the next sources | ||
| + | |||
| + | - Customer rendering of preview (saved in temporary file as it is impossible to identify customer berofe order issued. Temporary files are cleared by system) | ||
| + | - When order is processed, customer and webmaster emails image attachements are used. Additionally each order label could be retrieved as URL with a special unique label marker | ||
| + | |||
| + | ==== Background actions for rendering ==== | ||
| + | |||
| + | |||
| + | |||
| Rendering of image is based on ' | Rendering of image is based on ' | ||
| - | | + | |
| + | | ||
| + | - backgroundImage layer sets certain image as background | ||
| - size layer allows to setup canvas size used | - size layer allows to setup canvas size used | ||
| - motif layer allows to setup an image inside the label. Specific top margin could be setup for motif layer | - motif layer allows to setup an image inside the label. Specific top margin could be setup for motif layer | ||
| - text layers allows to add different text blocks to label. The algorythm includes the such steps as: | - text layers allows to add different text blocks to label. The algorythm includes the such steps as: | ||
| - definition of font type | - definition of font type | ||
| - | - setting up an initial free area of the text container, definition of font size to be used (based on available free space), re-calculation of text container sizes | + | - setting up an initial free area of the text container |
| + | - definition of font size to be used (based on available free space) | ||
| + | - re-calculation of text container sizes (if there are several lines) | ||
| + | - definition of horizontal offset for the certain block (if there are several lines) | ||
| + | - setup correct vertical gaps (if there are several lines) | ||
merkalt/label_image_render.1352317318.txt.gz · Last modified: (external edit)
