# HG changeset patch # User Thierry Florac # Date 1426890000 -3600 # Node ID 5432e1a76c852e9263da3317bccf55eda887e04d # Parent 89e74695091870aa58d1244bdee7982ddd1f56cc Switch panoramic thumbnail geometry diff -r 89e746950918 -r 5432e1a76c85 src/pyams_file/image.py --- a/src/pyams_file/image.py Fri Mar 20 17:31:05 2015 +0100 +++ b/src/pyams_file/image.py Fri Mar 20 23:20:00 2015 +0100 @@ -145,7 +145,7 @@ pano_max_height = width * 9 / 16 if pano_max_height >= height: # image wider - pano_width = height * 9 / 16 + pano_width = height * 16 / 9 geometry.x1 = round((width / 2) - (pano_width / 2)) geometry.y1 = 0 geometry.x2 = round((width / 2) + (pano_width / 2))