Now I have an image in the Ubuntu server. I need to resize it.

The original image is youtube.jpg, size is 1024X768.

https://images.g2soft.net/image/Ai8

Install FFmpeg

sudo apt install ffmpeg
FFmpeg version

 

Resize the image

ffmpeg -i "youtube.jpg" -vf scale=480:360 "youtubex480.jpg"
FFmpeg resize the image

The command above explains itself.

It resizes the youtube.jpg to a smaller picture, 480×360.

https://images.g2soft.net/image/FFM

The new picture after resizing

 

It is the post of “How to resize the image by FFmpeg”.

David Yin

David is a blogger, geek, and web developer — founder of FreeInOutBoard.com. If you like his post, you can say thank you here

One Reply to “How to resize an image through the Ubuntu terminal”

Leave a Reply

Your email address will not be published. Required fields are marked *