pablodiegoss/pymarker

Image with transparent background, generates the wrong marker.

Closed this issue · 1 comments

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
sleep

Genareted Marker
sleep_marker

Expected Marker
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()

Great work guys!! Thanks a lot for the contribution :D