跳至內容
選單
此問題已被標幟
4296 瀏覽次數

I´m having a problem in displaying employees images. If I upload an image to a employee, it shows the image but cuts it to fit the image-box. In image.py the comments say it maintains the aspect ratio but it doesn´t.

The solution I´ve found, is to display the field 'image' in the view and not 'image_medium' or 'image_small'. Only with 'image' is fits the image keeping the aspect ratio.

Anyone knows how images work and why they don´t keep aspect ratio?

Thanks, Martin

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
9月 21
11325
3
10月 17
17221
12
6月 20
11292
3
6月 18
29740
3
2月 18
8830