Add view counts for images

Describe the feature you’d like

Store view count for images. Increment view count when image is seen in slideshow or at large size individually (as opposed to glancing at them in a grid/list of images).

Describe the benefits this would bring to existing users

I like to sort videos by view count to make sure none are getting ignored/buried. A similar feature for images would be great.

Is there an existing way to achieve this goal?

This will require adding metadata to each image in the DB, and AFAIK plugins can’t do that.

Additional context

I’d be up for implementing this if someone could give me the broad strokes.

This is a good idea. Not something I plan to implement myself in the short-term, but I can give you an idea of what is involved in implementation.

We have the concept of view and o-history for scenes, and it makes sense to add this to images, to be consistent. The change would be very similar to the introduction of these concepts, the PR for which is here: Scene play and o-counter history view and editing by WithoutPants · Pull Request #4532 · stashapp/stash · GitHub

That PR should have most of what you need. Let me know if you have any further questions.

1 Like

Happy to help with this as well.