fix: random portrait uses configured crop position, only randomizes which clip
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1689,10 +1689,8 @@ class MainWindow(QMainWindow):
|
|||||||
n_portrait = max(1, n_clips // 3)
|
n_portrait = max(1, n_clips // 3)
|
||||||
indices = random.sample(range(n_clips), n_portrait)
|
indices = random.sample(range(n_clips), n_portrait)
|
||||||
for idx in indices:
|
for idx in indices:
|
||||||
rand_ratio = "9:16"
|
|
||||||
rand_center = random.random()
|
|
||||||
s, o, _, _ = jobs[idx]
|
s, o, _, _ = jobs[idx]
|
||||||
jobs[idx] = (s, o, rand_ratio, rand_center)
|
jobs[idx] = (s, o, "9:16", base_center)
|
||||||
|
|
||||||
raw = self._txt_resize.text().strip()
|
raw = self._txt_resize.text().strip()
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user