We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, how can i change the the fill_color when using an image factory?
I have tried with the following two commands, but if I use the image factory, the fill_color command seems to be ignored:
img = qr.make_image(image_factory=StyledPilImage, fill_color=(255, 0, 0), embeded_image_path="test.png") img = qr.make_image(image_factory=StyledPilImage, fill_color="red", embeded_image_path="test.png")
img = qr.make_image(image_factory=StyledPilImage, fill_color=(255, 0, 0), embeded_image_path="test.png")
img = qr.make_image(image_factory=StyledPilImage, fill_color="red", embeded_image_path="test.png")
Thank you
The text was updated successfully, but these errors were encountered:
Workaround is to explicitly use SolidFillColorMask with front_color = the fill color:
SolidFillColorMask
front_color
img = qr.make_image( image_factory=StyledPilImage, module_drawer=SolidFillColorMask(front_color=(255, 0, 0)), embeded_image_path="test.png" ) img = qr.make_image( image_factory=StyledPilImage, module_drawer=SolidFillColorMask(front_color="red"), embeded_image_path="test.png" )
Sorry, something went wrong.
No branches or pull requests
Hello,
how can i change the the fill_color when using an image factory?
I have tried with the following two commands, but if I use the image factory, the fill_color command seems to be ignored:
img = qr.make_image(image_factory=StyledPilImage, fill_color=(255, 0, 0), embeded_image_path="test.png")
img = qr.make_image(image_factory=StyledPilImage, fill_color="red", embeded_image_path="test.png")
Thank you
The text was updated successfully, but these errors were encountered: