Project

General

Profile

Actions

Feasibility Study #10131

closed

Feature #9690: Qubebiz POS content preview

Compress content management images on upload

Added by Chong Yit Ren 10 days ago. Updated 9 days ago.

Status:
Closed
Assignee:
Start date:
16/11/2026
Due date:
16/11/2026
% Done:

100%

Estimated time:
Complete Date:
Actions #1

Updated by Chong Yit Ren 9 days ago

  • Status changed from New to Dev In Progress
Actions #2

Updated by Chong Yit Ren 9 days ago

  • 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.
Actions #3

Updated by Chong Yit Ren 9 days ago

  • Description updated (diff)
Actions

Also available in: Atom PDF