Author Topic: Capture Date Searches  (Read 6272 times)

Offline Greg Zenitsky

  • Newcomer
  • *
  • Posts: 14
  • Yeshua HaMeschiach
    • View Profile
    • Witness of Light Photography
Capture Date Searches
« on: August 25, 2012, 09:10:42 AM »
None of the searches I am creating based on Capture Date are working correctly. The searches will include images meeting the search criteria but they also pull in dozens if not hundreds of images totally out of the search constraints. I'm including a screenshot of a very simple search. This search included all the pictures captured in the last two months but also images capture since April of 2012 and images going back as far as 2004 and earlier.  An examination of the IPTC captured date in both in info viewer and using the Adjust Time and Date module indicated no problems with the dates. They all appeared to be correct for the images.

I'm running (and loving!) Photo Mechanic Version 5.0, build 13217 (68ec133) on a 3.4 GHz Intel Core i7 iMac running OS X 10.8.1 with 16GB RAM.

Thank you for your help.

[attachment deleted by admin]
« Last Edit: August 25, 2012, 09:13:31 AM by Greg Zenitsky »
Greg Zenitsky
Lee's Summit, MO
www.witnessoflight.com

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25025
    • View Profile
    • Camera Bits, Inc.
Re: Capture Date Searches
« Reply #1 on: August 25, 2012, 09:59:34 AM »
Greg,

None of the searches I am creating based on Capture Date are working correctly. The searches will include images meeting the search criteria but they also pull in dozens if not hundreds of images totally out of the search constraints. I'm including a screenshot of a very simple search. This search included all the pictures captured in the last two months but also images capture since April of 2012 and images going back as far as 2004 and earlier.  An examination of the IPTC captured date in both in info viewer and using the Adjust Time and Date module indicated no problems with the dates. They all appeared to be correct for the images.

I'm running (and loving!) Photo Mechanic Version 5.0, build 13217 (68ec133) on a 3.4 GHz Intel Core i7 iMac running OS X 10.8.1 with 16GB RAM.

Thank you for your help.

What I'd really like is three sample images from you.  One that is really out of range, like from 2004.  Two that are recent.  I'll put them in a folder where Spotlight will index them and then test the functionality.  Use the 'Attachments and other options' link when you're composing your reply to this message and there you'll be able to upload your files.

Thanks,

-Kirk

Offline Greg Zenitsky

  • Newcomer
  • *
  • Posts: 14
  • Yeshua HaMeschiach
    • View Profile
    • Witness of Light Photography
Re: Capture Date Searches
« Reply #2 on: August 27, 2012, 05:07:26 PM »
Sorry for the delay Kirk. The butterfly and ferris photos were shot in August and the aquarium photo in May 2008. The aquarium photo shows up in the "This Month" search every time. This is typical of most searches I have setup. Please let me know if you need additional data and thank you for any direction you can give me.

[attachment deleted by admin]
Greg Zenitsky
Lee's Summit, MO
www.witnessoflight.com

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25025
    • View Profile
    • Camera Bits, Inc.
Re: Capture Date Searches
« Reply #3 on: August 27, 2012, 08:33:12 PM »
Greg,

How was the aquarium photo generated?  Spotlight's database for this photo has a content creation date of today (I just downloaded your sample).  Here is what the 'mdls' command has to say about your photo:

$ mdls GMZ-006428.JPG

