Feasibility Study #10131
closed
- Status changed from New to Dev In Progress
- Status changed from Dev In Progress to Closed
- % Done changed from 0 to 100
Feasible. A working version is in place: content images are compressed by the API when content is saved.
Library: SkiaSharp. The API runs in a Linux Docker container on the servers. .NET’s built-in image handling (System.Drawing) only works on Windows, so a cross-platform library is needed. SkiaSharp runs on both Windows and Linux, is free (MIT licence), and is maintained by Microsoft. ImageSharp was the other option, but it would likely require a paid licence.
Current behaviour:
- All content images are converted to WebP.
- Images are resized to at most 1920 px on the longest side, keeping their proportions (the kiosk is 1080 × 1920).
- Each image aims to stay under 300 KB.
- The admin page shows the compressed image and its before-and-after size before saving.
- Content now supports up to 10 images, each with its own display time.
- Description updated (diff)
Also available in: Atom
PDF