Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
add comment

9 Answers

up vote 48 down vote accepted

You want simple?

Install 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.

Very simple to use, very simple to configure.

share|improve this answer
    
+1 - this really is the simplest way to do it. I love it :) –  Hamish Downer Aug 5 '10 at 15:47
    
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
    
+1 Excellent! Simple is beautiful! –  Nikos Steiakakis Feb 7 '11 at 12:14
    
great!! thank you . –  v2r Feb 22 '12 at 1:06
    
@v2r: No worries. –  Richard Holloway Feb 22 '12 at 9:19
show 3 more comments

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
6  
first of all, to use convert -> sudo apt-get install imagemagick –  javaloper Sep 28 '12 at 12:02
add comment

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
1  
Thanks for this, saved my day. –  Palantir Mar 18 '13 at 15:54
    
F-Spot does resize? Where? –  Martin Jul 23 '13 at 11:17
add comment
sudo apt-get install imagemagick
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
add comment

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:-

http://www.novell.com/coolsolutions/tip/16524.html

share|improve this answer
add comment

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
add comment

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
add comment

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.
gthumb
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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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