Fix #15 Support live photos and HEIC images

This commit is contained in:
Alan Grainger
2024-11-12 10:27:26 +01:00
parent 5f502a215a
commit 1daf6c1c4b
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class Render {
/**
* Stream data from Immich back to the client
*/
async assetBuffer (req: IncomingShareRequest, res: Response, asset: Asset, size?: ImageSize) {
async assetBuffer (req: IncomingShareRequest, res: Response, asset: Asset, size?: ImageSize | string) {
// Prepare the request
const headerList = ['content-type', 'content-length', 'last-modified', 'etag']
size = immich.validateImageSize(size)