fix: image thumbnails of audio (size query arg collision)

feat/type-attributes
Tomáš Mládek 2022-09-19 22:22:52 +02:00
parent f1315ae7c4
commit b31ca05fdf
1 changed files with 3 additions and 3 deletions

View File

@ -20,8 +20,8 @@ impl<'a> Previewable for AudioPath<'a> {
.get("color")
.map(String::to_owned)
.unwrap_or_else(|| COLOR.into());
let size = options
.get("size")
let dimensions = options
.get("dimensions")
.map(String::to_owned)
.unwrap_or_else(|| "860x256".into());
@ -31,7 +31,7 @@ impl<'a> Previewable for AudioPath<'a> {
"-filter_complex",
&format!(
"[0:a]aformat=channel_layouts=mono, compand=gain=-2,
showwavespic=s={size}:colors={color},
showwavespic=s={dimensions}:colors={color},
drawbox=x=(iw-w)/2:y=(ih-h)/2:w=iw:h=1:color={color}"
),
])