oiiotool DWAA unexpected behavior #3883
-
Howdy all, I've been messing around making a batch texture conversion script with oiiotool. I want to resave a bunch of 16- and 32-bit PIZ Substance Painter exports as DWAA. In my PowerShell script this
creates DWAA 45 EXRs for all the 16-bit files and ZIP for the 32-bit ones. Is this expected behavior? I suppose it's logical that you wouldn't want 32-bit files to be in a compressed format, but it seems odd that it just silently does this. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Can you try this sequence and show us the full output, please?
|
Beta Was this translation helpful? Give feedback.
-
The weird thing is that when I look at those lines, I have a strong sense of deja vu, as if I have fairly recently noticed this very discrepancy between the comment and code, and in my memory, I already fixed it. Is this just a memory glitch on my part? Or did I fix it in a branch and somehow forget to ever submit the PR? |
Beta Was this translation helpful? Give feedback.
-
Proposed fix: #3884 |
Beta Was this translation helpful? Give feedback.
-
@lgritz Do you expect this fix to go live soon? I can build with vcpkg, wondering if I should attempt to patch the file myself in the meantime. Thank you! |
Beta Was this translation helpful? Give feedback.
I think the right thing to do is make the switch to zip happen only for tiled images, i.e. fix the comment and add a
to the conditional so that it doesn't accidentally sweep up ALL single channel scanline files. Make sure it passes tests, and hope we're not making a mistake.
There is a small chance that if there are also problems with dwa for certain sized 1-channel scanline images after all, this will expose that bug that we had been avoiding. Does anybody want to speak for or against going for it?