If you want to maintain an aspect ration, you can do -
./ffmpeg -i 1.jpg -vf scale="360:-1" 2.jpg
or if you want to resize based on the width and height of the input. For example. let's say half the width and height of the input you can do -
./ffmpeg -i 1.jpg -vf scale="iw/1:ih/2" 2.jpg
Where
iw : input width ih : input height
Aniket thakur
source share