jbusecke / xmovie

A simple way of creating movies from xarray objects
https://xmovie.readthedocs.io/
MIT License
251 stars 38 forks source link

Gif generation breaks non-standard aspect ratios #141

Open vitusbenson opened 1 year ago

vitusbenson commented 1 year ago

If I set Movie(..., pixelwidth=2400, pixelheight=800), (or another non-standard aspect ratio) then the resulting gif tries to strangely stretch things. It seems easy to fix though :-)

See https://github.com/jbusecke/xmovie/blob/adebdf13ae227215d176fadca54ec396fe3f6c2b/xmovie/core.py#L546