Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating an "opposite" image
#24
(03-30-2022, 05:13 PM)Ofnuts Wrote: A faint gap is normal and expected!

If your process is correct, the pixels that are anti-aliased black-to-transparent become anti-aliased transparent-to-black, or, in other words, they get the complementary opacity so are still only partially opaque. So when you overlap both images, you overlap partially opaque pixels with other partially opaque pixels and cannot get a full opacity, so you see a faint gap.

If there is no gap, the opposite image is too thick, and if there are fully transparent pixels in the gap, the opposite image is too thin.

It's the same as doing this:
  • Create a layer filled with black and duplicate it.
  • Create a circle selection
  • On one layer, delete the selection
  • On the other layer, Select > Invert and delete the selection
  • Check the result over a white layer
  • You can also (without a white background) use the pointer dialog to check the alpha of the pixels in the gap and check that all pixels are above 75% opacity(*)


(*) because the pixels with opacity X in one layer will have opacity 1-X in the other. When you apply this in the alpha-compositing formula the resulting opacity is expressed by 1-X+X² which in the [0.0, 1.0] range has a minimum of 0.75 for X=0.5

I must be doing something wrong at some point.
I couldn't reproduce the expected faint gap.

In any case, it explains why Denzjos doesn't have that faint gap. With the stroke path, a belt is created that covers this gap.

.xcf   FaintGap.xcf (Size: 10.05 KB / Downloads: 148)

(03-30-2022, 05:24 PM)PixLab Wrote: I found something else. just for fun  Big Grin

A Black layer under original
Original in Color Erase mode (or erase or split)
New from visible  (or faster with merge down button)
Fuzzy the outside on the new from visible
select Grow 1 or more
delete

gap almost non existent (you really need to zoom in to see some trace of transparency)

PixLab, I think you've squeezed it to the limit!
In terms of result and simplicity this method seems to be a winner!

I took advantage of the previous Ofnuts post and examined the faint gap generated by your last method.

In the coordinate X=742, Y=422 I found the following values of Alpha:
18.8% on the top layer and 81.2% on the bottom layer.

If I use the Color Picker with the "Sample merged" option selected, I get a value of 100% for that same point.
However visually the faint gap is still visible.
                               .....
Samj PortableGimp 2.10.28 - Win-10 /64.
Reply


Messages In This Thread
Creating an "opposite" image - by Cjrearl84 - 03-24-2022, 10:40 PM
RE: Creating a "opposite" image - by Ofnuts - 03-24-2022, 11:02 PM
RE: Creating an "opposite" image - by sallyanne - 03-27-2022, 01:21 PM
RE: Creating an "opposite" image - by PixLab - 03-27-2022, 05:33 PM
RE: Creating an "opposite" image - by Cjrearl84 - 03-27-2022, 09:22 PM
RE: Creating an "opposite" image - by sallyanne - 03-28-2022, 11:34 AM
RE: Creating an "opposite" image - by PixLab - 03-28-2022, 03:11 PM
RE: Creating an "opposite" image - by Krikor - 03-29-2022, 02:35 AM
RE: Creating an "opposite" image - by PixLab - 03-29-2022, 09:41 AM
RE: Creating an "opposite" image - by Ofnuts - 03-29-2022, 11:19 PM
RE: Creating an "opposite" image - by PixLab - 03-30-2022, 03:16 AM
RE: Creating an "opposite" image - by Krikor - 03-30-2022, 01:51 AM
RE: Creating an "opposite" image - by Ofnuts - 03-30-2022, 07:32 AM
RE: Creating an "opposite" image - by PixLab - 03-30-2022, 08:23 AM
RE: Creating an "opposite" image - by denzjos - 03-30-2022, 10:11 AM
RE: Creating an "opposite" image - by tmanni - 03-30-2022, 12:31 PM
RE: Creating an "opposite" image - by Krikor - 03-30-2022, 03:55 PM
RE: Creating an "opposite" image - by PixLab - 03-30-2022, 04:20 PM
RE: Creating an "opposite" image - by Krikor - 03-30-2022, 04:26 PM
RE: Creating an "opposite" image - by Ofnuts - 03-30-2022, 05:13 PM
RE: Creating an "opposite" image - by Krikor - 03-30-2022, 05:58 PM
RE: Creating an "opposite" image - by PixLab - 03-31-2022, 08:16 AM
RE: Creating an "opposite" image - by Krikor - 03-31-2022, 05:33 PM
RE: Creating an "opposite" image - by PixLab - 04-02-2022, 05:04 AM
RE: Creating an "opposite" image - by Krikor - 04-03-2022, 12:09 AM
RE: Creating an "opposite" image - by PixLab - 03-30-2022, 04:27 PM
RE: Creating an "opposite" image - by Krikor - 03-30-2022, 04:31 PM
RE: Creating an "opposite" image - by PixLab - 03-30-2022, 05:24 PM
RE: Creating an "opposite" image - by Ottia Tuota - 04-04-2022, 03:18 PM
RE: Creating an "opposite" image - by Krikor - 04-04-2022, 06:00 PM
RE: Creating an "opposite" image - by Ottia Tuota - 04-04-2022, 06:17 PM

Forum Jump: