4lex4 / scantailor-advanced

ScanTailor Advanced is the version that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes.
GNU General Public License v3.0
1.18k stars 129 forks source link

[BUG] Despeckling preview ignores Fill Zones #97

Open FurloSK opened 4 years ago

FurloSK commented 4 years ago

Despeckling preview in Output filter ignores the fill zones added to the image.

To reproduce the bug:

  1. Go to any page that has speckles detected
  2. Turn off despeckling, go to "Fill Zones" and fill one/more of the speckles with white zone
  3. While still in "Fill Zones" preview, turn despeckling back on.
  4. Go to "Despeckling" preview → the speckles are still detected, even the ones that were filled with fill zones
  5. The same happens when you move out of that page while despeckling is on, and go back. The speckles will be there.

However, if after doing points 1 and 2 you go firstly to Despeckling preview and only there turn despeckling back on, the fill zones will be respected.

So, the only way to "force" despeckle preview to take into account filled zones is to disable despeckling, go to other page or to other preview pane in Output filter (e.g. Fill Zones), then go back and only in Despeckling preview turn Despeckling on.

Running latest build on macOS Mojave 10.14.6, although this is probably not OS-related.