Closed ghost closed 1 year ago
implemented myself here https://gist.github.com/wiwaz/7d5afee6aadb1dae0131aedc6d1a6440
Additionally, this is more fit for vskernels and just having an argument such as keepaspect
to enable this behavior. It's almost always desirable over distorting the aspect ratio so maybe it should be default, too.
how would this work when you're specifying your own shift/src_xxx
The script adjusts existing values (if present) so theres no issue with user provided shifts or regions.
It's possible to do resizing with zero aspect ratio error by utilizing subpixel cropping, a way to handle this automatically would be very useful.