Page 2 of 2

Re: opacity inner boarder to pic

Posted: 2018-01-17T07:25:10-07:00
by Crys
Thank you again, I didn't know this.

But I still have a problem with the white border while rotating:
Image
From the left to the right the fuzz in step of 10% higher.

At 70% you may can't see the boarder, if you don't know where to look, but then the arrow gets to faint.

Code: Select all

convert test.jpg ( wind-rose.png -gravity Southwest -geometry +200+200 -rotate 48 -fuzz 10% -transparent white ) -composite test.jpg
I want bold colors like at 0% fuzz, but without the white boarder. How does this works? :?

Re: opacity inner boarder to pic

Posted: 2018-01-17T07:43:08-07:00
by GeeMack
Crys wrote: 2018-01-17T07:25:10-07:00But I still have a problem with the white border while rotating: [...] I want bold colors like at 0% fuzz, but without the white boarder. How does this works? :?
I would try a few things here. First, try putting the "-transparent white" before the rotate operation instead of after it.

Also try putting "-bordercolor white -border 1" before the "-transparent white".

And you might try removing a single row of pixels from the edges of your overlay image with "-shave 1" before the "-transparent white".

Re: opacity inner boarder to pic

Posted: 2018-01-17T08:12:35-07:00
by Crys
If "-transparent white" isn't the last attribute, then it doesn't show any effect.

"-shave 1" also don't show any effect, in any constellation. And "-bordercolor white -border 1" makes the wind rose ugly, the transparent parts in the middle gets white boarders too.

Maybe the problem is, because my starting image (the wind rose) has already a transparent background. But with white background and making this later transparent, the inner boarders of the arrow getting ugly ... I don't know what to do.

Re: opacity inner boarder to pic

Posted: 2018-01-17T08:19:37-07:00
by GeeMack
Crys wrote: 2018-01-17T08:12:35-07:00I don't know what to do.
Post your overlay image on a hosting site so we can download it and test some things with the exact image you're using.

Re: opacity inner boarder to pic

Posted: 2018-01-17T08:25:48-07:00
by Crys

Re: opacity inner boarder to pic

Posted: 2018-01-17T09:50:42-07:00
by GeeMack
Crys wrote: 2018-01-17T08:12:35-07:00Maybe the problem is, because my starting image (the wind rose) has already a transparent background. But with white background and making this later transparent, the inner boarders of the arrow getting ugly ... I don't know what to do.
Crys wrote: 2018-01-17T08:25:48-07:00https://dropfile.to/4FdxuFx
The problem is when you "-rotate" it adds a white background to the new outside areas of the overlay image. You need to specify "-background none" before the rotation so that won't happen. Then you won't need to make anything transparent because it will already be. Try this...

Code: Select all

convert test.jpg ( wind-rose.png -gravity Southwest -geometry +200+200 -background none -rotate 48 ) -composite test.jpg

Re: opacity inner boarder to pic

Posted: 2018-01-17T11:10:05-07:00
by Crys
Thank you very much GeeMack, the "-background non" solved the problem!

Re: opacity inner boarder to pic

Posted: 2018-02-06T01:00:06-07:00
by erickem
Thanks for your answer GeeMack! Nice job :like:

_________
my website: thêu chân mày Ngọc Dung