I've got this project that I'm having trouble pinning down. I'm cutting a pic up into squares to make a sort of jigsaw puzzle. I want the pieces to be a pleasing shape and the number of pieces to be within a small range. - proportions of pic: 3:2 (so, say 6000 wide by 4000 high) this is slightly variable by a small amount, say < 5%, if that makes the numbers work - total number of pieces: between 80 and 96 - proportions of pieces: between 1:1 and 2:3 (so, say 600 wide and 800 tall) Not that the pic is horizontal but the pieces are vertical. If I used the example dimensions, I get 6000/600 by 4000/800 = 50 pieces, which is too few. Not sure how to do this except by brute force.