07-21-2017, 08:35 PM
If you want to do this, your best bet is GMiC. It is an image processing system that can be used either as a Gimp plugin (nice to check things interactively) and as a command-line driven processor. It includes a series of "inpaint" filters (the more suitable is repair/inpaint [patch-based], with some explanations here. Once you have found something that works for you in Gimp, you can transform this into a shell command that you can apply to your images.