Page 1 of 1
how to define -tile
Posted: 2016-01-29T05:01:28-07:00
by liyucmh
Dear everyone,
I am new here, I need your help, thanks
how to define -tile, such as watermark's position, 45°degree, not too many , like below
I use this command, but it is too many watermarks and can not 45°degree
Code: Select all
composite -tile -gravity center logofuli.png myg182_01.jpg test.jpg
the result is below, not my wanted
Re: how to define -tile
Posted: 2016-01-29T05:32:43-07:00
by snibgo
The trick is to create logofuli.png at whatever size you need for the output, containing whatever image you need repeating.
Re: how to define -tile
Posted: 2016-01-29T06:20:50-07:00
by liyucmh
snibgo wrote:The trick is to create logofuli.png at whatever size you need for the output, containing whatever image you need repeating.
thanks for your reply
I mean the logofuli.png is a fixed png file, how to add some parameter into this command
Code: Select all
composite -tile -gravity center logofuli.png myg182_01.jpg test.jpg
that can make the output watermark file like this:
not this
my english is a little poor, sorry, maybe i did not describe well.
Re: how to define -tile
Posted: 2016-01-29T06:32:01-07:00
by HaroldWindt
liyucmh wrote:snibgo wrote:The trick is to create logofuli.png at whatever size you need for the output, containing whatever image you need repeating.
thanks for your reply
I mean the logofuli.png is a fixed png file, how to add some parameter into this command
Code: Select all
composite -tile -gravity center logofuli.png myg182_01.jpg test.jpg
my english is a little poor, sorry, maybe i did not describe well.
Resize the logofuli.png to fit your image
1. Get the width and height of the output image
2. Resize your PNG file in accordance with the width & height obtained from (1)
convert -resize WidthXHeight logofuli.png logofuli_Resized.png
3. If you want the watermark to be low then you can adjust the width and height accordingly with what you obtained from (1)
4. Use logofuli_Resized.png and apply it on your output image
Re: how to define -tile
Posted: 2016-01-29T08:19:13-07:00
by liyucmh
HaroldWindt wrote:liyucmh wrote:snibgo wrote:The trick is to create logofuli.png at whatever size you need for the output, containing whatever image you need repeating.
thanks for your reply
I mean the logofuli.png is a fixed png file, how to add some parameter into this command
Code: Select all
composite -tile -gravity center logofuli.png myg182_01.jpg test.jpg
my english is a little poor, sorry, maybe i did not describe well.
Resize the logofuli.png to fit your image
1. Get the width and height of the output image
2. Resize your PNG file in accordance with the width & height obtained from (1)
convert -resize WidthXHeight logofuli.png logofuli_Resized.png
3. If you want the watermark to be low then you can adjust the width and height accordingly with what you obtained from (1)
4. Use logofuli_Resized.png and apply it on your output image
thanks
does this mean we can not add parameter to -tile command that can control the watermark's number and position?
Re: how to define -tile
Posted: 2016-01-29T09:45:52-07:00
by snibgo
You can rotate the watermark within the composite command:
Code: Select all
composite -tile -gravity center ( logofuli.png -rotate 30 ) myg182_01.jpg test.jpg
I don't know how to change the width and height within the composite command.
Re: how to define -tile
Posted: 2016-01-29T11:18:08-07:00
by fmw42
You can do more things using convert .... -composite than you can with composite. I suggest you learn the new syntax, since composite is old and may eventually be deprecated. See
http://www.imagemagick.org/Usage/compose/#compose and
http://www.imagemagick.org/Usage/canvas/#tile