Limit aspect ratio to 9:20

This commit is contained in:
Grishka 2023-03-30 18:53:59 +03:00
parent 7b0a3f0f96
commit 72d72d443e
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public class PhotoLayoutHelper{
boolean allAreWide=true, allAreSquare=true;
for(Attachment thumb : thumbs){
float ratio=thumb.getWidth()/(float) thumb.getHeight();
float ratio=Math.max(0.45f, thumb.getWidth()/(float) thumb.getHeight());
if(ratio<=1.2f){
allAreWide=false;
if(ratio<0.8f)