View Single Post
Old 01-22-2016, 08:29 AM   #826
badbob001
Fanatic
badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.
 
badbob001's Avatar
 
Posts: 556
Karma: 1102020
Join Date: Sep 2009
Device: Kindle Keyboard (rip), Kindle Voyage, Fire Tablet 10 '17, iPad '19
I'm currently trying to get rid of page numbers from a book and the page number text is the opposite color of the margins (eg: black text over white; white text over black). The GUI version works most of the time, but I want to see if it can be improved.

In the CLI version, I see --nocutpagenumbers, which is to disable the cutting of page numbers, but I don't see settings to tweak the page number removal process. What exactly is happening when it tries?

One idea is to determine the margin color, fill in the margin with the opposite color, determine the margin trim area based on the new margin color, and then apply that new trim area to the original image. The idea is to fill the margin with a similar color to the page number text, which will make it easier for the margin trimming to ignore the page number text. There is a danger for the fill to enter the content area if the layout doesn't use panels, but a workaround is to limit the margin filling to a specified area, like x pixels from the bottom.
badbob001 is offline   Reply With Quote