I couldn't figure it out, sorry
I have a frame that is 188 x 123, but those dimensions are dynamic and frame size can change..
I need to downscale the image to look best and centered in the frame, so I make calculations in my script (Ahk script) and resize one of the sides (depend on the image dimensions), now I need to fill the rest with white.
I'm using IrfanView to do the resizing but would like to use ImageMagic to do both resizing and filling.
Any idea?
Thanks
Resize and fill the rest
Re: Resize and fill the rest
Try something this:
Code: Select all
convert input -resize 500x500 -background white -gravity center -extent 500x500 output
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Resize and fill the rest
There is a lot of examples of this type of thing in
IM examples, Thumbnails
http://www.imagemagick.org/Usage/thumbnails/
IM examples, Thumbnails
http://www.imagemagick.org/Usage/thumbnails/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/