Commit graph

163 commits

Author SHA1 Message Date
988a3d94e1 feat: Implement face encoder functionality with GPU support and recursive option 2026-05-09 12:09:05 +02:00
daf3b5ad2c feat: Enhance Windows Avalonia build workflow with NuGet source validation and configuration
Some checks failed
Build Windows Avalonia / build (push) Failing after 1m4s
Build Windows Avalonia / release (push) Has been skipped
2026-03-16 22:22:13 +01:00
3ddaf31340 feat: Add build workflow for Windows Avalonia with Docker support
Some checks failed
Build Windows Avalonia / build (push) Failing after 1m15s
Build Windows Avalonia / release (push) Has been skipped
2026-03-16 22:14:49 +01:00
0d6435520b Merge branch 'avalonia' into 'develop'
Enhance image processing performance and flexibility by introducing atomic...

See merge request MaddoScientisto/Catalog!2
2026-03-14 08:48:17 +00:00
b194a2424c feat: Update Microsoft.Extensions packages to version 10.0.5 for improved functionality and stability 2026-03-14 09:44:21 +01:00
901dc02ca8 feat: Enhance UI with new styles, improved layout, and icon integration across various views 2026-03-12 23:40:41 +01:00
fa09f7c324 feat: Update FaceAiTabView to support output file selection and validation for .pkl files 2026-03-12 23:24:44 +01:00
41d9dacfac feat: Replace Moq and FluentAssertions with NSubstitute and Shouldly in test projects 2026-03-12 19:40:58 +01:00
3c722a66df feat: Add AI extraction service and related view models
- Introduced `IAiExtractionService` and its implementation `AiExtractionService` for processing images and extracting text.
- Created `AiResultItem` model to hold results from AI extraction.
- Added `ImageProcessingCoordinator` to manage image processing tasks and provide progress updates.
- Implemented view models for AI settings, path settings, processing state, race upload settings, and visual settings to support UI binding.
- Updated `Program.cs` to register new services and dependencies.
- Modified project file to skip MinVer execution during local builds.
2026-03-12 18:48:13 +01:00
bdf503c627 feat: Refactor RaceUploadCommunicationClient and RaceUploadTabView to improve HttpClient management and resource disposal 2026-03-08 14:30:37 +01:00
b29cc95a1e feat: Enhance Avalonia UI with compact styles and improved layout for various views; adjust margins and paddings for a denser interface 2026-03-08 13:44:09 +01:00
e80b427fcc feat: Update Avalonia UI with new tab icons and styles; upgrade AutoMapper and Avalonia packages 2026-03-08 12:09:58 +01:00
d62342aae1 Implement ImageCreatorImageSharp using SixLabors.ImageSharp for image processing
- Added ImageCreatorImageSharp class for image creation, handling EXIF orientation, resizing, and saving images.
- Replaced GDI+ dependencies with ImageSharp for cross-platform compatibility.
- Introduced methods for drawing text and logos on images, including handling transparency and positioning.
- Created a test plan for validating ImageCreatorImageSharp functionality, focusing on image resizing, text positioning, logo features, and EXIF orientation.
- Added documentation for the test plan outlining goals, project structure, and implementation notes.
2026-03-08 11:17:47 +01:00
90fb03bf0c Add new tab views for image catalog functionality
- Implement GeneralTabView for source and destination path settings, options, processing parameters, and image library selection.
- Create LogoTabView for logo selection, preview, and positioning options.
- Add PhotoTabView for photo dimensions and JPEG quality settings.
- Introduce RaceUploadTabView for race setup and processed photo upload functionality, including API integration.
- Develop TextTabView for horizontal and vertical text settings, font options, and race time configuration.
- Implement ThumbnailsTabView for thumbnail creation options and settings.
2026-02-28 21:48:05 +01:00
6cf0c029fc feat: Implement Face AI functionality and race upload settings in Avalonia UI 2026-02-28 21:34:45 +01:00
15b1da4371 feat: Add race upload functionality and file transfer endpoints
- Implemented IRaceUploadCommunicationClient with methods for saving races, creating race points, indexing race points, retrieving race details, and uploading files to the receiver.
- Added ReceiveFilePath option to CatalogCommunicationOptions for file transfer configuration.
- Enhanced CatalogCommunicationServiceCollectionExtensions to validate ReceiveFilePath.
- Developed RaceUploadCommunicationClient to handle race-related API interactions, including saving race data and uploading processed images.
- Updated API documentation to reflect new race upload and file transfer endpoints.
- Modified Avalonia UI to support race creation and processed image uploads, including new input fields and buttons.
- Introduced RaceSaveRequest and ReceiveFileUploadRequest models for structured data handling.
2026-02-28 16:54:08 +01:00
4a0973b681 Added avalonia integration and remote proof of concept 2026-02-28 15:30:57 +01:00
775080a178 Removed old projects 2026-02-26 21:19:03 +01:00
73597689ed Cross-platform: remove System.Drawing deps, add #if WINDOWS
Refactored image creation APIs to use byte[] for logo data instead of System.Drawing.Image, enabling cross-platform support. Wrapped all GDI+/Windows-specific code in #if WINDOWS and updated project files to conditionally include Windows-only dependencies. Defaulted to ImageSharp on non-Windows, and updated UI and settings to reflect platform capabilities. Application now builds and runs on Linux/macOS with Avalonia and ImageSharp, while retaining full Windows functionality.
2026-02-26 19:17:23 +01:00
311b3e76f0 Add Avalonia UI frontend alongside WinForms and WPF
Introduce Avalonia as a new cross-platform UI option, including new XAML and code-behind files for the application and main window. Update Program.cs to support a --avalonia launch argument and add corresponding launch profile. Integrate Avalonia NuGet packages and ensure DataModel supports UI-thread invocation for all frontends. All business logic and state are shared via DI, enabling consistent behavior across WinForms, WPF, and Avalonia.
2026-02-26 18:43:07 +01:00
3ae4da3e49 Enhance publish_release job: export version and add release metadata for automated releases 2026-02-22 14:51:44 +01:00
93413b0fe9 Made trimmed false 2026-02-22 11:48:32 +01:00
3a964bbbcf Refactor CI pipeline: replace minversion file generation with single-file publish for downstream jobs 2026-02-22 11:38:15 +01:00
335da52abf Add minversion file generation to build output for downstream jobs 2026-02-22 00:57:23 +01:00
1bb0176c92 Removed tags only from publish job 2026-02-21 20:11:46 +01:00
f8d4687a97 Refactor CI pipeline for GitLab: streamline publish_release job and improve artifact handling 2026-02-21 20:01:31 +01:00
900e8b6bf8 Update CI configuration and assembly information; remove log file and add logo image 2026-02-21 19:03:02 +01:00
d068b4b3e1 Support UI selection via --wpf command-line argument
Refactored Program.cs to accept command-line arguments and select between WinForms (default) and WPF UI based on the presence of --wpf. Removed old commented-out UI selection code. Updated launchSettings.json to provide separate profiles for WinForms and WPF launches. If WPF is requested but unavailable, the app falls back to WinForms.
2026-02-21 17:27:16 +01:00
67f207c05b Refactor UI: reorganize options and improve color picker
- Moved "Create Thumbnails" checkbox to the Thumbnails section.
- Relocated "Add Time" and "Add Race Time" controls to a new "Tempo Gara" section in the text options area.
- Enabled multiline input and wrapping for the Vertical Text box.
- Replaced text color selection with MahApps ColorPicker for better UX.
- Moved "Select Transparent Color" button to the logo options section.
- Made minor UI layout improvements for clarity.
2026-02-21 17:22:46 +01:00
9007a27fb2 Upgrade UI to MahApps.Metro with runtime theming
Modernize WPF UI using MahApps.Metro: switch MainWindow to MetroWindow, add MetroTabControl/MetroTabItem, custom tab styles, and icon-based theme toggle. Move version display to window commands. Integrate MahApps resource dictionaries and ThemeManager for runtime theme switching. Update startup logic for proper theming. WinForms fallback retained.
2026-02-21 16:49:13 +01:00
ec4635a37f Add Material icons to UI and refactor theme resources
Integrated MahApps.Metro.IconPacks for Material icons in tab headers and buttons, enhancing visual clarity and user experience. Refactored resource dictionary to define theme brushes at the top level for easier theme switching. All button content now combines icons and text for a more modern interface. No functional changes; UI/UX improvements only.
2026-02-21 16:04:58 +01:00
c70ab9e5de Renamed image creators 2026-02-21 15:53:52 +01:00
4091fb78c5 Center each text line individually when drawing on image
Updated text rendering logic to center each line horizontally
based on its estimated width, ensuring multi-line text is
visually centered. Previously, all lines were drawn at a fixed
horizontal position. Both shadow and main text now use the
calculated centered position.
2026-02-21 15:46:03 +01:00
7e1ca95a25 Improve text overlay for rotated and multi-line images
- Use vertical text variant (TestoFirmaV) for rotated images to ensure correct orientation of overlays.
- Adjust font sizing logic for multi-line text to better fit within image bounds, accounting for line count and spacing.
- Set rotation flags (FotoRuotaADestra, FotoRuotaASinistra) before drawing text, enabling correct text variant selection.
- Ensure vertical text field is initialized from settings for consistent behavior.
2026-02-21 15:43:26 +01:00
bbda970d57 Remove EXIF orientation tag after image processing
Ensures EXIF orientation is cleared when cloning and after rotation,
preventing incorrect display in EXIF-aware viewers. Failures are
logged as debug messages without interrupting processing.
2026-02-21 14:12:15 +01:00
f4893a39e9 Improve multi-line text, logo, and version display
- Enhance ImageCreatorAlternate to support multi-line text rendering with correct sizing, spacing, and shadow for each line.
- Only draw logos on non-thumbnail images to match GDI behavior.
- Add a status bar to MainWindow showing the app version at runtime.
- Upgrade MinVer to 7.0.0 and adjust versioning to avoid WPF/XAML assembly identity issues.
- Refactor XAML layout to accommodate the new status bar.
2026-02-17 20:51:35 +01:00
8db7ee8075 Support NuGet auth fallback and add feed diagnostics
Enhance private NuGet source setup in build_windows and publish_release jobs to support fallback authentication using NUGET_USERNAME/NUGET_PASSWORD when CI_JOB_TOKEN is unavailable. Update log messages for clarity. Add diagnostic steps in build_windows to verify NuGet feed and package visibility using configured credentials. No changes to core build or publish logic.
2026-02-17 00:07:55 +01:00
4569e001c8 Update NuGet auth to use CI_JOB_TOKEN in CI scripts
Switched private NuGet source authentication in build_windows and publish_release jobs to use CI_JOB_TOKEN instead of NUGET_USERNAME/NUGET_PASSWORD. Updated related log messages and ensured PowerShell variable usage is correct for environment variables. This improves compatibility with GitLab CI best practices.
2026-02-16 23:54:32 +01:00
c8d6258556 Changed nuget credentials to the CI token 2026-02-16 23:26:17 +01:00
e556d74fd1 Update NuGet source config and add packageSourceMapping
Renamed the private NuGet source from 'GitLab' to 'Nuget-GitLab-AIFotoONLUS' in CI scripts for clarity and consistency. Added a repository-level NuGet.Config with packageSourceMapping to ensure only specific private packages are restored from the GitLab feed, preventing 401 errors when restoring public packages from nuget.org.
2026-02-16 23:12:57 +01:00
38cf61ab33 Added variables for nuget 2026-02-16 22:53:48 +01:00
90c50358d1 Install .net sdk 10 on runner 2026-02-16 22:31:13 +01:00
3898c002f2 Fixed shared runner tag 2026-02-16 22:17:43 +01:00
b6455a4bcb Added windows runner 2026-02-16 22:07:50 +01:00
16aff04ccd Updated runner 2026-02-16 22:01:16 +01:00
da9d9875b0 Switch to MinVer, add CI/CD, unify thumbnail options
- Add .gitlab-ci.yml for Windows CI/CD: build, publish, and GitLab Release with artifact upload
- Replace GitVersion.MsBuild with MinVer for versioning; update all versioning logic in .csproj
- Remove GitVersion CLI fallback for Visual Studio builds
- Update post-publish renaming to use MinVer's Version property
- Replace multiple thumbnail text checkboxes with a single ComboBox selector in MainWindow.xaml
- Change default UI startup: prefer WPF MainWindow, fallback to WinForms MainForm
2026-02-16 21:49:46 +01:00
d13ec8abdf Refactor thumbnail options to enum and ComboBox UI
Replaced multiple mutually-exclusive boolean properties for thumbnail text options with a single enum (`ThumbnailOption`) in the data model. Updated WinForms UI to use a ComboBox instead of radio buttons for selecting thumbnail mode. Adjusted designer, mapping profile, settings DTO, and settings service for enum support and backward compatibility. Simplified thumbnail generation logic and improved maintainability by ensuring only one mode can be selected at a time.
2026-02-16 19:55:37 +01:00
214e540170 Mutually exclusive thumbnail mode selection in UI
Implement mutually exclusive logic for thumbnail display modes in DataModel and MainForm. Add ThumbnailMode property for authoritative state. Replace radio button bindings with event handlers. Synchronize UI with model changes. Explicitly map thumbnail flags to PicSettings. Force WinForms startup, disabling WPF branch.
2026-02-16 18:58:15 +01:00
6a5173a20d Add AI/OCR extraction feature with UI and CSV export
Integrates optional AI/OCR (AIFotoONLUS.Core) support to extract numbers from images after processing. Adds new "AI" tab in the UI for enabling extraction, selecting models folder, specifying CSV output, and previewing results. Results can be exported to CSV. Uses reflection for AI library invocation, with fallback simulation if unavailable. Persists new AI settings. Updates related NuGet packages and adds theme resources.
2026-02-16 18:37:05 +01:00
10cc574acb Add WPF UI alongside WinForms; improve cancellation logic
Introduced MainWindow.xaml and code-behind for a modern WPF interface with tabbed settings. Enabled WPF in project file. Refactored startup to launch WPF or WinForms UI based on availability. Registered WPF MainWindow in DI. Improved DataModel cancellation to be synchronous and log exceptions. Minor logging and comment updates. App now supports both WPF and WinForms frontends.
2026-02-15 11:14:19 +01:00