mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Add face margin to be part of converted faces
This commit is contained in:
parent
7d3343a8ff
commit
4bbd8fb6b4
@ -147,6 +147,7 @@ export class PhotoProcessing {
|
||||
.digest('hex') +
|
||||
'_' +
|
||||
size +
|
||||
'_' + Config.Media.Thumbnail.personFaceMargin +
|
||||
PhotoProcessing.CONVERTED_EXTENSION
|
||||
);
|
||||
}
|
||||
@ -284,7 +285,7 @@ export class PhotoProcessing {
|
||||
}
|
||||
|
||||
public static async renderSVG(
|
||||
svgString: SVGIconConfig,
|
||||
svgIcon: SVGIconConfig,
|
||||
outPath: string,
|
||||
color = '#000'
|
||||
): Promise<string> {
|
||||
@ -302,7 +303,7 @@ export class PhotoProcessing {
|
||||
const input = {
|
||||
type: ThumbnailSourceType.Photo,
|
||||
svgString: `<svg fill="${color}" width="${size}" height="${size}" xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="${Config.Server.svgIcon.viewBox || '0 0 512 512'}">d="${Config.Server.svgIcon.items}</svg>`,
|
||||
viewBox="${svgIcon.viewBox || '0 0 512 512'}">d="${svgIcon.items}</svg>`,
|
||||
size: size,
|
||||
outPath,
|
||||
makeSquare: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user