Skip to content

Bug: 无法使用Canvas来进行缩小图片 #251

@Magic-riding

Description

@Magic-riding

Describe the bug

preferSize选择非原始大小的选项,在打开autoResize的开关,之后查询图片会提示 Canvas service is not available, thus cannot resize image now. 并无法改变图片的分辨率。

Steps to reproduce

image
preferSize选择非原始大小的选项,打开autoResize的开关

Expected behavior

能够在开启功能之后能改变图片大小

Screenshots

image

Relevant log output

2024-11-16 15:33:32 [I] canvas canvas started
2024-11-16 15:33:34 [I] loader reload plugin nix:li4h2y
2024-11-16 15:33:34 [I] nix nix is not installed
2024-11-16 15:34:53 [I] loader reload plugin canvas:kzwpe2
2024-11-16 15:35:00 [W] booru Canvas service is not available, thus cannot resize image now.
2024-11-16 15:36:23 [I] loader reload plugin booru:chtlm7
2024-11-16 15:36:32 [W] booru Canvas service is not available, thus cannot resize image now.
2024-11-16 15:37:10 [I] loader reload plugin booru:chtlm7

Launcher

Containers (Docker, Kubernates, etc)

Sources

Danbooru

Versions

System:
OS: Linux 6.8 Alpine Linux
Binaries:
Node: 20.16.0
Yarn: 4.1.1
Koishi:
Core: 4.18.1
Console: 5.29.3

booru: 1.3.0
canvas: 0.2.2 (开启了nix)
downloads: 0.1.3
nix: 0.0.3 (开启了debug)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions