| 5226 | const savedNegative = mediaAttachment.negative ?? message.extra.negative ?? ''; | 5226 | const savedNegative = mediaAttachment.negative ?? message.extra.negative ?? ''; |
| 5227 | const refineArgs = { | 5227 | const refineArgs = { |
| 5228 | negative: savedNegative, | 5228 | negative: savedNegative, |
| 5229 | resolution: mediaAttachment?.width && mediaAttachment?.height ? `${mediaAttachment.width}x${mediaAttachment.height}` : null, | 5229 | resolution: mediaAttachment.width && mediaAttachment.height ? `${mediaAttachment.width}x${mediaAttachment.height}` : null, |
| 5230 | }; | 5230 | }; |
| 5231 | const prompt = await refinePrompt(savedPrompt, refineArgs); | 5231 | const prompt = await refinePrompt(savedPrompt, refineArgs); |
| 5232 | dimensions = setTypeSpecificDimensions(generationType, refineArgs.resolution ? mediaAttachment : null); | 5232 | dimensions = setTypeSpecificDimensions(generationType, refineArgs.resolution ? mediaAttachment : null); |