Add lower-corner layouts, custom blur backgrounds, and classic blur fill.
Ship composition families, optional background images for lower-corner templates, and an optional blurred cover fill for classic letterbox.
This commit is contained in:
+10
-6
@@ -70,21 +70,25 @@ async function processJobItem(data: VideoJobData) {
|
||||
includeWatermark: item.includeWatermark,
|
||||
songTitle: item.songTitle || item.title,
|
||||
artist: item.artist,
|
||||
layout: item.layoutTemplate
|
||||
? {
|
||||
template: item.layoutTemplate as
|
||||
layout: {
|
||||
template: (item.layoutTemplate as
|
||||
| "COVER_LEFT_TEXT_RIGHT"
|
||||
| "COVER_TOP_TEXT_BOTTOM"
|
||||
| "COVER_RIGHT_TEXT_LEFT"
|
||||
| "CENTERED_COMPACT",
|
||||
| "CENTERED_COMPACT"
|
||||
| "LOWER_LEFT_COVER_TEXT"
|
||||
| "LOWER_RIGHT_COVER_TEXT"
|
||||
| null) ?? null,
|
||||
blurFill: item.blurFill ?? false,
|
||||
blurAmount: item.blurAmount ?? 55,
|
||||
blurOpacity: item.blurOpacity ?? 100,
|
||||
textPadding: item.textPadding ?? 48,
|
||||
titleArtistGap: item.titleArtistGap ?? 10,
|
||||
titleBold: item.titleBold ?? true,
|
||||
textOffsetX: item.textOffsetX ?? 0,
|
||||
textOffsetY: item.textOffsetY ?? 0,
|
||||
}
|
||||
: null,
|
||||
},
|
||||
backgroundImagePath: item.backgroundImagePath,
|
||||
watermark: {
|
||||
mode: (item.watermarkMode as "none" | "default" | "text" | "logo") || "default",
|
||||
text: item.watermarkText,
|
||||
|
||||
Reference in New Issue
Block a user