-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GIFs getting the same hash when the first frame is identical #33
Comments
it currently is, but maybe we can alter it to something you seem appropriate. What behavior would you like? Create a single hash for the entire gif?
|
My suggestion is to create a "gif hash collection" allowing for different similarity distances.
|
I like what you suggest. A couple of things:
Thanks! |
I define distinct as the inverse operation of intersection. Return all images which are unique to one collection. The issue tracker serves as notes and comments, therefore don't worry if it gets a bit messy. I am just writing down random thoughts. Coding all of this is trivial and can be done within a short time, the issue arrises from a design point perspective:
Note: This link explains how frames can be extracted from gif images: https://stackoverflow.com/questions/8933893/convert-each-animated-gif-frame-to-a-separate-bufferedimage . This method requires a file as an input, we should also support a utility loader for gif images to not require the user to perform the same FileIO multiple times if he want's to hash the same gif with multiple algorithms. Are there any gif containers available or should we create our own bufferedImagecollection? Do we want to overload the hash method of hashing algorithms checking if the supplied image is a gif and create the appropriate |
Hi,
When generating hash values for two GIF files. I'm getting the same hash value for both if the first frame in both is identical.
Is that the expected behavior?
Thanks!
The text was updated successfully, but these errors were encountered: