mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-02-01 13:17:55 +02:00
Improving comments
This commit is contained in:
parent
7ddbfdcae9
commit
9014d98f6c
@ -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),
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user