Ability to quickly favorite a photo while browsing

Sure: it’s a bit involved!

  1. If a user has liked (or un-liked) an asset via PhotoStructure, and the asset file variations nor their sidecars have not been touched since that action was made, that value wins.

  2. Otherwise, PhotoStructure looks for a number between -1 and 5 associated to the Rating metadata tag (see the XMP specification: (this supports a value from 0 to 5, or -1 for “rejected”) in both files and sidecars. “First one in wins”: PhotoStructure first looks at the “best” asset file variation and sidecars. If that file doesn’t have a value, it looks at the first file with a value in order of last-modified time. If no value is found, it looks at the RatingPercent tag (which is only rarely used) and converts it to a value between 0 and 5.

    Given that we find either a Rating or RatingPercent, the asset will be considered “liked” if the value is equal to or greater than the new-in-version 2.0 likeRating setting, which defaults to 3.

  3. If we still don’t have a value yet, we’ll look for a Google Takeout JSON file associated to any asset file variation. If any are found, and a favorited value is set, we’ll use that.

1 Like