-
May 19th, 2022, 01:20 #1
- Join Date
- Dec 2020
- Posts
- 2
Graphical issue with player portraits
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:
graphical portrait issue.png
One of the files displaying an issue around the eye area when viewed in FGU:
Untitled - test final (2) 100x100.jpg
-
May 19th, 2022, 17:47 #2
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.
FGA Founder
FGU teacher and student!
Ultimate License Holder
Discord Alias: Laerun#6969
https://www.fantasygroundsacademy.com
-
May 20th, 2022, 03:46 #3
- Join Date
- Dec 2020
- Posts
- 2
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.
-
May 20th, 2022, 04:24 #4
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,561
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
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks