Join pre/prompt/post for Comfy, stop zero-size generates snapping to a small square, and give the phone library a real closeable preview.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-1
@@ -126,7 +126,7 @@ export function clampImageV2Denoise(raw: unknown, fallback = IMAGE_V2_DENOISE_DE
|
||||
|
||||
export function snapImageV2Side(raw: unknown, fallback = IMAGE_V2_GENERATE_WIDTH) {
|
||||
const value = Number(raw)
|
||||
if (!Number.isFinite(value)) return fallback
|
||||
if (!Number.isFinite(value) || value <= 0) return fallback
|
||||
return IMAGE_V2_SIZE_SIDES.reduce((best, side) => (
|
||||
Math.abs(side - value) < Math.abs(best - value) ? side : best
|
||||
), IMAGE_V2_SIZE_SIDES[0])
|
||||
|
||||
Reference in New Issue
Block a user