I am having a problem trying to compare two images with each other. One image is saved locally in my project and the second picture is on the internet (url). I tried putting the image into "variable" and compare it with the second image that would be also stored into "variable".
let temp_img = fetch(url,{method: "GET", headers: {}}).then(response => {
result = response;
});
let local_img = new File(path,"local_img");
if( temp_img == local_img)
....
I always get the same result that images are not identical (but they are). What am I doing wrong?