CristianVasile23 / conversation-hud

A simple FoundryVTT module that adds a nice HUD that display the portraits of all the characters present in a conversation.
MIT License
17 stars 3 forks source link

[Feature Request] Option to Scale Image to bounding box #37

Closed MightyMushka closed 6 months ago

MightyMushka commented 8 months ago

First off, the module is absolutely invaluable to my group as a way to represent conversations and focus the team. Thanks so much!

I utilise the Beastiary art pack from Paizo and the Kingmaker module, which provides a huge amount of art, all backgroundless. The dimensions for these though are not consistent due to different poses, etc. I'd love an option to scale the artwork in the active participant box to ensure it's all shown, scaling based on the largest dimension.

Regardless, thoroughly enjoy the module and it always has a place on the modules list!

CristianVasile23 commented 8 months ago

I am glad to hear that the module has been useful to you, this is why I decided to publish it in the first place!

As to the feature request, it sounds like a great idea. I will look into it and see what can be done.

Mystler commented 6 months ago

Looking at the CSS for the module, using the vertical Portrait Style setting, I found these quick and dirty hacks to the following files to produce a nice result. This can probably be implemented better as an additional setting in the module but it works for a temporary edit.

css/active-conversation/active-participant.css

css/active-conversation/module-settings.css

CristianVasile23 commented 6 months ago

That looks like a really good temporary workaround @Mystler, thanks for sharing it. Granted, the dimensions change for each portrait mode, but that will no longer be an issue as I have reworked the way images are displayed and you can now add padding as well as anchor each image both vertically and horizontally which should allow for much more flexibility. Update should be live sometimes towards the end of this week.

CristianVasile23 commented 6 months ago

With release 5.4.0, you can now scale the image up or down, which should allow you to display the entire artwork or zoom in only on a specific part when combined with the new anchor options.

If there are any questions or issues, you can contact me and I will do my best to help.