On Thu, Jan 2, 2014 at 9:59 AM, (忍)不轻云 <449127727 at qq.com> wrote: > if(gt(a,16/9),1280,trunc(oh*a*2)/2)':'if(gt(a,16/9),trunc(ow/a/2)*2,720) I could be mistaken since you haven't described what you want to accomplish, but 1280 is the width, so you need: 1280,trunc(ow*a*2)/2 Likewise, for the second part: trunc(oh/a/2)*2,720)