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

TransColor makes ImageSearch fail. #48

Open
lawkaita opened this issue Mar 30, 2024 · 1 comment
Open

TransColor makes ImageSearch fail. #48

lawkaita opened this issue Mar 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lawkaita
Copy link

Steps to reproduce

#Requires AutoHotkey v2.0.11+
#Include <ImagePut>

blue_shape_black_background_base64 := "iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAABhWlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVQQuKKGSonSyIijhKFYtgobQVWnUwufRDaNKQpLg4Cq4FBz8Wqw4uzro6uAqC4AeIs4OToouU+L+k0CLGg+N+vLv3uHsHCPUyU82OcUDVLCMVj4nZ3IoYeIUfIxhAHyISM/VEeiEDz/F1Dx9f76I8y/vcn6NHyZsM8InEs0w3LOJ14ulNS+e8TxxiJUkhPiceM+iCxI9cl11+41x0WOCZISOTmiMOEYvFNpbbmJUMlXiKOKyoGuULWZcVzluc1XKVNe/JXxjMa8tprtMcRhyLSCAJETKq2EAZFqK0aqSYSNF+zMM/5PiT5JLJtQFGjnlUoEJy/OB/8LtbszA54SYFY0Dni21/jAKBXaBRs+3vY9tunAD+Z+BKa/krdWDmk/RaSwsfAb3bwMV1S5P3gMsdYPBJlwzJkfw0hUIBeD+jb8oB/bdA96rbW3Mfpw9AhrpaugEODoFIkbLXPN7d1d7bv2ea/f0AqcVyvYg/9TYAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfoAx4AMwLbwG0vAAAATklEQVQ4y2NkYGD4z0AFwMRAJUA1g1gwRMSJ9OlLRjwuEichuNDUshBrIyHLmEgyBI/c4Iu1EWcQvvSEQ46FVA3EuQhf+iGQnhiHbzECAMmxDz2uUlYUAAAAAElFTkSuQmCC"

ib     := ImagePutBuffer(blue_shape_black_background_base64)
search := ImagePutBuffer(blue_shape_black_background_base64)
search.TransColor(0)  ; black
xy := ib.ImageSearch(search)

Expected behaviour

The variable xy is Array [0,0].

Actual behaviour

The variable xy is 0.

Attachments

blue_shape_black_background.png:
blue_shape_black_background

@iseahound
Copy link
Owner

iseahound commented Mar 30, 2024

Will have to find some time to fix the ImageSearch module—some changes were made to allow variation, but those changes likely broke the transcolor search. How popular ImagePut’s ImageSearch is will likely decide how much time I spend on this. I suppose people can like this if they use it lol

@iseahound iseahound added the bug Something isn't working label Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants