Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a34860fca | |||
| 56106622b2 |
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@@ -34,4 +34,4 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: git.kaisei.app/amatsugu/aoba:${{ env.VERSION }}
|
tags: git.kaisei.app/amatsugu/aoba:${{ env.VERSION }}
|
||||||
build-args: VERSION=${ env.VERSION }
|
build-args: VERSION=${{ env.VERSION }}
|
||||||
|
|||||||
@@ -132,6 +132,11 @@ public class ThumbnailService(IMongoDatabase db, AobaService aobaService)
|
|||||||
{
|
{
|
||||||
opt.WithCustomArgument($"-vf \"crop='min(in_w,in_h)':'min(in_w,in_h)',scale={w}:{w}\" -loop 0 -r 15")
|
opt.WithCustomArgument($"-vf \"crop='min(in_w,in_h)':'min(in_w,in_h)',scale={w}:{w}\" -loop 0 -r 15")
|
||||||
.ForceFormat("webp");
|
.ForceFormat("webp");
|
||||||
|
}).Configure(cfg =>
|
||||||
|
{
|
||||||
|
#if !DEBUG
|
||||||
|
cfg.BinaryFolder = "/usr/bin";
|
||||||
|
#endif
|
||||||
}).ProcessSynchronously();
|
}).ProcessSynchronously();
|
||||||
output.Position = 0;
|
output.Position = 0;
|
||||||
return output;
|
return output;
|
||||||
|
|||||||
Reference in New Issue
Block a user