@@ -1340,22 +1340,27 @@ export const canvasSlice = createSlice({
1340
1340
state . bbox . aspectRatio . value = state . bbox . rect . width / state . bbox . rect . height ;
1341
1341
state . bbox . aspectRatio . isLocked = true ;
1342
1342
} else if ( state . bbox . modelBase === 'flux-kontext' && isFluxKontextAspectRatioID ( id ) ) {
1343
- // Flux Kontext has specific output sizes that are not exactly the same as the aspect ratio. Need special handling.
1344
- if ( id === '1:1' ) {
1345
- state . bbox . rect . width = 1024 ;
1346
- state . bbox . rect . height = 1024 ;
1343
+ if ( id === '3:4' ) {
1344
+ state . bbox . rect . width = 880 ;
1345
+ state . bbox . rect . height = 1184 ;
1347
1346
} else if ( id === '4:3' ) {
1348
- state . bbox . rect . width = 896 ;
1349
- state . bbox . rect . height = 1280 ;
1350
- } else if ( id === '3:4' ) {
1351
- state . bbox . rect . width = 1280 ;
1352
- state . bbox . rect . height = 896 ;
1347
+ state . bbox . rect . width = 1184 ;
1348
+ state . bbox . rect . height = 880 ;
1349
+ } else if ( id === '9:16' ) {
1350
+ state . bbox . rect . width = 752 ;
1351
+ state . bbox . rect . height = 1392 ;
1352
+ } else if ( id === '16:9' ) {
1353
+ state . bbox . rect . width = 1392 ;
1354
+ state . bbox . rect . height = 752 ;
1353
1355
} else if ( id === '21:9' ) {
1354
- state . bbox . rect . width = 1408 ;
1355
- state . bbox . rect . height = 768 ;
1356
+ state . bbox . rect . width = 1568 ;
1357
+ state . bbox . rect . height = 672 ;
1356
1358
} else if ( id === '9:21' ) {
1357
- state . bbox . rect . width = 768 ;
1358
- state . bbox . rect . height = 1408 ;
1359
+ state . bbox . rect . width = 672 ;
1360
+ state . bbox . rect . height = 1568 ;
1361
+ } else if ( id === '1:1' ) {
1362
+ state . bbox . rect . width = 880 ;
1363
+ state . bbox . rect . height = 880 ;
1359
1364
}
1360
1365
state . bbox . aspectRatio . value = state . bbox . rect . width / state . bbox . rect . height ;
1361
1366
state . bbox . aspectRatio . isLocked = true ;
0 commit comments