diff --git a/frontend/src/lib/components/SettingsPanel.svelte b/frontend/src/lib/components/SettingsPanel.svelte index 100ec55..30c7807 100644 --- a/frontend/src/lib/components/SettingsPanel.svelte +++ b/frontend/src/lib/components/SettingsPanel.svelte @@ -5,6 +5,7 @@ import EyeIndicator from './visual/EyeIndicator.svelte'; import AlignmentIndicator from './visual/AlignmentIndicator.svelte'; import BrightnessIndicator from './visual/BrightnessIndicator.svelte'; + import PaddingIndicator from './visual/PaddingIndicator.svelte'; let { disabled = false } = $props(); @@ -216,13 +217,13 @@ bind:checked={config.processing.crop.enabled} /> -
Faces too close to the edge of the photo are often distorted and require too much padding
+
Padding happens when a face is at the border of a photo. It is required to move the subject to the center of the frame.
{#if config.processing.crop.enabled} -
+
{config.processing.crop.max_padding_percent}%
+
+ +
{/if}
@@ -738,7 +742,8 @@ border-bottom: 1px solid #252525; } - .setting-row:last-child { + .setting-row:last-child, + .setting-row.no-border { border-bottom: none; } @@ -992,6 +997,16 @@ text-align: center; } + .padding-indicator-container { + display: flex; + justify-content: center; + width: fit-content; + margin: 0 auto; + padding: 0.75rem 1rem; + background: #0f0f0f; + border-radius: 6px; + } + .brightness-indicator-container { display: flex; justify-content: center; @@ -1000,4 +1015,5 @@ border: 1px solid #333; border-radius: 6px; } + diff --git a/frontend/src/lib/components/visual/PaddingIndicator.svelte b/frontend/src/lib/components/visual/PaddingIndicator.svelte new file mode 100644 index 0000000..ef11b38 --- /dev/null +++ b/frontend/src/lib/components/visual/PaddingIndicator.svelte @@ -0,0 +1,130 @@ + + +
+ + + + + + + + + {#if innerSize > 2} + + + + {/if} + + +
+
+ + real image pixels +
+
+ + padding (duplicated edge pixels) +
+
+
+ +