Skip to content

fix: metrics output to stderr if stdout is in use - #1240

Merged
MarkCallow merged 3 commits into
KhronosGroup:mainfrom
walcht:metrics-stderr-when-file-output-stdout
Aug 8, 2026
Merged

fix: metrics output to stderr if stdout is in use#1240
MarkCallow merged 3 commits into
KhronosGroup:mainfrom
walcht:metrics-stderr-when-file-output-stdout

Conversation

@walcht

@walcht walcht commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

* PSNR and SSIM metrics now ouput to stderr if stdout is in use.
  This is done to avoid polluting KTX file ouput to stdout which
  causes issues when, for instance, output gets piped to ktx
  extract tool.

Signed-off-by: Walid Chtioui <walid.chtioui.main@gmail.com>
@MarkCallow

MarkCallow commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Windows, MingW and macOS all have test failures, the first two, many, the last, one. The other failures look like some GitHub runner issue. I have triggered rebuilds of those.

Linux too, now that it has got past the runner issue, has many test failures.

Signed-off-by: Walid Chtioui <walid.chtioui.main@gmail.com>
@walcht

walcht commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

I forgot to move parent folders creation before creating the outputFile stream. My local tests passed because I ran the tests before on main branch which created the parent folders.

Anyway, it should be all good now.

@MarkCallow
MarkCallow merged commit 31145d1 into KhronosGroup:main Aug 8, 2026
41 checks passed
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

Successfully merging this pull request may close these issues.

cli: compare-psnr doesn't work when writing ktx2 file to stdout

2 participants