fix: image thumbnails of audio (size query arg collision)
parent
f1315ae7c4
commit
b31ca05fdf
|
@ -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}"
|
||||
),
|
||||
])
|
||||
|
|
Loading…
Reference in New Issue