Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shyamalschandra opened this issue Jan 9, 2021 · 5 comments

Comments

@shyamalschandra
Copy link

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

@shyamalschandra
Copy link
Author

shyamalschandra commented Jan 20, 2021

@bcbnz: Anyone there?

@smsaladi
Copy link

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

@xvxieweilai
Copy link

xvxieweilai commented May 19, 2022

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

@r89m
Copy link

r89m commented Apr 20, 2023

path can also be a PIL image object

@shyamalschandra
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants