8

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.

Gilles 'SO- stop being evil'
  • 69,786
  • 21
  • 137
  • 178
Rook
  • 23,617
  • 32
  • 128
  • 213

2 Answers2

18

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

Ignacio Vazquez-Abrams
  • 111,361
  • 10
  • 201
  • 247
4

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

David
  • 7,339
  • 6
  • 33
  • 51
  • 1
    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