Fixed compatibility

This commit is contained in:
123a456b789c 2024-03-30 20:26:55 +01:00
parent 9c86ee8881
commit 44edb9c04b

View File

@ -75,7 +75,7 @@ app.get('/pic/:folder/:pic', (req, res) => {
exif = exifData;
exif.exif.ExposureTime = "1/" + Math.round(1/exif.exif.ExposureTime);
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 });
return
}