fix: use source image for product lock background edit
This commit is contained in:
parent
fde5661436
commit
abfc813e42
@ -5362,7 +5362,6 @@ export async function POST(request: NextRequest) {
|
||||
scalePercent,
|
||||
{ width: sourceWidth, height: sourceHeight },
|
||||
{
|
||||
draftInput: useScaleAdjustProductLockMaskEdit,
|
||||
maskEdit: useScaleAdjustProductLockMaskEdit,
|
||||
}
|
||||
)
|
||||
@ -5437,18 +5436,16 @@ export async function POST(request: NextRequest) {
|
||||
? useScaleAdjustProductLockComposite
|
||||
? useScaleAdjustProductLockMaskEdit
|
||||
? [
|
||||
scaleAdjustPatchReference.backgroundPlateFullUrl ||
|
||||
scaleAdjustPatchReference.targetDraftFullUrl ||
|
||||
sourceImageUrl,
|
||||
sourceImageUrl,
|
||||
...scaleAdjustCropReferenceImageUrls,
|
||||
...manualRegionReferenceImageUrls,
|
||||
]
|
||||
: [
|
||||
sourceImageUrl,
|
||||
scaleAdjustPatchReference.backgroundPlateFullUrl as string,
|
||||
...scaleAdjustCropReferenceImageUrls,
|
||||
...manualRegionReferenceImageUrls,
|
||||
]
|
||||
sourceImageUrl,
|
||||
scaleAdjustPatchReference.backgroundPlateFullUrl as string,
|
||||
...scaleAdjustCropReferenceImageUrls,
|
||||
...manualRegionReferenceImageUrls,
|
||||
]
|
||||
: [
|
||||
sourceImageUrl,
|
||||
scaleAdjustPatchReference.targetDraftFullUrl as string,
|
||||
@ -5597,7 +5594,7 @@ export async function POST(request: NextRequest) {
|
||||
scaleAdjustPatchReferenceOrder:
|
||||
scaleAdjustPatchReference && useScaleAdjustFullFrameStructurePatch
|
||||
? useScaleAdjustProductLockMaskEdit
|
||||
? "product-lock-background-plate-edit-mask"
|
||||
? "product-lock-source-edit-mask"
|
||||
: "full-source-full-target-draft"
|
||||
: scaleAdjustPatchReference && useScaleAdjustPatchTargetDraftPrimary
|
||||
? includeScaleAdjustPatchSourceReference
|
||||
@ -5689,7 +5686,7 @@ export async function POST(request: NextRequest) {
|
||||
? scaleAdjustPatchReference
|
||||
? useScaleAdjustProductLockComposite
|
||||
? useScaleAdjustProductLockMaskEdit
|
||||
? "product-lock-background-plate-mask-edit-rmbg-one-shot"
|
||||
? "product-lock-source-mask-edit-rmbg-one-shot"
|
||||
: "product-lock-background-plate-rmbg-v2-source-patch-one-shot"
|
||||
: useScaleAdjustFullFrameStructurePatch
|
||||
? "full-frame-source-locked-target-guide-v8-one-shot"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user