Fixed compatibility
This commit is contained in:
parent
9c86ee8881
commit
44edb9c04b
2
index.js
2
index.js
@ -75,7 +75,7 @@ app.get('/pic/:folder/:pic', (req, res) => {
|
|||||||
exif = exifData;
|
exif = exifData;
|
||||||
exif.exif.ExposureTime = "1/" + Math.round(1/exif.exif.ExposureTime);
|
exif.exif.ExposureTime = "1/" + Math.round(1/exif.exif.ExposureTime);
|
||||||
exif.exif.FNumber = "f/" + exif.exif.FNumber;
|
exif.exif.FNumber = "f/" + exif.exif.FNumber;
|
||||||
img = `<img id="${btoa(pic)}" onclick="zoom('${btoa(pic)}')" src="/${folder}/${pic}" style="width: 70%; height: auto;">`;
|
img = `<img id="${Buffer.from(pic).toString('base64')}" onclick="zoom('${Buffer.from(pic).toString('base64')}')" src="/${folder}/${pic}" style="width: 70%; height: auto;">`;
|
||||||
res.render('pic', { folder: folder, pic: pic, exif: exif, img: img });
|
res.render('pic', { folder: folder, pic: pic, exif: exif, img: img });
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user