1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-02-01 13:17:55 +02:00

Improving comments

This commit is contained in:
Patrik J. Braun 2023-04-11 23:18:01 +02:00
parent 7ddbfdcae9
commit 9014d98f6c
2 changed files with 5 additions and 4 deletions

View File

@ -342,6 +342,7 @@ export class MetadataLoader {
swapY = 1;
break;
}
// converting ratio to px
return {
width: Math.round(parseFloat(w) * metadata.size.width),
height: Math.round(parseFloat(h) * metadata.size.height),

View File

@ -15,10 +15,10 @@ export interface PhotoDTO extends PreviewPhotoDTO, MediaDTO {
}
export interface FaceRegionBox {
width: number;
height: number;
left: number;
top: number;
width: number; // in pixels
height: number; // in pixels
left: number; // in pixels
top: number; // in pixels
}
export interface FaceRegion {