1
0
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:
gras
2024-04-06 00:31:11 +02:00
parent 89caba6536
commit d52d7c0c4d
7 changed files with 39 additions and 8 deletions

View File

@@ -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'));