Image with transparent background, generates the wrong marker.
Closed this issue · 1 comments
devsalula commented
Describe the bug
When trying to generate a marker image from png with transparent background, it's generating a marker without white background. It fills the background image with black color.
Screenshots
The image I want to generate a marker
Additional Information
I tried to change the border size to different values, but I kept finding the bug.
Script i used
from pymarker.core import generate_patt, generate_marker
def main():
filename = "top/sleep.png"
border_size = 10 #size in percentage
generate_marker(filename, border_size)
if __name__ == "__main__":
main()
pablodiegoss commented
Great work guys!! Thanks a lot for the contribution :D