Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

The title says much, but I'll explain in detail a little more.

I need to stretch an image in one dimension only. That is, if the image is for example, 100x100 (Width x Height) I need it to be 100x104 (Width x Height).

It would be perfect if it could be stretched by a certain percent (instead of putting in dimensions in pixels).

Anyone know how this could be done an in what? I tried looking in ImageMagick set of tools, but didn't find anything that I could use (not saying I didn't miss it in there though).

In any case, would appreciate all the help I can get.

share|improve this question
up vote 12 down vote accepted

Putting ! after the geometry will do an anisotropic resize. Note that you may need to escape it due to the shell.

share|improve this answer
Seems like what I want. Could you be so kind as to give an example of usage? – Rook Nov 19 '10 at 14:54
From the link: convert dragon.gif -resize 64x64\! exact_dragon.gif – Ignacio Vazquez-Abrams Nov 19 '10 at 14:56
Nice job +1 for that! – David Nov 19 '10 at 20:30

I would use Gimp. Gimp is the open source version of Photoshop. It is very easy to use. This tool will do everything you need and more...

share|improve this answer
But how does he resize in one dimension? ;-) – Ivo Flipse Dec 17 '10 at 21:34
There is a tool in the Gimps tools menu to re-size an image. There is a link button that will make it not link together so that you can distort an image as you want. – David Dec 21 '10 at 21:52

Your Answer


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.