PDA

View Full Version : Graphical issue with player portraits



aldora
May 19th, 2022, 01:20
Summary: All player portraits show an apparent error/artifact of downscaling?

Ruleset(s): 5e

Extensions/Themes: None/default

Modules Loaded: None

Operating System / Language Setting: Widows 10

Steps to Reproduce: Place a portrait with a square aspect ratio of any size (have tried 70x70, 100x100, 300x300, a few larger, etc.) into the AppData\Roaming\SmiteWorks\Fantasy Grounds\portraits folder. Click the empty portrait on a character sheet in FGU, select the "data" folder/bag, and when the portraits load on the selection screen each image seems to have an error or artifact in the approximate middle of the image. It's most obvious when it happens to hit in the eye area of a portrait, or some other critical facial feature - in cases where it doesn't, it's subtle enough it might go unnoticed.

The portrait load screen versus the same files in windows explorer:
52838

One of the files displaying an issue around the eye area when viewed in FGU:
52839

Laerun
May 19th, 2022, 17:47
Summary: All player portraits show an apparent error/artifact of downscaling?

Ruleset(s): 5e

Extensions/Themes: None/default

Modules Loaded: None

Operating System / Language Setting: Widows 10

Steps to Reproduce: Place a portrait with a square aspect ratio of any size (have tried 70x70, 100x100, 300x300, a few larger, etc.) into the AppData\Roaming\SmiteWorks\Fantasy Grounds\portraits folder. Click the empty portrait on a character sheet in FGU, select the "data" folder/bag, and when the portraits load on the selection screen each image seems to have an error or artifact in the approximate middle of the image. It's most obvious when it happens to hit in the eye area of a portrait, or some other critical facial feature - in cases where it doesn't, it's subtle enough it might go unnoticed.

The portrait load screen versus the same files in windows explorer:
52838

One of the files displaying an issue around the eye area when viewed in FGU:
52839

I don't know if this will help, but make sure all your images are labeled to help with the long character file names. Are you using jpeg, png, or something else? Portraits are generally best configured at 100x100 square pixels. If you are using anything smaller or such, they might look distorted as they will become the default map tokens. To help with this issue, you might want to try creating some higher quality and very squared images for tokens and not just use the default portrait images, which will inherent the profile picture to be used as a scaled version of the original into a map token. Random images taken from the internet can be problematic because they might not be truly square or may suffer from being compressed too much. Hope this helps.

aldora
May 20th, 2022, 03:46
All the portraits I've tried have been edited and cropped to exact squares, and several were scaled specifically to 100x100 and still had decent quality that way (such as my example in the second file) - only upon opening them in fantasygrounds does the issue appear.

Moon Wizard
May 20th, 2022, 04:24
I talked to @cpinder about this.

It's apparently an artifact of the Google SkiaSharp library that we use for image loading and manipulation. It's most prominent at the exact center of the image when downscaling (and the example you show has the eye in the exact center). He's tried different scaling parameters to attempt to compensate, but the issue still appears.

It's not something that we have a solution for at this time. Changing image loading and manipulation libraries is a very big task; and there is no guarantee that there will not be other similar issues or other side effects. So, we suggest using using a different portrait in this case.

Regards,
JPG