1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-07-13 01:20:23 +02:00

Apply rotation transformation from ffprobe to metadata's size

This commit is contained in:
Aleksey Khlebnikov
2020-09-02 14:23:30 +03:00
parent 3deb8e26f5
commit d33e674614
5 changed files with 23 additions and 1 deletions

View File

@ -44,5 +44,10 @@ describe('MetadataLoader', () => {
expect(Utils.clone(data)).to.be.deep.equal(expected);
});
it('should respect mp4 rotate transformation', async () => {
const data = await MetadataLoader.loadVideoMetadata(path.join(__dirname, '/../../../assets/video_rotate.mp4'));
const expected = require(path.join(__dirname, '/../../../assets/video_rotate.json'));
expect(Utils.clone(data)).to.be.deep.equal(expected);
});
});