Skip to content

image processing server for bgm.tv

Notifications You must be signed in to change notification settings

bangumi/img-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

adbb8af · Mar 13, 2025
Mar 13, 2025
Dec 22, 2022
Feb 28, 2025
Nov 22, 2024
Dec 17, 2023
Mar 13, 2025
Mar 13, 2025
Dec 21, 2024
Aug 27, 2024
Dec 16, 2023
Oct 10, 2024
Dec 17, 2023
Dec 28, 2022

Repository files navigation

readme

动态切图服务器

GET /r/{size}/{path}

example:

size 应该是 ${width} 或者 ${width}x${height} 格式,如 400200x0, 200x200 0x200200200x0含义相同。

width 或者 height 为 0 表示仅缩放,同时不为0的情况为缩放+裁剪。两种情况下图片的宽高比均会保持不变。

可用的 width height

  • 100
  • 200
  • 400
  • 600
  • 800
  • 1200

不合法的尺寸参数会直接返回 bad request

本仓库的代码仅仅是 http gateway,实际的图片处理由 imaginary 进行,处理后的图片储存在 s3 (minio)。