feat: resize canvas to aspect ratio when exporting with fancy bcg

This commit is contained in:
Arnošt Pleskot
2023-08-22 17:59:25 +02:00
parent 4eabb8d021
commit c49bf04801
3 changed files with 76 additions and 9 deletions

View File

@@ -186,7 +186,11 @@ const ImageExportModal = ({
appState,
files,
exportPadding: DEFAULT_EXPORT_PADDING,
maxWidthOrHeight,
maxWidthOrHeight: !(
exportBackgroundImage !== "solid" && exportWithBackground
)
? maxWidthOrHeight
: undefined,
})
.then((canvas) => {
setRenderError(null);