Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>>Does anyone know if and how to compare two JPG photos using code?
>>
>>I tried filetostr() and while it seemed to work I found that it fails for the following set of commands:
>>
>>r = filetostr(path to photo 1)
>>copy photo 1 to photo 2
>>open photo 2 in a graphic editor (paint will do). Don't make any changes and save it.
>>s = filetostr(path to photo 2)
>>wait window r==s returns false!!!
>>
>>Simply changing re-saving the second photo was enough to make it different.
>>
>>As always, any assistance is greatly appreciated.
>
>I usually use CRC32 for that.
Hi Michel,
I don't fully understand you hint. I attempted to use SYS(2007) with a nFlags =1 (for CRC32) and passed cExpression as filetostr(path to photos) and it still says that the images are different although I only opened one in paint and saved it without actually making a change.
Did I do what you'd expected and if not, where did I go wrong?
Thanks for any assistance
Mike
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement