Combining Commands

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
dbudnick
Posts: 3
Joined: 2018-06-07T20:27:18-07:00
Authentication code: 1152

Combining Commands

Post by dbudnick »

Hi Everyone,

I am new to ImageMagck, I have a few commands that I am using to modify images how would I put these commands together?

convert 1.JPG -resize 847x546 1.JPG
convert 1.JPG -chop 0x25 1.JPG
convert t.png 1.JPG -geometry +228+248 -composite 1.pdf

Thanks in advance!

- David 8)
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Combining Commands

Post by snibgo »

Code: Select all

convert t.png ( 1.JPG -resize 847x546 -chop 0x25 ) -geometry +228+248 -composite 1.pdf 
But if you use bash, you need to escape the parentheses: \( \)
snibgo's IM pages: im.snibgo.com
dbudnick
Posts: 3
Joined: 2018-06-07T20:27:18-07:00
Authentication code: 1152

Re: Combining Commands

Post by dbudnick »

Thanks for the help!
Post Reply