Add a Scale to 1 MP toggle on image edit before Klein.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import { ownerRoot } from '~/server/utils/library'
|
||||
import { filterLoraStackForStudio, normalizeLoraStack } from '~/utils/loras'
|
||||
import {
|
||||
clampImageCfg,
|
||||
clampImageScaleMegapixels,
|
||||
clampImageSteps,
|
||||
clampVideoCfg,
|
||||
normalizePresetName,
|
||||
@@ -89,7 +90,9 @@ function sanitizeImageSettings(raw: unknown): ImagePresetSettings {
|
||||
return {
|
||||
steps: clampImageSteps(rec.steps),
|
||||
cfg: clampImageCfg(rec.cfg),
|
||||
negative: String(rec.negative || '').slice(0, 2000)
|
||||
negative: String(rec.negative || '').slice(0, 2000),
|
||||
scaleToTotalPixels: rec.scaleToTotalPixels === true,
|
||||
scaleMegapixels: clampImageScaleMegapixels(rec.scaleMegapixels)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user