Search found 3 matches

by core_69
2017-01-25T08:44:18-07:00
Forum: Users
Topic: Change canvas size and fit original image inside it, preserving aspect ratio.
Replies: 13
Views: 35964

Re: Change canvas size and fit original image inside it, preserving aspect ratio.

snibgo wrote: 2017-01-25T08:14:59-07:00 Okay. You need both "-resize" and "-extent", such as:

Code: Select all

convert in.png -resize 900x900 -background Black -gravity center -extent 900x900 out.png
@snibgo
Works like a charm! You are my hero!!! :-D
by core_69
2017-01-25T07:49:51-07:00
Forum: Users
Topic: Change canvas size and fit original image inside it, preserving aspect ratio.
Replies: 13
Views: 35964

Re: Change canvas size and fit original image inside it, preserving aspect ratio.

snibgo wrote: 2017-01-25T07:40:38-07:00 "-resize" does exactly what you ask for.
Sorry, I didn't described my question well, I'll edit it now.
Thanks
by core_69
2017-01-25T07:19:05-07:00
Forum: Users
Topic: Change canvas size and fit original image inside it, preserving aspect ratio.
Replies: 13
Views: 35964

Change canvas size and fit original image inside it, preserving aspect ratio.

Hi, It's my first post. I've searched for this and found only "-border" and "-extend" options, but they don't give you the actual control over canvas size. May be I need to use a combination of a some basic options. So let's say my original image is 300x200 in size. What I need i...