Closed Flupsy closed 9 years ago
It might be all images, I've only tried Australia, but this is what they look like for me. Also the page loaded over a hundred images before it displayed anything, total load time was 41 seconds.
@Flupsy What browser is this in?
@chrismytton Firefox 39.0 on Windows 8.1.
Regarding the oval pictures, it looks like Firefox isn't respecting the natural aspect ratio of the images, and is instead just resizing them vertically (which is the dimension we limit in the css) and leaving the horizontal width at whatever the image started at. Should be a simple fix. @tmtmtmtm – are images always square?
@zarino we know effectively nothing about the underlying images — we're just passing through raw URLs from a variety of different sources. They're all being passed through https://github.com/jpmckinney/image-proxy, though, which allows for various resizing and padding options, so I believe we could make them all be square.
@zarino Yes, they will always be a square image of 140px by 140px, which is defined in the image-proxy url here.
This should fix it: https://github.com/everypolitician/gender-balance/pull/189
All of the images from the Australian parliament website seem to be broken at the moment(!). But looking at other countries in Firefox seems to confirm that this has been fixed.
Is this for all people, or all just a few? Can you attach some screenshots, as the ones I've checked look fine here: