refactor: meta format cleanup
This commit is contained in:
parent
64c4fe2832
commit
818aabf13d
2 changed files with 2 additions and 2 deletions
|
|
@ -115,7 +115,7 @@ func (p *Processor) Process(ctx context.Context, in *imagor.Blob, params imagorp
|
||||||
meta := av.Metadata()
|
meta := av.Metadata()
|
||||||
if params.Meta {
|
if params.Meta {
|
||||||
out = imagor.NewBlobFromJsonMarshal(Metadata{
|
out = imagor.NewBlobFromJsonMarshal(Metadata{
|
||||||
Format: mime.Extension(),
|
Format: strings.TrimPrefix(mime.Extension(), "."),
|
||||||
ContentType: mime.String(),
|
ContentType: mime.String(),
|
||||||
Metadata: meta,
|
Metadata: meta,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"format":".mkv","content_type":"video/x-matroska","orientation":1,"duration":7407000000,"width":640,"height":480,"has_video":true,"has_audio":true,"has_alpha":false}
|
{"format":"mkv","content_type":"video/x-matroska","orientation":1,"duration":7407000000,"width":640,"height":480,"has_video":true,"has_audio":true,"has_alpha":false}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue