MrPrimate / tokenizer

Tiny yet capable in-game token editor for Foundry VTT
MIT License
29 stars 26 forks source link

Tokenizer is corrupting images #175

Open dubiousgit opened 2 months ago

dubiousgit commented 2 months ago

Not really sure what to do about this one as it was working fine, until it wasn't...

image

Whenever I 'tokenize' an image now, it corrupts as seen in the screenshot.

This doesn't happen if you manually fiddle with the token (the top one in the screenshot) and create it without the automation.

dubiousgit commented 2 months ago

Happens if you 'tokenize' from the compendium browser, or 'automatically' as part of a DDB import.

dubiousgit commented 2 months ago

Tried on v11 and v12 of Foundry, both the same.

MrPrimate commented 2 months ago

I cannot replicate this, please provide:

dubiousgit commented 2 months ago

I cannot replicate this, please provide:

* Exact Foundry and system versions you are using.

The Forge, D&D5e 3.3.1, Foundry v12 Stable (build 331) Done in Firefox (doubt this matters)

* Have you tried with just Tokenizer module enabled?

Yes, other than 'The Forge' which I can't disable, still happens:

image

* Detailed step by step to replicate

Import monsters with D&D importer.

Select 'Tokenize' on import, or do it post-import by right clicking in the compendium.

957 monsters, if it matters.

dubiousgit commented 2 months ago

I should note that I also tried this on a brand new world, same thing happened.

dubiousgit commented 2 months ago

@MrPrimate for the sake of completeness, this is on a new world (test4, not that it matters) with a single import, and auto-tokenize on import:

image

image

MrPrimate commented 2 months ago

If you import with out the auto tokenize selected, does it create a token?

dubiousgit commented 2 months ago

If you import with out the auto tokenize selected, does it create a token?

Yes, and the token looks fine (in that it's the default, square one).

I can also manually add a token with tokenizer fine, though obviously that would be labour intensive.

Only when importing and ticking that box, or right clicking on the compendium and 'auto tokenizing' does it cause the corrupted image.

dubiousgit commented 2 months ago

I do make use of the multi-world 'game manager' feature on Forge, maybe this is causing some sort of confusion with the assets? They share an assets blob as far as I can tell.

MrPrimate commented 2 months ago

I have logged into my Forge account and can't replicate this - you've not run out of space or anything in your Assets folder?

What are the paths set to for tokenizer and ddb importer for saving images?

dubiousgit commented 2 months ago

I have logged into my Forge account and can't replicate this - you've not run out of space or anything in your Assets folder?

What are the paths set to for tokenizer and ddb importer for saving images?

It's a new account, still have several gigs of space.

Paths are the default, (see assets screenshot above).

Is your Forge set to the 'Game Manager' mode?

dubiousgit commented 2 months ago

image

dubiousgit commented 2 months ago

image

Note 'test' was the first one I created, ever, which worked.

dubiousgit commented 2 months ago

I also tried saving as PNG in case it was something weird with webp, but the same thing happens.

MrPrimate commented 2 months ago

I have logged into my Forge account and can't replicate this - you've not run out of space or anything in your Assets folder?

What are the paths set to for tokenizer and ddb importer for saving images?

It's a new account, still have several gigs of space.

Paths are the default, (see assets screenshot above).

Is your Forge set to the 'Game Manager' mode?

I want to see the paths in the settings, as forge has its own unique way of specifying paths.

dubiousgit commented 2 months ago

@MrPrimate these?

image image image

MrPrimate commented 2 months ago

Can you try using Chrome for me rather than Firefox?

dubiousgit commented 2 months ago

@MrPrimate I don't have Chrome specifically installed but I can confirm it worked in a Chromium-based browser!