Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to know how to re-size images in Ubuntu. What is the easiest tool to do so?

share|improve this question

13 Answers 13

up vote 97 down vote accepted

You want simple?

Run sudo apt-get install nautilus-image-converter, or click nautilus-image-converter Install nautilus-image-converter.

It adds two context menu items in nautlius so you can right click and choose "Resize Image". (The other is "Rotate Image").

You can do a whole directory of images in one go if you like and you don't even have to open up an application to do so.

You need to restart your nautilus to see new context menus, run nautilus -q and then click the Home folder icon to reload nautilus with the new plug-in.

share|improve this answer
Does it work with multiple selections (ie i select 10 files - right click - select Rotate - and the 10 images are rotated) ? – teo96 Nov 18 '10 at 16:06
@v2r: No worries. – Richard Holloway Feb 22 '12 at 9:19
Does not work in Ubuntu 13.10 :( – malisokan Nov 11 '13 at 17:28
It works on Ubuntu 14.04. Thanks. – Saeed Zarinfam Aug 22 '14 at 8:41
I think you need to log out or reboot after installing it--or just do what I did; run pkill nautilus and then click the Home folder icon to reload nautilus with the new plug-in. – Lambart Mar 31 '15 at 22:12

First install imagemagick

sudo apt-get install imagemagick

Open a terminal and run this command:

convert  -resize 50% source.png dest.jpg

It will reduce the size by 50%

You can also specify the size:

convert  -resize 1024X768  source.png dest.jpg
share|improve this answer
first of all, to use convert -> sudo apt-get install imagemagick – javaloper Sep 28 '12 at 12:02
sudo apt-get install imagemagick

The command mogrify overwrites the original files with the resized images:

mogrify -resize 50% *png      # keep image aspect ratio
mogrify -resize 320x240 *png  # keep image aspect ratio
mogrify -resize 320x240! *png # don't keep image aspect ratio
mogrify -resize x240 *png     # don't keep image aspect ratio
mogrify -resize 320x *png     # don't keep image aspect ratio
share|improve this answer
Don't keep aspect ration with convert: convert hospital.jpg -resize 2000x! hospital_2000.jpg – Adobe Oct 5 '13 at 22:15
Perfect and simplest possible answer with both situations. love it ! – navderm May 14 '15 at 19:02

If you're just doing a couple of images, most image editors in Ubuntu (Gimp, F-Spot, etc) will let you do a basic resize.

If you want to edit tens, hundreds or thousands of images, I prefer Phatch. Phatch is a GUI-based batch photo editor that will let you perform a whole load of transformations on images. sudo apt-get install phatch

ImageMagick is good but it's a bit tedious if you don't know the setting names for things. You can very quickly learn Phatch by clicking around.

share|improve this answer
F-Spot does resize? Where? – Martin Jul 23 '13 at 11:17

GIMP is probably the easiest way, since it has a fairly simple UI for such common tasks. All you have to do is open up your image and go to Image → Image Size and then change accordingly. There are ways to do batch resizing using the GIMP as well, but I don't know them by heart.

share|improve this answer

ImageMagick is the package you want. It contains a number of useful command line tools for this very purpose.

Here's a simple tutorial explaining how to batch resize images:-

share|improve this answer

At the moment nautilus-image-converter does not work in Ubuntu 13.10. Therefore I use imagemagick on the command line, which is very good workaround (at least for me).

sudo apt-get install imagemagick

Keep in mind the difference between these imagemagick tools:

  • Mogrify does processing on the same image, it reads file modify file and writes the output to the same file.
  • Convert is meant to work on separate images, reads file and modify and write to different file/format. You can also use convert command to use output file same as input file.

I often use mogrify to simply resize multiple images and overwrite the original files. I. e. this command would scale down the dimension of all JPG files to 40% of the original dimension:

mogrify -verbose -resize '40%' *.JPG
share|improve this answer

Install gthumb. Simple and easy for basic image handling and editing functions - viewer, resizing, cropping, rotate, flip, grayscale, etc with options to save in JPEG, PNG, TIFF, TGA formats.
sudo apt-get install gthumb

share|improve this answer
On Linux Mint, it was optimal solution for me. – Fedir Dec 18 '13 at 12:29
I am used to rotate my photos with gthumb. – Arpad Horvath Dec 28 '14 at 19:44

For GUI, Phatch "one click is worth thousand photos" is the best for such quick job. It is already in Ubuntu repository. It has plenty of actions and options as imagemagick.

sudo apt-get install phatch
share|improve this answer

No need to install any new software just do this

convert -resize 50% myfigure.png myfigure.jpg


convert myfigure.png -resize 200x100 myfigure.jpg
share|improve this answer

open the image in ImageMagick.

  1. click on the image command box will be open.
  2. view->resize enter the pixel you want. click on resize button.
  3. File-> save, enter the name. click on Format button choose the format you want and click select button.
  4. click on save button.

another option is select view -> original image and Drag the corners of the image to resize it. select File -> save.

share|improve this answer

There is a good multiplatform tool called XnConvert. Combine and choose between more than 80 different operations. The installation is simple through deb. file from the official website.

It is free but not opensource, perhaps that's just the beauty of it.

enter image description here

share|improve this answer

I use Pimagizer. It works great and it is the easiest application I have used. Tested on Ubuntu 14.04, 15.04, 15.10.

sudo add-apt-repository ppa:vfrico/stable
sudo apt-get update
sudo apt-get install pimagizer

See : for more infos.

share|improve this answer

protected by jokerdino Jun 21 at 10:36

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.