bodacious
bodacious

Reputation: 6705

How to resize an image with imagemagick to show a horizontal margin if required

I'm using imagemagick to resize photographs in my app, but I'm having trouble getting it to work as I need it to.

Can someone please help me come up with the right combination of option configurations to meet the following requirements:

Upvotes: 0

Views: 627

Answers (1)

fmw42
fmw42

Reputation: 53212

In ImageMagick, try

convert image -resize x213 -gravity center -background white -extent 320x213 result

Upvotes: 3

Related Questions