You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-12-03 23:00:25 +02:00
updated image-size to read dimensions from heic file
This commit is contained in:
@@ -23,6 +23,12 @@ describe('MetadataLoader', () => {
|
||||
});
|
||||
|
||||
|
||||
it('should load heic', async () => {
|
||||
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/parsingfromheic.heic'));
|
||||
const expected = require(path.join(__dirname, '/../../../assets/parsingfromheic.json'));
|
||||
expect(Utils.clone(data)).to.be.deep.equal(expected);
|
||||
});
|
||||
|
||||
it('should load png', async () => {
|
||||
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/test_png.png'));
|
||||
const expected = require(path.join(__dirname, '/../../../assets/test_png.json'));
|
||||
|
||||
Reference in New Issue
Block a user