Page 1 of 1

Width and height - how to get Images in a fixed canvas

Posted: 2009-02-12T09:54:19-07:00
by normaldenker
Hello guys,

first: sorry for a possibly bad explanation, but it's not really
easy describing it in english.

I use the command like this
exec("/usr/bin/convert $userfile[0]: -resize ....)

My problem is: I'd like to have a fixed canvas, in which
i print my pictures. Vertical ones should have the same
height as horizontals.

E.g., Canvas Size: 300 x 300 px --> horizontal pictures
fill the whole canvas with 300x300 px.

Vertical pictures can not be fit on this canvas. For this
case, I'd like know how to use imagemagick to fit a
120 x 520 px pic on this canvas with a rest of the canvas'
background color.

Look here e.g. --> http://www.welt.de/vermischtes/article3 ... assen.html

thanks for helping me!

Re: Width and height - how to get Images in a fixed canvas

Posted: 2009-02-12T13:26:50-07:00
by mkoppanen

Re: Width and height - how to get Images in a fixed canvas

Posted: 2009-02-12T22:37:37-07:00
by normaldenker
That's it. Thank you!