opacity inner boarder to pic

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Crys
Posts: 10
Joined: 2018-01-12T03:14:45-07:00
Authentication code: 1152

Re: opacity inner boarder to pic

Post by Crys » 2018-01-17T07:25:10-07:00

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? :?

User avatar
GeeMack
Posts: 571
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: opacity inner boarder to pic

Post by GeeMack » 2018-01-17T07:43:08-07:00

Crys wrote:
2018-01-17T07:25:10-07:00
But 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".

Crys
Posts: 10
Joined: 2018-01-12T03:14:45-07:00
Authentication code: 1152

Re: opacity inner boarder to pic

Post by Crys » 2018-01-17T08:12:35-07:00

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.

User avatar
GeeMack
Posts: 571
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: opacity inner boarder to pic

Post by GeeMack » 2018-01-17T08:19:37-07:00

Crys wrote:
2018-01-17T08:12:35-07:00
I 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.

Crys
Posts: 10
Joined: 2018-01-12T03:14:45-07:00
Authentication code: 1152

Re: opacity inner boarder to pic

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


User avatar
GeeMack
Posts: 571
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: opacity inner boarder to pic

Post by GeeMack » 2018-01-17T09:50:42-07:00

Crys wrote:
2018-01-17T08:12:35-07:00
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.
Crys wrote:
2018-01-17T08:25:48-07:00
https://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

Crys
Posts: 10
Joined: 2018-01-12T03:14:45-07:00
Authentication code: 1152

Re: opacity inner boarder to pic

Post by Crys » 2018-01-17T11:10:05-07:00

Thank you very much GeeMack, the "-background non" solved the problem!

erickem
Posts: 3
Joined: 2018-02-02T00:55:57-07:00
Authentication code: 1152

Re: opacity inner boarder to pic

Post by erickem » 2018-02-06T01:00:06-07:00

Thanks for your answer GeeMack! Nice job :like:

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

Post Reply