Changes between Version 5 and Version 6 of Scaling


Ignore:
Timestamp:
Dec 22, 2015, 9:59:37 PM (4 years ago)
Author:
compn
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Scaling

    v5 v6  
    3232[[Image(input_double_width.png)]]
    3333
     34If you want to half the size of the picture, just multiply by .5
     35{{{
     36ffmpeg -i input.jpg -vf scale=iw*.5:ih*.5 input_half_size.png
     37}}}
     38
    3439Sometimes there is a need to scale the input image in such way it fits into a specified rectangle, i.e. if you have a placeholder (empty rectangle) in which you want to scale any given image. This is a little bit tricky, since you need to check the original aspect ratio, in order to decide which component to specify and to set the other component to -1 (to keep the aspect ratio). For example, if we would like to scale our input image into a rectangle with dimensions of 320x240, we could use something like this:
    3540{{{