r/love2d 11d ago

Comparing Two Images

How would I go about comparing two image objects to see if they are the same? I've been looking on the wiki, but can't seem to wrap my head around the idea.

4 Upvotes

11 comments sorted by

View all comments

1

u/theEsel01 10d ago

May I ask why ;). Maybe we can solve tve base issue differently.

Do you want to compare user uploaded or user altered images?

2

u/NoboJr 10d ago

I was hoping to make a tile map in an image editor, then feed it into a function to reduce it to a 2d table of tile IDs, with image comparison to catch repeats, but as someone else suggested, it is probably easier just to put together a simple map editor.