pylabels icon indicating copy to clipboard operation
pylabels copied to clipboard

How do you put images inside the labels instead of just the background image?

Open shyamalschandra opened this issue 4 years ago • 5 comments

How do you put images inside the labels instead of just the background image?

shyamalschandra avatar Jan 09 '21 13:01 shyamalschandra

@bcbnz: Anyone there?

shyamalschandra avatar Jan 20 '21 22:01 shyamalschandra

Try reportlab.graphics.shapes.Image and then add using .add as usual

smsaladi avatar Oct 17 '21 16:10 smsaladi

for base examples use: label.add(shapes.Image(0, 40, width=60, height=80, path='temp.jpg'))

xvxieweilai avatar May 19 '22 16:05 xvxieweilai

path can also be a PIL image object

r89m avatar Apr 20 '23 12:04 r89m

@smsaladi & @xvxieweilai & @r89m: Thanks for your help! I will try it very soon!

shyamalschandra avatar Apr 20 '23 17:04 shyamalschandra