Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
4323 Ansichten

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Sept. 21
11348
3
Okt. 17
17254
12
Juni 20
11327
3
Juni 18
29740
3
Feb. 18
8857