AGNPH Forums

[Tutorial]How to find out if an art is already uploaded & tagged?

 
  •  
    Sleep Harder~ ||=(>|3
    MaDrow
    Date:Jul 31, 2013 8:42 PM(Edited:Jul 31, 2013 8:57 PM) Title:[Tutorial]How to find out if an art is already uploaded & tagged?

    Of course everyone rather upload and tag porn which they like than tagging random porn things. Or even know more specific information about it, like the artist or the proper source of it.
    But how to find out if an art is already uploaded & tagged, when there aren't tags on the art at the first place?
     
    Luckily this problem is -almost- easy to tackle since our gallery software is based on Danbooru, which comes with md5-hash search.
     
    If you have an image or flash to upload. Calculate the hash first.
     
    There are several programs to generate a MD5 hash with, but the two below are gratis and don't have any malware or weird things included:
    DPASHA (Download Link) (Homepage)
    HashCalc (Download Link) (Homepage)
     
    For the less tech skilled people, here is a small tutorial about HashCalc:
      
    1) Install HashCalc by running the zipped installer. You could proceed with the standard installer settings.
     47e36d9875f69851fef10299c635b0fd23917b3c 
    [hr]
    2) When you start HashCalc, just keep MD5 ticked and untick the rest.
     be1ebb6f430fa546375f7af6b223aa52fb39b8cb 
    [hr]
    3) Select a file with the button '...' at the upper left and press 'Calculate'
     c60c93d4902338f75db676757f5830a59198c3fc 
    [hr]
    4) Select the hash which has shown up next to 'MD5', copy it.
     07d99e71c91606e77906baf107986116b25c3b3b 
    [hr]
     
     
     
    Then search the gallery with the hash in this way:
    md5:
     8ffb7778f266243ee3cee3282cdd5042336a9cf6 
    [hr]
     
    In the most optimistic way, the image or flash appears, you could just click on it and check if the tags and source are ok. If not, you might do everyone a favor by adding / correcting them.
     a1dedfdf263e322271c68dcb86da1be2e8eef73d 
    [hr]
     
    Caveats:
    - Every resizing, watermark, or change in the metatag-information of the picture could produce a different MD5-hash.
    - MD5 is vulnerable for collision attacks, so don't get surprised when suddenly your search results are more than one image.


    Here, have a Rare Candy~! 'Cause last night I found out you have to dream sweeter~! |=(>;3c

     
     
  •  
    Aurali
    Date:Aug 1, 2013 6:49 PM Title:Re: [Tutorial]How to find out if an art is already uploaded & tagged?
    MD5 isn't entirely reliable...

    However, the gallery app does detect md5 collisions, assumes the earlier one is correct (since it hasn't been destroyed), adds the new tags to the old post, and then lets you know about the collision

     
     
  •  
    Sleep Harder~ ||=(>|3
    MaDrow
    Date:Aug 2, 2013 12:44 PM Title:Re: [Tutorial]How to find out if an art is already uploaded & tagged?

    MD5 isn't entirely reliable...

    True, but Ouroboros 1.7 doesn't seem to use SHA1-* for submission hashes yet. Only SHA-1 for passwords.


    However, the gallery app does detect md5 collisions, assumes the earlier one is correct (since it hasn't been destroyed), adds the new tags to the old post, and then lets you know about the collision

    Thanks for the additional info |=(:3


    Here, have a Rare Candy~! 'Cause last night I found out you have to dream sweeter~! |=(>;3c

     
     
  •  
    Aurali
    Date:Aug 6, 2013 1:28 AM Title:Re: [Tutorial]How to find out if an art is already uploaded & tagged?
    though to be honest, the chances of a collision are so rare we probably have absolutely nothing to worry about. MD5 is enough for the gallery's needs. and true SHA1 would be bad for URL processing.

     
     
  •  
    Flygon did it...
    HatchlingByHeart
    Date:Aug 6, 2013 1:32 AM Title:Re: [Tutorial]How to find out if an art is already uploaded & tagged?
    MD5 isn't very secure anymore, so it's probably a bad idea for sensitive data encryption, but for comparison and verification hashing, it's just fine, and a lot simpler then SHA-1.

     
     
  •  
    Flygon did it...
    HatchlingByHeart
    Date:Jan 7, 2014 5:11 AM Title:Re: [Tutorial]How to find out if an art is already uploaded & tagged?
    Stickied.

     
     
  •  
    Friendly resident Cyndaquil
    Cyn
    Date:Jan 7, 2014 5:31 AM Title:Re: [Tutorial]How to find out if an art is already uploaded & tagged?
    Secondly, if your image has an unusual aspect ratio (like a lot of the images in the old archive or some on e621), you can search for the exact image size with "width:123 height:456"

    siYrw.gif
    ~My fire shall always burn eternal~