Add secondary performer image

:placard: Summary Adds support for a secondary perfomrer image on the perform details page.
:link: Repository https://github.com/stashapp/CommunityScripts/tree/main/plugins/SecondaryPerformerImage
:information_source: Source URL https://stashapp.github.io/CommunityScripts/stable/index.yml
:open_book: Install How to install a plugin?

Secondary Performer Images

This plugin adds support for a secondary performer image on the performer details page, enabling more customization. A new Set secondary image... button will be available on the performer edit page to provide this new image. Performers without a secondary image will continue to behave as they’ve always done.

Modes

The plugin offers three different display modes that can be set for the use of the secondary image. The modes range from 0-2, with 0 being the default mode. Any values that fall outside this range will be processed as the default mode.

0 - Specify 0 to enable the secondary image to be used in the expanded view. You might consider using this mode if your performer image currently consists of headshots and you want to provide fuller body images for the expanded view.

1 - Specify 1 to enable the secondary image to be used in the collapsed view. You might consider using this mode if your performer image currently consists of body shots and you want to provide headshots for the collapsed view.

2 - Specify 2 to enable a button to be used to flip between the primary and secondary image. This mode gives you the option to provide whatever combination of images you want to use together. Some might consider using this option to provide front and back images of the performer.

3 Likes

I don’t have the problem above but the plugin (even after updating) doesn’t seem to work at all for me. When I open in edit mode the ā€œSet secondary imageā€ button and choose the image on my drive with double-click the performer ā€œsaveā€ button remains grayed out and there’s no effect at all on the performer image.

2 Likes

Problem solved. Under ā€œCustom fieldsā€ in ā€œalt_imageā€ the link of the second image has to be saved - which doesn’t come out clearly from the plugin description.

1 Like

I can’t get this plugin to work. The button isn’t showing up and neither are the fields. I checked the logs and there is nothing in there too. I’m running the latest version of Stash.

I had the same problem. After downloading via community plugins within stashapp the current version of the plugin, the button appeared. Then I had to figure out myself, that in the custom fields I had to write ā€œalt_imageā€ on the left field before selecting a secondary image from my drive which got inserted on the right field (it’s not mentioned in the plugin description).

Add. Note: I use option 2 with the flipping image and saw that both images have to be of same aspect ratio, otherwise the button where you making it flip doesn’t remain fixed but jumps up or down.

I have the latest version from community plugins (1.1-bf2858b) and the button is not showing up. I tried adding alt_image in the custom fields, with /data/pathtofile/file.jpg as the corresponding value, but it doesn’t work for me?

Set the setting to ā€˜2’ and use an external url, should work.

I have the setting at 2 and used an external (http://…) url, and still nothing.

For me the value field has no entry. The cursor stays there, and to choose an image from my harddrive I click on the ā€œset sec. imageā€-button, which opens the usual explorer-window.

Last option would be a conflict with another installed plugin …. maybe

Sorry guys. I just rediscovered this topic post. I haven’t checked into Discourse in some time. I’ll have another look at this plugin soon to see if I can reproduce some of the issues mentioned here.

Then I had to figure out myself, that in the custom fields I had to write ā€œalt_imageā€ on the

This should be necesary. As soon as you open the performer page, the plugin should automatically add the alt_image field if it doesn’t already exist for the performer. That it doesn’t is a bug. I sounds like the mutation called to perform this action is likely failing. If this is still an issue, would you be able to provide a screenshot of the network failed mutation from the network tab in your browser’s dev tool?

If the add secondary performer button is not rendering, it is likely that there were some conflicts with another plugin that resulted in this plugin’s failure. The browser’s console window should contain some information about what happened.

I have the latest version from community plugins (1.1-bf2858b) and the button is not showing up. I tried adding alt_image in the custom fields, with /data/pathtofile/file.jpg as the corresponding value, but it doesn’t work for me?

To all users of this plugin, note that I am aware of a bug that results in an uploaded secondary image being unsavable if the custom fields section was not already opened. To work around this limitation, I’d ideally like to update the placement of the upload button to have it be directly attached to the custom field input box it corresponds to. This will likely require exposing more Stash resources to the plugin API, which I haven’t gotten around to investigating.

I’d be happy to help, if you can tell me the steps I need to take to do that. I’m way out of my depth here.

The console that shows up when I press Q in firefox on a webpage? Where do I look to see what’s going on?

I think I found something. In the firefox console I’m getting this error over and over again:

image

This might be beyond the scope of the project but is there any way to toggle between performer images from the performer list page, rather than each individual performer’s detail page?

Hover Cards allows to implement a second image to that you can switch in the performer overview.