From 1565fab1600a893bbb7a06c3775413dd27f0cb55 Mon Sep 17 00:00:00 2001 From: Sophie Herold Date: Fri, 31 Jan 2025 14:10:59 +0100 Subject: [PATCH] Prepare 48.beta --- Cargo.lock | 2 +- Cargo.toml | 2 +- NEWS | 37 +++++++++++++++++++++++++ data/org.gnome.Loupe.metainfo.xml.in.in | 2 +- meson.build | 6 ++-- news.d/48.beta/released | 1 + src/widgets/image.rs | 2 +- src/widgets/image/input_handling.rs | 2 +- src/widgets/image/zoom.rs | 2 +- 9 files changed, 47 insertions(+), 9 deletions(-) create mode 100644 news.d/48.beta/released diff --git a/Cargo.lock b/Cargo.lock index df0324f..0c7aed6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1465,7 +1465,7 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" [[package]] name = "loupe" -version = "48.0.0-alpha" +version = "48.0.0-beta" dependencies = [ "anyhow", "arc-swap", diff --git a/Cargo.toml b/Cargo.toml index e8082cd..2ddacd1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "loupe" -version = "48.0.0-alpha" +version = "48.0.0-beta" edition = "2021" rust-version = "1.80" license = "GPL-3.0-or-later" diff --git a/NEWS b/NEWS index c562c7c..9e5c9a9 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,40 @@ +## 48.beta (2025-01-31) + +### Added + +- edit/crop: Add back the selection of the aspect ratio for aspect ratios. +- edit/crop: Added keyboard shortcuts for some editing operations. +- edit/crop: Allow dragging selection from the edges, not only the corners. +- edit/crop: Apply crop selections on operations like rotate/flip or save. +- edit: Add menu with option to "Save As" or overwrite original. +- edit: Allow to cancel saving operation via the "Cancel" button. +- edit: Give visual feedback while saving image via spinner overlay. +- edit: Show saved image after saving. +- edit: `Ctrl+S` and `Ctrl+Shift+S` shortcuts save images and `Esc` to exit the editing view. + +### Fixed + +- Disable all zoom buttons and editing button if image fails to load. +- Fix allocation warnings by not causing resizes during allocation. +- edit/crop: Set aspect ratio to "Free" on reset. +- edit/crop: Work around GTK gesture bug that blocks the drag gesture after clicking the apply button until one additional click has been done. +- edit: Disable save actions when saving or no changes have been done. + +### Changed + +- edit/crop: Enable the "Reset" button when the crop selection change, even if not applied. +- edit/crop: Move crop apply button into crop selection as small checkmark. +- edit/crop: Refactor a lot of the inner working to make code simpler and more robust. +- edit: Add an "(Edited)" suffix to the suggested filename when using "Save As" +- edit: Various design and detail tweaks. +- zoom: Allow zoom levels smaller than best fit via the zoom menu. + +## 47.4 (2025-01-13) + +### Fixed + +- Sometimes SVGs are not shown in the print preview. + ## 48.alpha (2025-01-07) ### Added diff --git a/data/org.gnome.Loupe.metainfo.xml.in.in b/data/org.gnome.Loupe.metainfo.xml.in.in index 4f9ae84..240f574 100644 --- a/data/org.gnome.Loupe.metainfo.xml.in.in +++ b/data/org.gnome.Loupe.metainfo.xml.in.in @@ -76,7 +76,7 @@ - +

This release adds image editing support for PNGs and JPEGs. Images can be cropped, rotated, and flipped. New zoom controls allow setting a specific zoom level and features a more compact style. Support for additional metadata formats like XMP and new image information fields have been added as well.

diff --git a/meson.build b/meson.build index 52433d9..c714ddf 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,7 @@ project( 'loupe', 'rust', - version: '48.alpha', + version: '48.beta', meson_version: '>= 0.59.0', default_options: [ 'warning_level=2', @@ -11,8 +11,8 @@ project( i18n = import('i18n') gnome = import('gnome') -dependency('gtk4', version: '>=4.15.3') -dependency('libadwaita-1', version: '>=1.6.alpha') +dependency('gtk4', version: '>=4.16.0') +dependency('libadwaita-1', version: '>=1.6.0') dependency('gweather4', version: '>=4.0.0') # Required by glycin crate dependency('lcms2', version: '>=2.12.0') diff --git a/news.d/48.beta/released b/news.d/48.beta/released new file mode 100644 index 0000000..27cca70 --- /dev/null +++ b/news.d/48.beta/released @@ -0,0 +1 @@ +2025-01-31 diff --git a/src/widgets/image.rs b/src/widgets/image.rs index 921d01a..9746963 100644 --- a/src/widgets/image.rs +++ b/src/widgets/image.rs @@ -1,5 +1,5 @@ // Copyright (c) 2021 Christopher Davis -// Copyright (c) 2022-2024 Sophie Herold +// Copyright (c) 2022-2025 Sophie Herold // Copyright (c) 2023 Lubosz Sarnecki // Copyright (c) 2024 kramo // Copyright (c) 2024 Maximiliano Sandoval diff --git a/src/widgets/image/input_handling.rs b/src/widgets/image/input_handling.rs index 3df1b97..d21e205 100644 --- a/src/widgets/image/input_handling.rs +++ b/src/widgets/image/input_handling.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2023-2024 Sophie Herold +// Copyright (c) 2023-2025 Sophie Herold // Copyright (c) 2024 Fina Wilke // // This program is free software: you can redistribute it and/or modify diff --git a/src/widgets/image/zoom.rs b/src/widgets/image/zoom.rs index 3d0f690..2a6f19f 100644 --- a/src/widgets/image/zoom.rs +++ b/src/widgets/image/zoom.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2023-2024 Sophie Herold +// Copyright (c) 2023-2025 Sophie Herold // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by