문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | 다음 판 양쪽 다음 판 | ||
linux:video [2015/10/05 01:58] kwon37xi [smi2srt] |
linux:video [2015/10/18 18:30] kwon37xi |
||
---|---|---|---|
줄 29: | 줄 29: | ||
int crop = width - (16.0 / 9.0 * height) | int crop = width - (16.0 / 9.0 * height) | ||
println "crop left and right ${crop / 2}px" | println "crop left and right ${crop / 2}px" | ||
+ | </ | ||
+ | * 혹은 '' | ||
+ | # | ||
+ | import sys | ||
+ | |||
+ | width = int(sys.argv[1]) | ||
+ | height = int(sys.argv[2]) | ||
+ | |||
+ | if width/ | ||
+ | print 'no need to crop' | ||
+ | |||
+ | crop = width - (16.0 / 9.0 * height) | ||
+ | print(' | ||
</ | </ | ||