mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
making faces folder if not exists
This commit is contained in:
parent
3ba952d692
commit
b3024986e6
@ -92,6 +92,7 @@ export class PhotoProcessing {
|
|||||||
input.cut.width = Math.min(input.cut.width, photo.metadata.size.width - input.cut.left);
|
input.cut.width = Math.min(input.cut.width, photo.metadata.size.width - input.cut.left);
|
||||||
input.cut.height = Math.min(input.cut.height, photo.metadata.size.height - input.cut.top);
|
input.cut.height = Math.min(input.cut.height, photo.metadata.size.height - input.cut.top);
|
||||||
|
|
||||||
|
await fsp.mkdir(ProjectPath.FacesFolder, {recursive: true});
|
||||||
await PhotoProcessing.taskQue.execute(input);
|
await PhotoProcessing.taskQue.execute(input);
|
||||||
return thPath;
|
return thPath;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user