Closed cnzqy1 closed 2 years ago
I believe https://github.com/OpusGang/awsmfunc/blob/41cf38e69f09d9a08f3698ec71e5b534c07cb0e2/awsmfunc/base.py#L789 needs to be changed to include cropping in the calculation. Right now resize = awf.zr(hbd, preset=720, top=1, bottom=1) with 1920x1080 input gives 1282x720.
resize = awf.zr(hbd, preset=720, top=1, bottom=1)
Changing the line to if (clip.width - left - right) / (clip.height - top - bottom) > ar: should solve the issue.
if (clip.width - left - right) / (clip.height - top - bottom) > ar:
I believe https://github.com/OpusGang/awsmfunc/blob/41cf38e69f09d9a08f3698ec71e5b534c07cb0e2/awsmfunc/base.py#L789 needs to be changed to include cropping in the calculation. Right now
resize = awf.zr(hbd, preset=720, top=1, bottom=1)
with 1920x1080 input gives 1282x720.