No description
Find a file
2025-11-19 14:50:14 +00:00
Properties release 2025-07-31 23:56:15 +07:00
.gitignore add scoring infra 2025-11-19 14:50:14 +00:00
appsettings.Development.json release 2025-07-31 23:56:15 +07:00
appsettings.json release 2025-07-31 23:56:15 +07:00
LiloController.cs release 2025-08-01 00:30:05 +07:00
lilos-stitcher.csproj create main branch, add gitignore 2025-08-01 09:59:29 +07:00
lilos-stitcher.http release 2025-07-31 23:56:15 +07:00
lilos-stitcher.sln release 2025-07-31 23:56:15 +07:00
LiloStitcher.cs release 2025-08-01 00:30:05 +07:00
mise.toml add scoring infra 2025-11-19 14:50:14 +00:00
Program.cs release 2025-08-01 00:59:22 +07:00
README.md push the readme 2025-08-01 10:19:01 +07:00

Lilo Stitcher API

An ASP.NET Core Web API for stitching, cropping, and scaling tiled images (720×720).

Prerequisites

  • .NET 9.0 SDK
  • ASSET_PATH_RO environment variable containing the path to tiles directory (1,705 PNGs named A1.png…AE55.png)

Build & Run

cd lilo-stitcher
dotnet clean
dotnet run

By default, the API listens on http://localhost:5243 and https://localhost:7121 (see launchSettings.json).

Usage

Endpoint: POST /api/image/generate

Request Body (JSON):

{
  "canvas_rect": "A1:H12",
  "crop_offset": [0.25, 0.25],
  "crop_size":   [0.5,  0.5],
  "output_scale": 1.0
}

Example (using curl):

curl -X POST http://localhost:5243/api/image/generate \
     -H "Content-Type: application/json" \
     -o output.png \
     -d '{"canvas_rect":"A1:H12","crop_offset":[0.25,0.25],"crop_size":[0.5,0.5],"output_scale":1.0}'

The API will return a image/png containing the stitched, cropped, and scaled result.