How to resize an image through the Ubuntu terminal

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

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

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.

The new picture after resizing


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

1 Comment

Leave a Reply

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