Page 1 of 1

Script for resize canvas size and aling image in center of canvas

Posted: 2015-01-26T03:56:44-07:00
by Dormi
Greetings,

I'm using ImageMagick in Windows

I need a script to do the following for batch files:
1)resizing canvas size height to some varrible
2)and center aligning image in this new canvas

Well, I am new in ImageMagick scripting

Please, help me

Thanks a lot

Re: Script for resize canvas size and aling image in center of canvas

Posted: 2015-01-26T06:41:01-07:00
by snibgo
I don't understand what you want to do. "-resize" will resize an image, but then there is no question of centering it.

Re: Script for resize canvas size and aling image in center of canvas

Posted: 2015-01-26T07:32:40-07:00
by Dormi
i need to resize canvas, not image

Re: Script for resize canvas size and aling image in center of canvas

Posted: 2015-01-26T08:35:38-07:00
by Bonzo
You need to explain further; I recommend you post a graphical example of what you want.

-extent can increase canvas size and -gravity center will center the image on the background.

-size will create a canvas

Re: Script for resize canvas size and aling image in center of canvas

Posted: 2015-01-27T23:08:22-07:00
by Dormi
Bonzo wrote:You need to explain further; I recommend you post a graphical example of what you want.

-extent can increase canvas size and -gravity center will center the image on the background.

-size will create a canvas
thank you for help. This command save a lot of my time