Limit aspect ratio to 9:20
This commit is contained in:
parent
7b0a3f0f96
commit
72d72d443e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue