Commit Graph
15 Commits
Author SHA1 Message Date
zyberzeroandClaude Opus 5.5 ac9a0b43a8 Add saliency-based smart crop before resize
Replace the center-crop cover resize with a Sobel edge-density search
that picks the target-aspect window with the most edge energy, so a
subject off-center isn't sliced when the input aspect differs from the
frame's. Failures fall back to the centered crop. Golden fixtures are
regenerated and an asymmetric-edges input exercises the bias.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-03 19:03:22 +01:00
zyberzero 96934b6824 Add support for forwarding headers 2026-06-07 20:20:44 +02:00
zyberzero d5ca01e636 Add support for multipart/data uploads in swagger 2026-06-07 19:14:14 +02:00
zyberzero f1e36621d2 Add Swagger 2026-06-07 18:51:13 +02:00
zyberzeroandClaude Opus 4.7 fddb674a79 9.1 Serilog wiring
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-07 16:08:07 +02:00
zyberzeroandClaude Opus 4.7 d6ebf89468 8.3 Wrap full pipeline in lock
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-07 16:05:02 +02:00
zyberzeroandClaude Opus 4.7 475e8988b5 8.1 ApiKeyMiddleware
Enforce X-Api-Key on /api/* requests with constant-time comparison.
/i/{mac}.png and /health remain unauthenticated. No-op when the
configured key is empty.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-07 16:01:25 +02:00
zyberzeroandClaude Opus 4.7 3bef27b286 7.1 IImageUrlFetcher
Add IImageUrlFetcher with HttpClient-backed implementation that enforces
UrlFetch.TimeoutSeconds, MaxRedirects, and MaxBytes. Surfaces failures as
ImageFetchException so the URL-ingestion endpoint can map them to 502.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-07 15:51:16 +02:00
zyberzeroandClaude Opus 4.7 a6c750d5c4 6.1 MqttPublisher hosted service
Persistent MQTTnet v4 IMqttClient wrapped in a BackgroundService:
attempts to connect on StartAsync (logging and continuing on failure)
and reconnects on a 5s loop while running. Exposes IsConnected so
6.4 can wire it into /health later. Honors username/password and
UseTls from MqttOptions; clean session is disabled.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-07 15:10:59 +02:00
zyberzeroandClaude Opus 4.7 abe896a7ab 5.1 FramesController.UploadImage (multipart)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-07 14:46:00 +02:00
zyberzeroandClaude Opus 4.7 0dc0da8de1 2.3 Startup vs reload asymmetry (FramesRegistry)
FramesRegistry validates strictly on construction (fail-fast at startup) and
leniently on hot-reload (skip invalid frames with a warning, keep valid ones
serving). Exposes TryGetByName/TryGetByMac over the current valid set.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-07 14:27:20 +02:00
zyberzeroandClaude Opus 4.7 d0fa755534 2.2 FramesOptions (frames.json binding + validator)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-07 14:21:24 +02:00
zyberzeroandClaude Opus 4.7 20e6aafaa1 2.1 Configuration POCOs (Mqtt, Storage, UrlFetch, ApiKey)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-07 14:15:34 +02:00
zyberzeroandClaude Opus 4.7 65c398a578 0.2 Minimal Program.cs
Wire up MVC controllers and add GET /health returning
{ status: "Healthy", mqttConnected: false } (mqttConnected hardcoded
until the MQTT publisher lands). Switch launchSettings.json to port
8080 so the DoD curl works out of the box.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-07 13:48:02 +02:00
zyberzeroandClaude Opus 4.7 5f851ed621 0.1 Solution + projects
Scaffold FrameProcessor.slnx with src/FrameProcessor (net10.0 Web SDK) and
tests/FrameProcessor.Tests (xUnit) plus .gitignore and global.json pinning
the .NET 10 SDK. dotnet build, dotnet test, and dotnet format --verify-no-changes
all pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-07 13:45:39 +02:00