Tell me more ×
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 resize images in Ubuntu? what is the easiest tool for this?

share|improve this question

6 Answers

up vote 35 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 2 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
4  
first of all, to use convert -> sudo apt-get install imagemagick – javaloper Sep 28 '12 at 12: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
Thanks for this, saved my day. – Palantir Mar 18 at 15:54
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

Actually, to fully use the aspect ratio keeping, do like this:

mogrify -resize x240 *png

or

mogrify -resize 320x *png
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:-

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

share|improve this answer

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

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.