I am using the mp3agic-0.9.1.jar to extract cover art from a large number of MP3 files in order to detect if it conforms to a certain default image.
I have confirmed that the cover art is being correctly extracted as expected, but it appears that despite Log(DefaultImage) returning the same javafx.scene.image.Image@xxxxxxxx signature every time the two images cannot be directly compared using... If Image1 = Image2 Then...
What is the correct method of doing this?
I have confirmed that the cover art is being correctly extracted as expected, but it appears that despite Log(DefaultImage) returning the same javafx.scene.image.Image@xxxxxxxx signature every time the two images cannot be directly compared using... If Image1 = Image2 Then...
What is the correct method of doing this?
Compare two images:
Dim DefaultImage As Image
DefaultImage.Initialize(File.DirAssets,"default.jpg")
Dim IsDefaultImage As Boolean
For Each FileName As String In FileNames
TrackInfo = ReadMP3File(CONTENTPATH & FileName)
If TrackInfo.CoverArt = DefaultImage Then 'This direct comparison never returns True
IsDefaultImage = True
Else
IsDefaultImage = False
End If
Next