Could there be an option to stretch the edge pixels on all image.resize(x,y,!‘distort’) options? Something like: image.resize(1920,1080,‘fit’, black=False).
Also this is in the Docs:
Does it crop though to the resize format?
e.g. if I have a circle in a 512x512 image and I apply resize(1920,1080,‘width’) it should rescale to 1920x1920 and then crop the top and bottom… right? Or at least that’s Nuke’s behavior which I assume you’re emulating.
Yes, I will add that to our wish list. Is this a priority for you?
Yes, it will crop to 1920x1080.
Lower priority than playback speed of H264s and ProRes. I have a hack where I’m just making an extra tall BG image and then using .Resize(‘width’) to accomplish the same thing. But the use-case would be for me a slate BG that is 16:9 and then if it’s extra wide (2.35:1) just extend the edges if it’s extra tall (1:1) just extend the top.
Draft Beta 11 added a “border” parameter to Image.Resize(). To stretch the edge pixels:
image.Resize(1920,1080,'fit', border='stretch')