Open Kuluum opened 3 years ago
it looks like max_width
parameter matters too. If I remove , max_width=max_width
in provided code result fits in max_height
.
positions = rpack.pack(sizes, max_height=max_height)
print(rpack.bbox_size(sizes, positions))
### (1008, 853) even better packing
Thank you @Kuluum for reporting this bug. I have released a bugfix release, 2.0.1, and deployed new wheels to PyPI.
SO do
Thank you @Kuluum for reporting this bug. I have released a bugfix release, 2.0.1, and deployed new wheels to PyPI.
Hi,
I checked that the max_width / max_height is for the rectangle sizes.
I have faced a problem with one concrete
sizes
list andmax_height
. After packing the result container's height is bigger than max_height, but its enough width space to make packing the correct height.Python 3.8.6
rpack.__version__ 2.0.0