Skip to Content
मेन्यू
This question has been flagged
4330 Views

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

Avatar
Discard
Related Posts Replies Views Activity
3
सित॰ 21
11354
3
अक्तू॰ 17
17260
12
जून 20
11331
3
जून 18
29740
3
फ़र॰ 18
8860