* Title is rendered on separate lines, each 12 characters max * calculate width of block on the left, paste good's image with that info in mind
12 lines
319 B
Python
12 lines
319 B
Python
from store.utils import create_preview
|
|
|
|
|
|
for i in range(1, 5):
|
|
order_id = f'result{i}'
|
|
image = create_preview(f'source{i}.jpeg',
|
|
size=40,
|
|
price_rub=100.5,
|
|
title_lines=['New Balance', 'NB 9060'])
|
|
|
|
image.save(f'{order_id}.jpg')
|