mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 10:26:52 +00:00
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:
@@ -377,6 +377,10 @@ export async function transcodeImageActivity(
|
||||
outputFile,
|
||||
params.imageSpec.width,
|
||||
params.imageSpec.quality,
|
||||
{
|
||||
height: params.imageSpec.height || null,
|
||||
isPreview: params.imageSpec.isPreview ?? false,
|
||||
},
|
||||
)
|
||||
const buffer = fs.readFileSync(outputFile)
|
||||
await s3Service.putObject(bucket, key, buffer, buffer.length, 'image/webp')
|
||||
|
||||
Reference in New Issue
Block a user