ImmichFrame icon indicating copy to clipboard operation
ImmichFrame copied to clipboard

Display XX years ago

Open vspaziani opened this issue 1 year ago • 8 comments

Description

Is there an option to display "XX Years ago" instead of the photo date?

Use Case

When you have many photos, and are looking at memories, it would be nice to be able to relate when the phot was taken.

Details

No response

Pre-Submission Checklist

  • [x] This is a feature request and not a bug report

  • [x] I have checked for related issues and checked the documentation

vspaziani avatar May 03 '25 16:05 vspaziani

No, neat idea though. I would imagine something like? less than 1 year - xx Days Ago less than 2 years - xx Months Ago more than 2 years - xx Years Ago

3rob3 avatar May 03 '25 17:05 3rob3

Yea that sounds like a good approach, the original immich frame had it as a feature from before you changed it to client/server line in version 1.0.15.0

Now that I look into it, I think this may be a bug. I assumed it was lost in the changes when this project went to a web app but now that I started looking though the old code for an example of how it was accomplished I see that in the current version the same code exists for image description. I think this is a link to the current project where the text should be generated, though I don't know the syntax very well or I would troubleshoot it myself.

https://github.com/immichFrame/ImmichFrame/blob/a85fc7bb578d44135f6845e106d5f5f7be264fb6/ImmichFrame.Core/Logic/ImmichFrameLogic.cs#L267

let me know if I should move this to the bug section.

vspaziani avatar May 04 '25 14:05 vspaziani

That code is for, and only applies to, ShowMemories. I understood your request was for all images, show "xx Years Ago" instead of the photo date like "05-04-2024".

3rob3 avatar May 04 '25 15:05 3rob3

I do have showmemories selected, it does not show the text that I was asking for. But it is a very nice feature and I could see it being nice as an option for all photos.

With your confirmation about the intended usage during showmemories, this sounds like a bug.

vspaziani avatar May 04 '25 16:05 vspaziani

This is a feature I don't use, but I just enabled it and can confirm something isn't right. @JW-CH Any idea whats going on here? I can see asset.ImageDesc is correctly being set with "x Years Ago", but it isn't being displayed. Actually, I am not seeing any image descriptions being shown.

3rob3 avatar May 04 '25 19:05 3rob3

This is a feature I don't use, but I just enabled it and can confirm something isn't right. @JW-CH Any idea whats going on here? I can see asset.ImageDesc is correctly being set with "x Years Ago", but it isn't being displayed. Actually, I am not seeing any image descriptions being shown.

I created a bug report with all of my configurations so that it can be tracked separately. I think this is still a good feature request so I will leave it open.

Issue created: #329

vspaziani avatar May 05 '25 00:05 vspaziani

Just to be clear, #329 will not fix this, right? You want an option to display the xx days/months/years ago? The old implementation was just showing this for memory-lane assets and will overwrite the description of the image (I don't quite like that in hindsight).

Would you like to see something like this:

< 1 month: xx days ago < 1 year: xx months ago > 1 year: xx years ago

this would result in all assets between >1 year and <2 years showing '1 year ago'

not sure what the best implementation would be here.

JW-CH avatar May 05 '25 08:05 JW-CH

Correct, this is a new request for PhotoDateFormat to show xx Years Ago. 329 is a bug report for ShowMemories not showing xx Years Ago.

I like the idea for this request, but it might be difficult since clock date also uses this format.

3rob3 avatar May 05 '25 11:05 3rob3