kMDItemAuthors                 = (
    "Gregory M. Zenitsky"
)
kMDItemBitsPerSample           = 32
kMDItemCity                    = "San Antonio"
kMDItemColorSpace              = "RGB"
kMDItemContentCreationDate     = 2012-08-27 17:27:46 -0700
kMDItemContentModificationDate = 2012-08-27 17:27:46 -0700
kMDItemContentType             = "public.jpeg"
kMDItemContentTypeTree         = (
    "public.jpeg",
    "public.image",
    "public.data",
    "public.item",
    "public.content"
)
kMDItemContributors            = (
    "Gregory M. Zenitsky"
)
kMDItemCountry                 = "United States of America"
kMDItemDisplayName             = "GMZ-006428.JPG"
kMDItemFSContentChangeDate     = 2012-08-27 17:27:46 -0700
kMDItemFSCreationDate          = 2012-08-27 17:27:46 -0700
kMDItemFSCreatorCode           = ""
kMDItemFSFinderFlags           = 0
kMDItemFSHasCustomIcon         = 0
kMDItemFSInvisible             = 0
kMDItemFSIsExtensionHidden     = 0
kMDItemFSIsStationery          = 0
kMDItemFSLabel                 = 0
kMDItemFSName                  = "GMZ-006428.JPG"
kMDItemFSNodeCount             = 0
kMDItemFSOwnerGroupID          = 501
kMDItemFSOwnerUserID           = 501
kMDItemFSSize                  = 955524
kMDItemFSTypeCode              = ""
kMDItemHasAlphaChannel         = 0
kMDItemKeywords                = (
    "San Antonio"
)
kMDItemKind                    = "JPEG image"
kMDItemLastUsedDate            = 2012-08-27 18:36:38 -0700
kMDItemOrientation             = 0
kMDItemPixelCount              = 1088000
kMDItemPixelHeight             = 850
kMDItemPixelWidth              = 1280
kMDItemProfileName             = "sRGB IEC61966-2.1"
kMDItemResolutionHeightDPI     = 0
kMDItemResolutionWidthDPI      = 0
kMDItemStateOrProvince         = "TX"
kMDItemUsedDates               = (
    "2012-08-27 00:00:00 -0700"
)

The important line is this one:

kMDItemContentCreationDate     = 2012-08-27 17:27:46 -0700

The raw Spotlight query that is issued from PM is:

"(kMDItemContentCreationDate >= $time.today(-31)) && (kMDItemContentTypeTree = 'public.image') && (kMDItemContentType != com.apple.mail.emlx) && (kMDItemContentType != public.vcard)"

So it matches when Spotlight thinks the content creation date is today.  What does 'mdls' say for that same photo on your system?  You'll have to open up a Terminal window and type:

mdls /path/to/your/image/GMZ-006428.JPG

In my investigation of your image, I found that it doesn't have any EXIF data in it.  Only IPTC, XMP, and ICC profile metadata chunks are in the file.  So Spotlight falls back and uses the filesystem Creation Date/Time for its database.  Note: the IPTC data does have an IPTC date in the file and it is May 30, 2008 but that date is not the "Capture Date".

So I'm not sure where this file has been or how it was generated but the EXIF data no longer exists and that is the primary issue responsible for this problem.

-Kirk

Offline Greg Zenitsky

  • Newcomer
  • *
  • Posts: 14
  • Yeshua HaMeschiach
    • View Profile
    • Witness of Light Photography
Re: Capture Date Searches
« Reply #4 on: August 28, 2012, 04:15:07 PM »
Here is the Content Creation Date from mdls:kMDItemContentCreationDate     = 2012-07-27 16:13:04 +0000.
This file was originally a JPEG shot with a Nikon S8000. The file I converted to JPEG for upload to your site was a TIFF created from NIK Color Effect Pro 4. Sounds like I may just have to live with the problem eh?
Greg Zenitsky
Lee's Summit, MO
www.witnessoflight.com

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25025
    • View Profile
    • Camera Bits, Inc.
Re: Capture Date Searches
« Reply #5 on: August 28, 2012, 07:08:25 PM »
Greg,

Here is the Content Creation Date from mdls:kMDItemContentCreationDate     = 2012-07-27 16:13:04 +0000.
This file was originally a JPEG shot with a Nikon S8000. The file I converted to JPEG for upload to your site was a TIFF created from NIK Color Effect Pro 4. Sounds like I may just have to live with the problem eh?

Yes, unless you can get your EXIF data to carry over to the TIFF file (and any other saved formats.)

-Kirk

Offline Greg Zenitsky

  • Newcomer
  • *
  • Posts: 14
  • Yeshua HaMeschiach
    • View Profile
    • Witness of Light Photography
Re: Capture Date Searches
« Reply #6 on: August 29, 2012, 05:28:21 PM »
Thanks for taking the time to examine the files, Kirk!
Greg Zenitsky
Lee's Summit, MO
www.witnessoflight.com