Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing portrait does not work #296

Closed
trev-dev opened this issue Feb 13, 2022 · 5 comments
Closed

Changing portrait does not work #296

trev-dev opened this issue Feb 13, 2022 · 5 comments

Comments

@trev-dev
Copy link

Describe the bug
When I load up TokenTool, and am presented with the default token (woman with gear frame), I go to portrait, change portrait, pick any image (and any format) from my hard disk, click OK. After this, the default portrait disappears and my image is not loaded.

Screenshots
where-portrait-go

TokenTool Info

  • Version: 2.2.1
  • Install: Fresh .rpm install

Desktop (please complete the following information):

  • OS: Fedora
  • Version 35
@Azhrei
Copy link
Member

Azhrei commented Feb 13, 2022

What format is your image? Please run file your_inage_name and paste the output into your reply.

it would also be helpful to have the log file under ~/.tokentool-rptools.

it is known that some image generation programs produce output which the Java libraries can’t handle for some reason. Often, it’s enough to load the image into a separate paint program and write it back out.

@trev-dev
Copy link
Author

Happy to supply the data.

What format is your image? Please run file your_inage_name and paste the output into your reply.

I tried two formats, both exported from GIMP:
bartlebee.webp: RIFF (little-endian) data, Web/P image

bartlebee.jpg: JPEG image data, JFIF standard 1.01, resolution (DPI), density 300x300, segment length 16, Exif Standard: [TIFF image data, little-endian, direntries=7, orientation=upper-left, xresolution=98, yresolution=106, resolutionunit=2, software=GIMP 2.10.30, datetime=2022:02:12 14:24:45], progressive, precision 8, 420x559, components 3

I've attached the output logs from ~/.tokentool-rptools
log.txt

@trev-dev
Copy link
Author

With revived curiosity I tried again with a .png image export from GIMP and token tool worked as expected, but I'll leave this open as I'm not sure if we actually want this problem. I feel like if there's some sort of failure, meaningful advice from TokenTool would be great :)

@Azhrei
Copy link
Member

Azhrei commented Feb 13, 2022

There's nothing in your log file to indicate any error, so if it's a Java library, it's being quiet about it. This is likely going to be tough to track down. I'm not the author of this tool, but maybe some additional debugging output surrounding the code that does the image import would help. I'll post again here if it appears any additional logging would help.

@trev-dev
Copy link
Author

Stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants