Skip to content

fix: language setting not taking effect + FFmpeg stdout deadlock - #823

Open
alperenalbay wants to merge 3 commits into
Tichau:integrationfrom
alperenalbay:integration
Open

alperenalbay wants to merge 3 commits into
Tichau:integrationfrom
alperenalbay:integration

Conversation

@alperenalbay

@alperenalbay alperenalbay commented Nov 10, 2026 •

Copy link
Copy Markdown

This PR introduces JPEG XL (JXL) support, including a new "To Jxl" conversion preset and integration into the image conversion pipeline. It also improves language detection, strengthens error handling for application settings, updates dependencies, and makes localization support more resilient to build and deployment issues.

alperenalbay and others added 3 commits June 25, 2026 11:11
New OutputType Jxl routed to the ImageMagick job (quality maps to JXL distance, 100 = lossless). New 'To Jxl' default preset; .jxl added as image input extension and as input for the image presets. Magick.NET-Q16-AnyCPU 14.10.2 -> 14.17.2 (native libjxl required; 15.x targets net10.0). Settings: Avif and Jxl now selectable in the output type dropdown and show the quality slider (Avif was missing). Installer product version 2.2.0 -> 2.2.1. Add NuGet.config with nuget.org source for restore.
@alperenalbay

Copy link
Copy Markdown
Author

This pull request introduces support for the JPEG XL (.jxl) image format, adds a new "To Jxl" conversion preset, and significantly improves language detection and error handling around application language settings. It also updates dependencies and refines the post-build process to make language support more robust and resilient to build issues. Below are the most important changes grouped by theme.

JPEG XL (JXL) format support:

Added OutputType.Jxl to the OutputType enum and included .jxl as a compatible input extension and recognized image category. (Application/FileConverter/OutputType.cs, Application/FileConverter/Helpers.cs, Application/FileConverter/Settings.default.xml) [1] [2] [3] [4] [5] [6]
Implemented JXL handling in the conversion pipeline, including reading and writing logic in ConversionJobFactory, ConversionJob_ImageMagick, and default settings. (Application/FileConverter/ConversionJobs/ConversionJobFactory.cs, Application/FileConverter/ConversionJobs/ConversionJob_ImageMagick.cs, Application/FileConverter/ConversionPreset/ConversionPreset.cs) [1] [2] [3] [4]
Added a "To Jxl" preset to Settings.default.xml and included .jxl as an input type for other relevant presets. (Application/FileConverter/Settings.default.xml)
Language detection and resilience:

Enhanced supported culture detection to probe both legacy and standard .NET satellite assembly locations, always including English, making language selection robust even if the post-build copy step fails. (Application/FileConverter/Helpers.cs)
Refined the post-build event to copy (not move) satellite assemblies, preserving the default .NET layout and improving resilience for language loading. (Application/FileConverter/FileConverter.csproj)
Error handling improvements:

Wrapped application language setting in a try-catch to prevent exceptions from silently closing the Settings window. Logs errors if language application fails. (Application/FileConverter/Settings.cs)
Wrapped settings save and close operations in try-catch blocks in SettingsViewModel, logging and displaying errors instead of silently failing, addressing long-standing issues where language settings had no effect. (Application/FileConverter/ViewModels/SettingsViewModel.cs) [1] [2]
Dependency and pipeline updates:

Updated Magick.NET-Q16-AnyCPU to version 14.17.2 for improved image format support. (Application/FileConverter/FileConverter.csproj)
Adjusted FFMPEG conversion job to avoid redirecting stdout and removed the -progress pipe:1 argument to prevent deadlocks and regressions. (Application/FileConverter/ConversionJobs/ConversionJob_FFMPEG.cs) [1] [2]
UI and preset management:

Added OutputType.Jxl to the settings UI and preset management logic. (Application/FileConverter/ViewModels/SettingsViewModel.cs)
These changes collectively add JXL support, improve user experience with language settings, and make the application more robust and maintainable.

This branch has not been deployed

No deployments
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.

1 participant