Timeline for Convert filenames to their checksum before saving to prevent duplicates. Is is a smart thing to do?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 7, 2015 at 3:47 | comment | added | donquixote | @user8, just saying you are comparing time with space. | |
Oct 15, 2011 at 5:15 | vote | accept | Xananax | ||
Jun 26, 2011 at 21:21 | comment | added | user8 | @Xananax Ah, I was thinking about preventing duplication from a different angle. I've edited my question to hopefully address what you're asking for. In short, the amount of time you'd waste trying to compare images is likely more expensive than just storing everything. | |
Jun 26, 2011 at 21:20 | history | edited | user8 | CC BY-SA 3.0 |
added 927 characters in body
|
Jun 26, 2011 at 20:23 | comment | added | Xananax | I don't deny the usefulness or smartness of the answer, but it does not answer my point (unless I fail to see how, which is very possible - I am stupid sometimes). I am not wanting to generate a unique name; I am looking into the option of using the hash to check if an image already exists before saving it, and the drawbacks of it. | |
Jun 26, 2011 at 2:13 | comment | added | dirk | Hadn't though of metadata, great idea! | |
Jun 25, 2011 at 3:25 | comment | added | user8 | @Dirk That's definitely something to watch out for; but depending on the image format and the type of information one's looking for, a lot of useful information can be accessed relatively easily through metadata formats like IPTC and EXIF. At worst, the data should only need to be computed once and then added to the image's metadata or the filename. | |
Jun 25, 2011 at 2:51 | comment | added | dirk | Great answer (upvoted)! One small thing to note is that direct photo comparison could become quite computationally expensive depending on the language & library used and the dimensions of the photo uploaded by the user; image comparison, in my experience also has a large probability of false negatives caused by changes in color spacing, compression, size, and a variety of other factors. | |
Jun 25, 2011 at 1:26 | history | edited | user8 | CC BY-SA 3.0 |
added 133 characters in body
|
Jun 25, 2011 at 1:19 | history | answered | user8 | CC BY-SA 3.0 |