diff --git a/.gitignore b/.gitignore index c7b5b51..48f0f62 100644 --- a/.gitignore +++ b/.gitignore @@ -49,7 +49,7 @@ app.*.map.json *.deb *.tar.gz *.exe -!dist/imajviewer_1.4.1_amd64.deb +!dist/imajviewer_1.4.2_amd64.deb !dist/imajviewer_setup_1.1.0.exe deb/usr/lib/imajviewer/ release/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 95fb163..f91bb5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to imajViewer are documented in this file. ## [Unreleased] +## [1.4.2] - 2026-10-12 + +### Fixed +- Crop save dropped the blue channel's brightness/contrast offset (matrix index `m[13]`, the + alpha coefficient, instead of `m[14]`), so saved JPEGs came out with a color cast whenever + brightness or contrast was applied. Saturation/rotate were unaffected. + ## [1.4.1] - 2026-10-11 ### Fixed diff --git a/dist/imajviewer_1.4.1_amd64.deb b/dist/imajviewer_1.4.2_amd64.deb similarity index 62% rename from dist/imajviewer_1.4.1_amd64.deb rename to dist/imajviewer_1.4.2_amd64.deb index d9d09a0..f74aa20 100644 Binary files a/dist/imajviewer_1.4.1_amd64.deb and b/dist/imajviewer_1.4.2_amd64.deb differ diff --git a/lib/services/crop_save_service.dart b/lib/services/crop_save_service.dart index da6009d..b784865 100644 --- a/lib/services/crop_save_service.dart +++ b/lib/services/crop_save_service.dart @@ -143,7 +143,7 @@ class CropSaveService { final r = pixel.r.toDouble(), g = pixel.g.toDouble(), b = pixel.b.toDouble(); pixel.r = (m[0] * r + m[1] * g + m[2] * b + m[4]).clamp(0, 255).round(); pixel.g = (m[5] * r + m[6] * g + m[7] * b + m[9]).clamp(0, 255).round(); - pixel.b = (m[10] * r + m[11] * g + m[12] * b + m[13]).clamp(0, 255).round(); + pixel.b = (m[10] * r + m[11] * g + m[12] * b + m[14]).clamp(0, 255).round(); } } } diff --git a/pubspec.yaml b/pubspec.yaml index ffa3651..513845e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: imajviewer description: "Ultra-lightweight image viewer for Linux and Windows." publish_to: 'none' -version: 1.4.1+9 +version: 1.4.2+10 msix_config: display_name: ImajViewer