Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's wrong with CRC32
Message
De
08/01/2014 12:11:30
 
 
À
08/01/2014 11:59:03
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01591437
Message ID:
01591509
Vues:
34
>>Then I think the actual means ( something + CRC) to identify an image + its size is not the right way to do it
>
>That is correct.
>
>>Maybe it would be better to use ( something + its dimensions ), eg file1.jpg + height + width
>
>Yes, but this implies that we control the file name that we receive. We wanted to see if there could be a possibility of working around this. Because, if someone sends us MyHouse.jpg and later on ThisImage.jpg, those will not be the same file name but could be the same image and we would have no way of knowing they are duplicate.

Think you can identity the image you receive with CRC ( I'd rather use MD5 or other method)
If they send the same file with another name, you'll know

Then if you resize it, identify the 'resized' with the original checksum + new height + new width


And on an afterthought - do you need to store the resized image ? Can you resize it just for display purposes when you need it in a certain height and width ?


Don't know which business it is - but could you throw away the previous one if they send you another ?
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform