3

I want to import pictures from the photo library on iOS but I want to check that I haven't already done so in the past.

What can I use as a unique identifier to check for?

What I thought so far are these:

  1. Created Date ( This might have a low probability of conflict, might have pictures taken at the same time or saved at the same time by iphoto)
  2. Pictures filesize (Depending on how accurate I can get this number)
  3. A combination of the two?
  4. Exif Data? (Works well for pictures taken but what if you have images with no Exif?)

What are you using?

Thanks

4

1 回答 1

2

当我遇到这样的问题时,我使用的是日期(在本例中为 unix 时间戳)和文件名组合的 MD5-Hash。我认为这应该是独一无二的。

于 2012-05-30T09:37:14.833 回答