feat(transcode): update preview thumbnail resolution to 300p with max length constraint (#281)

* feat(transcode): update preview thumbnail resolution to 300p with max length constraint

* fix(transcode): address code review feedback on preview thumbnail transcoding
This commit is contained in:
Yiling-J
2026-08-08 15:17:51 +08:00
committed by GitHub
parent c91867b8eb
commit ee4933a4f8
10 changed files with 179 additions and 24 deletions
@@ -115,8 +115,8 @@ describe('transcodeImageWorkflow', () => {
mockActivities.transcodeImageActivity.mockResolvedValue({
key: 't.webp',
width: 480,
height: 480,
width: 300,
height: 300,
format: 'webp',
})
@@ -132,8 +132,8 @@ describe('transcodeImageWorkflow', () => {
mediaInfo: expect.objectContaining({
thumbnail: expect.objectContaining({
key: 't.webp',
width: 480,
height: 480,
width: 300,
height: 300,
}),
}),
})