VBA excel compare Image
Posted: 2017-07-23T03:56:41-07:00
Hello everyone,
For a few days that I have difficulty doing a compare using Imagemagick
My question is: I have a .jpg file inside a folder and I want to compare it with another image inside the same folder.
Ideally I wanted the program to return true if the images are identical.
I'm working on excel vba.
Has anyone tried to do something like this?
Here is My code so far:
Thanks a lot
For a few days that I have difficulty doing a compare using Imagemagick
My question is: I have a .jpg file inside a folder and I want to compare it with another image inside the same folder.
Ideally I wanted the program to return true if the images are identical.
I'm working on excel vba.
Has anyone tried to do something like this?
Here is My code so far:
Code: Select all
Dim img As New ImageMagickObject.MagickImage
Sub test()
Dim Filepath1 As String
Dim Filepath2 As String
Dim result
Filepath1 = "c:\image11.bmp"
Filepath2 = "c:\image22.jpg"
result = img.compare(Filepath1, Filepath2)
End Sub