feat(metadata): show current cover dimensions

This commit is contained in:
zarzet
2026-08-01 18:34:25 +07:00
parent d4b617f49a
commit 7f4ace6d1b
3 changed files with 126 additions and 2 deletions
+18
View File
@@ -31,4 +31,22 @@ void main() {
throwsArgumentError,
);
});
test('cover dimensions require positive width and height', () {
expect(
FFmpegService.imageDimensionsFromProperties({
'width': '1900',
'height': 1500,
}),
(width: 1900, height: 1500),
);
expect(
FFmpegService.imageDimensionsFromProperties({'width': 0, 'height': 1500}),
isNull,
);
expect(
FFmpegService.imageDimensionsFromProperties({'width': 1500}),
isNull,
);
});
}