Skip to content

Stacks: Prefer edited photos in stacks as primary #1028

@inthreedee

Description

@inthreedee

Feature Request:
I use the Photosync app for uploading from my iPhone as suggested in the docs. It works great. I have it set to upload both the original and edited versions of a photo, and photoprism recognizes them as the same photo and stacks them. Awesome! I love stacks!

The only part I have to manually fix is setting the primary photo. I'd like to request that some logic be added to try to identify edited photos and prefer them as the primary in a stack instead of the original.

In the case of Photosync, this is easy. The app appends "edited" to the filename. For example, it will upload:
IMG_4601.HEIC
IMG_4601_edited.JPG

And then, when Photoprism processes the upload, it creates the following file and sets it as the primary of the stack:
IMG_4601.HEIC.jpg

I would like Photoprism to notice and set IMG_4601_edited.JPG as the primary photo in the stack instead.

I suggest the following logic:

  • Process the image as normal, create cached jpgs and stacks, etc.
  • Search all jpgs (also pngs?) in the stack for the words "edited" or "edit" in the file name. Maybe also include numbers, such as "(1)", "(2)", etc.
  • If only one match exists, set that as the primary in the stack.
  • If no match is found, use the original jpg (current behavior).
  • If more than one match exists, select the image with the most recent timestamp and set that as the primary in the stack.
  • If still unable to select a primary from multiple matches, just use alphabetical/numerical ordering and select the last image.

Metadata

Metadata

Assignees

Labels

ideaFeedback wanted / feature requestmetadataRelated to Exif, XMP, IPTC & Co.uxImpacts User Experience

Type

No type

Projects

Status

Upcoming ⏳

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions