Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn-text-path-selection
#1
If you create text where there is an overlap between characters:

   

The strokes of these characters overlap:

   

And if you try to get a selection from that path you don’t get the initial text:

   

This is because Gimp uses an “even-odd” algorithm to determine if a pixel is selected or not: drawing a line from the pixel in any random direction, the pixel is outside the selection if the line intersects an even number of strokes (0
is considered even), and inside the selection if the line intersects an odd number of strokes. If the overlap areas, such a line intersects two strokes, one for each character, so the overlap area is unselected.

This plugin uses a different algorithm: it identifies the strokes that belong to the same characters (more accurately, sets of nested strokes), and adds theses characters separately to the selection, so the overlap areas are the union of the selections for each characters and are selected:

   

As usual plugin is here. Enjoy.

Thanks to Akovia for the incentive and the help. Your PC shall not have burned in vain!
Reply
#2
(05-14-2020, 10:14 PM)Ofnuts Wrote: Thanks to Akovia for the incentive and the help. Your PC shall not have burned in vain!

I wish I could be the first to test this out, but I'm afraid my NUC would cry if I tried. (measly 8GB ram) When my new rig gets here with 64gb ram and my first SDD, it shall be a brave new world and I'll be testing this out.

Thanks so much for all the hard work. I know this wasn't a trivial script. This fixes a problem with gimp that is as old as the program itself and I'm thrilled.  

Cheers!
Exclamation Exclamation
Reply
#3
(05-14-2020, 11:36 PM)akovia Wrote:
(05-14-2020, 10:14 PM)Ofnuts Wrote: Thanks to Akovia for the incentive and the help. Your PC shall not have burned in vain!

I wish I could be the first to test this out, but I'm afraid my NUC would cry if I tried. (measly 8GB ram) When my new rig gets here with 64gb ram and my first SDD, it shall be a brave new world and I'll be testing this out.

Thanks so much for all the hard work. I know this wasn't a trivial script. This fixes a problem with gimp that is as old as the program itself and I'm thrilled.  

Cheers!
Exclamation Exclamation

The version on SourceForge is RAM-friendly (and CPU-friendly as well), I made the necessary optimizations. Your NUC will survive Smile
Reply
#4
(05-15-2020, 06:19 AM)Ofnuts Wrote: The version on SourceForge is RAM-friendly (and CPU-friendly as well), I made the necessary optimizations. Your NUC will survive Smile

Well I finally had the time and the gumption to install gimp on my NUC. I must say I am very surprised how well it performs and did it a disservice by doubting it. With double the ram, this would be a formidable little computer that fits in the palm of your hand. I always knew it was a bit overkill for just a Kodi box, but it may need to be re-tasked.

With that said, I had a go at this script and it performed beyond my expectations. I even threw it a curve ball and perfection best describes the results.

   

Thanks again for all the hard work you put into this. A lot of people will benefit!
Reply
#5
Good news...
Reply


Forum Jump: