Add config options for attachment thumbnails (#512)

* Add config options for attachment thumbnails

Documented new configuration properties to disable attachment thumbnail generation and set concurrent threads for thumbnail creation.

* Add thumbnail quality config option to docs

Documents the new `halo.attachment.thumbnail.quality` configuration for controlling attachment thumbnail generation quality (0-1).
This commit is contained in:
Ryan Wang
2025-10-27 17:56:38 +08:00
committed by GitHub
parent 4f0a5d275d
commit 6267192752

View File

@@ -85,6 +85,9 @@ spring:
| `halo.security.two-factor-auth.disabled` | 是否禁用系统全局的两步验证 | `false` |
| `halo.attachment.resource-mappings[0].pathPattern` | 附件资源代理匹配规则,这个设置通常适用于从其他平台迁移的场景 | `/upload/**` |
| `halo.attachment.resource-mappings[0].locations` | 附件资源代理目录,只能放置在[工作目录](../prepare.md#工作目录)的 `attachments` 目录 | `migrate-from-1.x` |
| `halo.attachment.thumbnail.disabled` | 是否禁用附件缩略图功能,如果不需要此功能,可以选择禁用 | false |
| `halo.attachment.thumbnail.concurrent-threads` | 生成附件缩略图的并发数 | 1 |
| `halo.attachment.thumbnail.quality` | 附件缩略图的生成质量,数值为 0-1 之间 | - |
通常用于开发环境的配置: