You've already forked pigallery2
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:
@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user